This is my code snippet for pagination:
var Salesforce = {
page:0,
limit:5,
getTickets:function(){
var options = {};
options.data = {"q":"SELECT Id,CaseNumber,Subject FROM Case"+this.limit+"OFFSET"+this.limit*this.page};
viewTickets.execute(options);
}
}
on a page Load, instead of invoking the service, I am running a JS to invoke getTicket function in order to get just 5 records, and I am getting this "Mandatory parameter 'appery-rest' is missing". Instead when I invoke the service, I dont get this error (I sometimes do, that is a different issue). I have to implement the paging here and I am unable to figure out the issue. Your help is really appreciated.
Thanks