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
2 replies
Subscribers
7 subscribers
Views
1342 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I'm using a Grid to display a list of CDT, the list of CDT is retrieved from
guozhangy
over 8 years ago
I'm using a Grid to display a list of CDT, the list of CDT is retrieved from database, with a pagingInfo that is sorted by two columns, with something like:
local!pagingInfo:a!pagingInfo(startIndex: 1, batchSize:50, sort: {a!sortInfo(field:"ID"), a!sortInfo(field: "NAME")}),
The above pagingInfo is also used as value and saveInto for the gridField.
In the first page, the records are sorted by ID and NAME correctly, but beginning from the second page, the records are only sorted by the first field(ID), the records are not sorted by the second field (NAME) any more.
Does anyone have similar issue? Thanks.
OriginalPostID-158066
OriginalPostID-158066
Discussion posts and replies are publicly visible
Parents
0
sikhivahans
over 8 years ago
@guozhangy It's true that pagingInfo will be lost when an array is provided. Further its difficult to add keep track of current sort info in paging info and add additional sort info to it. Especially it might confuse a user when the user sorts the grid on a single column and the sort in back ground is done on more than one fields.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 8 years ago
@guozhangy It's true that pagingInfo will be lost when an array is provided. Further its difficult to add keep track of current sort info in paging info and add additional sort info to it. Especially it might confuse a user when the user sorts the grid on a single column and the sort in back ground is done on more than one fields.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data