Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
I want to sort the values on bases of alphabetical order.
I have used pub.document:sortDocuments but no luck, if anybody have any idea please guide.
Hi Ahamed,
can you provide some more details please? Esp. the inputs for pub.document:sortDocuments as well as a sample document list.
Regards, Holger
Iam sorting on bases of name value, order-ascending compareStringAs-string sampleInput: headerVersion 1.0 txRef 89765 headerTimestamp DD:mm:YYYY landLineNo ****** customerID 123 urlEndPoint REST
Expected output: customerID 123 headerTimestamp DD:mm:YYYY headerVersion 1.0 landLineNo ****** txRef 89765 urlEndPoint REST
The value you’re mapping for “key” is incorrect - you are mapping the actual data, while it is supposed to be the path to the field or the field itself.
In your case, it will be “name”.
KM
Don’t map ‘name’ to ‘key’ instead set ‘key’ to the string name.
Percio
Looks like @Venkata_Kasi_Viswanath_Mugada1 beat me to the punch
Additional Info:
as sortCriteria is a doc-list input you will have to create a document instance sortCriteria under the list and then map the values as already described above. By doing so there can be multiple sort criterias which will be applied in the order given in the list. See example in the IS Built-In-Services Reference, which Kasi has already referred to with his screenshot.