How to sort Tamino database ?

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.

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.

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