Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
9 replies
Answers
1 answer
Subscribers
9 subscribers
Views
4997 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi, In a grid, I want to display a serial number along with my data. I am u
smrutis
over 9 years ago
Hi,
In a grid, I want to display a serial number along with my data. I am using (enumerate(length(datasubset.data))+1) to display the serial number like 1, 2, 3, 4 and so on.
When I mention the pagingInfo batch size = 15, it displays 15 rows on the page with serial number from 1 to 15, but when I navigate to the next page it again resets the serial number from 1.
How can I make the serial number continuous even in the next pages.. like in the next page the serial number should start with 16 instead of getting reset to 1 again?
Thanks,
Smruti
OriginalPostID-176968
OriginalPostID-176968
Discussion posts and replies are publicly visible
Parents
0
matthewb85
A Score Level 3
over 9 years ago
The best option I have found is instead of saving the entire paging info, only saving startIndex and batchSize, while not saving sort info. The code for the save into in the grid is the following:
saveInto: {
a!save(
ri!pagingInfo,
a!pagingInfo(
startIndex: save!value.startIndex,
batchSize: save!value.batchSize
)
)
}
If the user does click on the top of a column to sort, it will keep the items in the original order but take them to the top of the grid, so this works best with grids that are not often paged through.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
matthewb85
A Score Level 3
over 9 years ago
The best option I have found is instead of saving the entire paging info, only saving startIndex and batchSize, while not saving sort info. The code for the save into in the grid is the following:
saveInto: {
a!save(
ri!pagingInfo,
a!pagingInfo(
startIndex: save!value.startIndex,
batchSize: save!value.batchSize
)
)
}
If the user does click on the top of a column to sort, it will keep the items in the original order but take them to the top of the grid, so this works best with grids that are not often paged through.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data