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
22 replies
Answers
1 answer
Subscribers
9 subscribers
Views
13825 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
need a function to sort a cdt by a date/time field. Is there such a function to
nitas811
over 11 years ago
need a function to sort a cdt by a date/time field. Is there such a function to do that? ...
OriginalPostID-88128
OriginalPostID-88128
Discussion posts and replies are publicly visible
Parents
0
Patty Isecke
Appian Employee
over 11 years ago
The following example shows how you can take your pagingInfoObject that has been returned by your query rule and sorts on the field called "createdOn":
Name: getNotesForCaseIdSortedByCreationTs
Rule input 1: caseId (Number (Integer))
Rule input 2: pagingInfo (Any Type)
Definition:
=if(isnull(ri!pagingInfo.sort),
getNotesForCaseId(ri!caseId,
{startIndex: ri!pagingInfo.startIndex,
batchSize: ri!pagingInfo.batchSize,
sort: {field:"createdOn", ascending:false()}
}
),
getNotesForCaseId(ri!caseId, ri!pagingInfo)
)
You can also choose the sort the result returned by your query rule. Please see
forum.appian.com/.../Rules
for more information
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Patty Isecke
Appian Employee
over 11 years ago
The following example shows how you can take your pagingInfoObject that has been returned by your query rule and sorts on the field called "createdOn":
Name: getNotesForCaseIdSortedByCreationTs
Rule input 1: caseId (Number (Integer))
Rule input 2: pagingInfo (Any Type)
Definition:
=if(isnull(ri!pagingInfo.sort),
getNotesForCaseId(ri!caseId,
{startIndex: ri!pagingInfo.startIndex,
batchSize: ri!pagingInfo.batchSize,
sort: {field:"createdOn", ascending:false()}
}
),
getNotesForCaseId(ri!caseId, ri!pagingInfo)
)
You can also choose the sort the result returned by your query rule. Please see
forum.appian.com/.../Rules
for more information
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data