Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
11 replies
Subscribers
7 subscribers
Views
4687 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
#pagingGrid Problem with numberof records showing in the last page 1.
rayudua
over 11 years ago
#pagingGrid
Problem with numberof records showing in the last page
1. Have a rule giving 6 records
2. page size set to 5
3. 1st page shows 5 records (1to5)
2nd page when Next ,3rd icon is clicked shows 5 records, rows 2 to 6 instead of only the 6th record (one record) on 2nd page
4. but when the last page icon >| is clicked shows only the 6th record.
Is this expected behavior? usually grids so far worked in c#/java/ingragistics all shows only one record in the 2nd page , when clicked next or last page icon [>] vs [>|]...
OriginalPostID-77640
OriginalPostID-77640
Discussion posts and replies are publicly visible
0
Shaun Kilby
Appian Employee
over 11 years ago
Are you using the grid on a form, record, or report? It sounds like a syntax issue. Can you post the rule definition for the paging grid?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rayudua
over 11 years ago
I am using PagingGrid on Tempo Form.
=rule!get_Officers(id, data!pagingInfo)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Shaun Kilby
Appian Employee
over 11 years ago
I don't believe this is expected functionality, try using the library syntax: rule1get_Officers(id, topaginginfo(startIndex:1, batchsize: 5))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 11 years ago
Hi rayudu, The problem in your case might lie in two places, One is how you are initializing PagingInfo parameter. And second is, how you are setting the PagingInfo 'value' and 'saveInto'. If these two configurations and usage of load(),with() are proper, then paging of the grid woks fine with no issues.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 11 years ago
As far as i know, with paging grids on a tempo form (not sure about SAIL interfaces) this is expected behavior. As far as I've seen, paging to the final page using [>] causes the grid to display a page full (so the full batch size) of results, whereas paging with [>|] causes the startingIndex to jump to a specific point regardless of how many results are shown on the page (as few as 1, if the data set happens to have the right number of members).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rayudua
over 11 years ago
#msschmitt , I am not the only one then.
When i used topaginginfo(startIndex:1, batchsize: 5)) , Except the 1st page all pages are empty.
I will try what #sikhivahans told.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rayudua
over 11 years ago
#sikhivahans
I use data!paginginfo in the rule, and then default page size in designer is set to 5, and save value to variable. What am i doing wrong.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 11 years ago
I'm not altogether clear what the problem is that you're experiencing? I thought I was just confirming the default behavior of paging in a grid, but maybe i'm missing something...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 11 years ago
#rayudua Ok, once try to workout on the points I have specified. Still if you have any concerns, let me know the outline of the syntax CLEARLY(including with(),local() and sort configurations) that is followed by you in configuration of the tempo grid. Then I could try to sort out your issue and I could let you know the problems, if any, present in the configuration. But to support your doubt regarding the functionality of tempo grid's paging configuration...Yes, I have made an observations where the paging of the tempo grid Paging grid functionality is wiped away in a particular case, though it shouldn't happen so.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 11 years ago
@rayudu sorry for the typo *tempo grid Paging grid - tempo grid's paging functionality
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>