Page 1 of 1

There is something wrong with data pagination

Posted: Mon Dec 23, 2013 9:16 am
by Crystal

Hello,
Firstly,Merry Christmas!
I have followed the tutorials of pagination.http://docs.appery.io/tutorials/build...
But there was something wrong with it. Image


There is something wrong with data pagination

Posted: Mon Dec 23, 2013 9:52 am
by Kateryna Grynko

Hi,

Please check this line - there is an extra brace.


There is something wrong with data pagination

Posted: Tue Dec 24, 2013 1:10 am
by Crystal

But I checked this line.There is no extra braces, and the js file that I have not changed.


There is something wrong with data pagination

Posted: Tue Dec 24, 2013 1:30 am
by Igor

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.


There is something wrong with data pagination

Posted: Tue Dec 24, 2013 1:58 am
by Crystal

Hello, I have shared the Map app. The screen is pagination.(Press Test then it will nevigate to pagination)


There is something wrong with data pagination

Posted: Tue Dec 24, 2013 2:51 am
by Igor

I've found some JS errors. Steps how to fix them:

  1. 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')&#46;show();
    }
    /pre

  2. Similar JS errors on nextbutton click event . Replace code with next one:
    pre
    if (limit + skip < total){
    localStorage&#46;setItem('skip', limit+skip);
    get_states&#46;execute({});
    }

    if (limit + skip == limit) {
    Appery('prevButton')&#46;show();
    }

    if (limit + skip == total - limit) {
    Appery('nextButton')&#46;hide();
    }
    /pre

  3. Remove googleMap.js file. You should use prefunction log2(m)/pre
    like described in below tutorial:
    http://docs.appery.io/tutorials/addin...


There is something wrong with data pagination

Posted: Tue Dec 24, 2013 3:20 am
by Crystal

Thanks,the problem has been solved!