Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

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. Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

There is something wrong with data pagination

Hi,

Please check this line - there is an extra brace.

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

There is something wrong with data pagination

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

There is something wrong with data pagination

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.

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

There is something wrong with data pagination

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

There is something wrong with data pagination

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...

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

There is something wrong with data pagination

Thanks,the problem has been solved!

Return to “Issues”