There is something wrong with data pagination
Hello,
Firstly,Merry Christmas!
I have followed the tutorials of pagination.http://docs.appery.io/tutorials/build...
But there was something wrong with it.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello,
Firstly,Merry Christmas!
I have followed the tutorials of pagination.http://docs.appery.io/tutorials/build...
But there was something wrong with it.
Hi,
Please check this line - there is an extra brace.
But I checked this line.There is no extra braces, and the js file that I have not changed.
Hello,
Could you please post app public link or share app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and we'll test it.
Hello, I have shared the Map app. The screen is pagination.(Press Test then it will nevigate to pagination)
I've found some JS errors. Steps how to fix them:
On pagination screen-prevbutton click event, replace "$gt" and "$lt" symbols with next one "" , "pre
if (limit + skip 0){
localStorage.setItem('skip', skip-limit);
get_states.execute({});
}
if (skip - limit == 0){
Appery('prevButton').hide();
}
if (skip - limit < total - limit ) {
Appery('nextButton').show();
}
/pre
Similar JS errors on nextbutton click event . Replace code with next one:
pre
if (limit + skip < total){
localStorage.setItem('skip', limit+skip);
get_states.execute({});
}
if (limit + skip == limit) {
Appery('prevButton').show();
}
if (limit + skip == total - limit) {
Appery('nextButton').hide();
}
/pre
Remove googleMap.js file. You should use prefunction log2(m)/pre
like described in below tutorial:
http://docs.appery.io/tutorials/addin...
Thanks,the problem has been solved!