IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.

 View Only
Expand all | Collapse all

Sort Document List Again !!

  • 1.  Sort Document List Again !!

    Posted Wed March 14, 2007 01:52 AM

    Hi Guys,

    Yes, I have seen the other posts like this one…

    [url]wmusers.com

    My key to sort is not string element in documentList, but it is child of another document in list. How can I set this as key in
    sortedItemList = IDataUtil.sortIDataArrayByKey(itemList, keyField, IDataUtil.COMPARE_TYPE_COLLATION, null, sortDescending);

    Input Document :

    docList
    –d1
    –d1Str1
    –str1
    –d2
    –d1Str2

    I can sort my docList by passing keyField as str1, but not d1Str1 or d1/d1Str1!!!

    Has anyone had this requirement??? and any solution for this ???

    Thanks,
    Ajit


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Sort Document List Again !!

    Posted Thu February 17, 2011 12:11 PM

    Hello,

    Document list can be sorted on inner document field by passing the key as below.

    Say document is

    OuterDoc
    -fld1
    -InnerDoc
    -keyfield
    -fldn

    To sort based on the keyfield in InnerDoc, input parameter key has to be passed with value InnerDoc.keyfield.

    Here dot is used instead of / to represent inner fields of the document.

    Regards,
    Vishnu


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods