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

sortby in xquery

  • 1.  sortby in xquery

    Posted Fri January 28, 2005 12:22 PM

    I am using tamino 3.1.7. I am trying to do a sortby using two attributes MinAvailablity and MaxAvailablity in Stock node.













    I am able to sort by one attribute eg
    Product[Category=XX]sortby(Stock/@MinAvailabilityDays )
    but I am not able to do with two attributes Min and Max days.Is it possible to sortby more than one field.Thanks in advance
    Dan


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: sortby in xquery

    Posted Fri January 28, 2005 02:25 PM

    Hi,
    I think this should be possible with syntax:

    sortby(Stock/@MinAvailabilityDays , Stock/@MaxAvailabilityDays ) 


    Does this work for you?


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: sortby in xquery

    Posted Fri January 28, 2005 03:09 PM

    Hi,
    It does work .Thanks.


    #API-Management
    #webMethods
    #Tamino