You are not logged in! Log in or Register

Moving Previous / Next set of rows

Forum > GLOWE > Moving Previous / Next set of rows

Post reply

Author Message
priya
Registered user

Avatar

Posts: 45

Moving Previous / Next set of rows
on Fri, 3 October 10:51:41

Hi,

We are facing problem in moving previous and next(e.g.list of 10 houses)data. We wrote service for incrementing next and decrementing previous page numbers. But for the last next and the first previous,after clicking twice or thrice, we are getting No data available.
We tried If block too.

Help me to fix this issue.

regards,
Priya

erdem
Moderator

Avatar

Posts: 136

RE: Moving Previous / Next set of rows
on Mon, 6 October 10:31:17

Dear Priya,

Strange that you can't solve this with the If block.
Why don't you give an extra paramter with your xml and check it with your If block?
If that parameter is "previous" you should hide the previous button.
If the parameter is "next" you should hide the next button.
If there is nothing in the parameter, you just show everything.

hope this helps,

priya
Registered user

Avatar

Posts: 45

RE: Moving Previous / Next set of rows
on Mon, 6 October 16:00:30

Hi Erdem,

Yes, I am using extra parameters in the XML returned from the service. But using If block, only I can disable the "Previous" button in the first page. Because we can compare it with 1/0. But the "Next" value is dynamic(i.e. it varies). So I am not able to use If block for hiding "Next" button.

regards,
Priya

erdem
Moderator

Avatar

Posts: 136

RE: Moving Previous / Next set of rows
on Tue, 7 October 15:03:00

Dear Priya,

I suggested an Extra parameter. not an existing one. the service can check if it's the last page. and with the extra parameter you can check if you are on the last page.

hope this helps :-)

priya
Registered user

Avatar

Posts: 45

RE: Moving Previous / Next set of rows
on Thu, 9 October 09:31:53

Ok Erdem. Thanks.

Post reply