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
+1
person also asked this
people also asked this
Replies
10 replies
Subscribers
8 subscribers
Views
5823 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Is it possible to use a!sortInfo to sort by field1 and then by field2?
cherylr
over 9 years ago
Is it possible to use a!sortInfo to sort by field1 and then by field2?
I tried the following code, but I am getting an error " Invalid Cast: Cannot cast from type 'PagingInfo' to type 'Date': CastInvalid"
a!sortInfo({
{field:"field1",ascending:false)},
{field:"field2",ascending:false)}
})
OriginalPostID-141868
OriginalPostID-141868
Discussion posts and replies are publicly visible
Parents
0
Conor Cahill
Certified Lead Developer
over 9 years ago
The queryrecord() cannot do multiple sorts, but you can wrap that function in a todatasubset(), which will take multiple sorts. Remove the sorting from your queryrecord and put it in the 'pagingInfo' field in the todatasubset().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Conor Cahill
Certified Lead Developer
over 9 years ago
The queryrecord() cannot do multiple sorts, but you can wrap that function in a todatasubset(), which will take multiple sorts. Remove the sorting from your queryrecord and put it in the 'pagingInfo' field in the todatasubset().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data