Gossamer Forum
Home : Products : DBMan : Customization :

adding parameter for sort order to the url of List All?

Quote Reply
adding parameter for sort order to the url of List All?
What's the parameter to specify a sort order in the url for Listing All records?

eg: ../dbman/db.cgi?db=default&uid=default&view_records=1&ID=*

what do I need to add more to specify a sort order within this url?

thx
Quote Reply
Re: adding parameter for sort order to the url of List All? In reply to
Again...like discussed MANY times in this forum...you need to add the following arguments to the query string for the LIST ALL option:

Code:
&so=ascend

OR

Code:
&so=descend

so = sort order

descend = Z-A, 100-1
ascend = A-Z, 1-100

AND

Code:
&sb=fieldnumber

sb = sort by

Use field numbers to sort records.

Replace fieldnumber with the field number that you want to sort by.

So, for example, you want field number 1 to be sorted in ascending order, then you would use the following:

Code:
/dbman/db.cgi?db=default&uid=default&so=ascend&sb=1&view_records=1&ID=*

Hope this helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------