webMethods

webMethods

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

How to sort Tamino database ?

  • 1.  How to sort Tamino database ?

    Posted Wed June 26, 2002 11:11 AM

    X-Application Version: 3.1.2
    Tamino Version : 3.1.1
    Platform : Windows2000
    WebContainer : Tomcat 3.3
    JDK Version : 1.3.0_02
    I generated my own application using the Tamino X-Application Generator and created six JSP files. Unfortunately I don’t know how to sort the database to list the data sorted.


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: How to sort Tamino database ?

    Posted Wed June 26, 2002 12:00 PM

    Hello,

    with X-Application 3.1.2 you have to use


    • a hidden input field if the sort criteria is fixed
    • a select tag, if you want to allow the user to select the sort criteria


    The name attribute of the input tag or select tag must by ‘querysort’ the value must be a path addressing the element defining the sort criteria.

    Add this input / select tag field to the search page created by the generator.

    ! Changes on the JSPs will be lost, if you use the generator to “Regenerate” your application.

    For more details about queries look at the documentation:

    Java Server Pages:
    → Defining and Processing Queries
    —> Query Sort Instructions

    I hope, this hit will help you.


    :cool: Just to make advertise the next version of X-Application where we have improved the query handling. For this version

    • you can define the complete XQL expression by an action tag containing sort criterias / filters / etc. and

    • parameterize the parts of the expression which are comming from user input fields.


    Bye,
    Christian.


    #webMethods
    #API-Management
    #Tamino


  • 3.  RE: How to sort Tamino database ?

    Posted Thu June 27, 2002 09:10 AM

    Hi,
    Thank you Christian for help. Now it works.
    Regards,
    VS


    #Tamino
    #webMethods
    #API-Management