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

Sorting Tamino Result By Day

  • 1.  Sorting Tamino Result By Day

    Posted Fri August 23, 2002 11:44 AM

    How can I actually sort results retrived from Tamino by day (Mon, Tues, Wed…etc)??
    Below is the example of the xml document:


    Wednesday
    12.00
    1A23


    Tuesday
    13.00
    1B02


    Monday
    14.00
    1A05


    Thursday
    13.00
    1A08


    The result should be something like this:


    Monday
    14.00
    1A05


    Tuesday
    13.00
    1B02


    Wednesday
    12.00
    1A23


    Thursday
    13.00
    1A08

    :rolleyes:


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: Sorting Tamino Result By Day

    Posted Sat August 31, 2002 02:00 AM

    Hi,

    As far as I know there isn’t a way to specify an order criteria in the schema that can be used to sort an element.

    However, a possible workaround might be to include an attribute in the schema that contains the numerical value for the day of the week.


    Wednesday
    12.00
    1A23


    Tuesday
    13.00
    1B02


    Monday
    14.00
    1A05


    Thursday
    13.00
    1A08


    Then you could sort using the following query:
    schedule sortby(Day/@dow asc)

    Regards,
    Puny Sen


    #Tamino
    #webMethods
    #API-Management