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
4 replies
Subscribers
7 subscribers
Views
2124 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I have a CDT which has Amount as a field. I need to sort the CDT based on Amount
jaishankarj
over 8 years ago
I have a CDT which has Amount as a field. I need to sort the CDT based on Amount field while working on the CDT in process flow. What could be the best way of achieving this?
OriginalPostID-163021
OriginalPostID-163021
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 8 years ago
You can create a new datasubset, paginginfo and sortinfo.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Josh
Certified Lead Developer
over 8 years ago
Should look something like this:
todatasubset(
pv!cdt,
a!pagingInfo(
startIndex: 1,
batchSize: -1,
sort: a!sortInfo(
field: "yourfield",
ascending: true
)
)
).data
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
crystalc
over 8 years ago
This scripting functions documentation may help:
forum.appian.com/.../Scripting_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
senthilar
over 8 years ago
Did you try APN_sortComplexType in Appian common objects
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel