Gossamer Forum
Home : Products : DBMan : Customization :

Ascending/Descending

Quote Reply
Ascending/Descending
Hi,

Who can tell me what's the command for a hidden field to sort on "ID" in descending order and where to put this command in html.pl

Tanx for your answer

Quote Reply
Re: Ascending/Descending In reply to
For hidden field in a form, the code should read:

<input type="hidden" name="so" value="descend">
<input type="hidden" name="sb" value="0">


Alternatively, if you wanted a link, the code should read:

<A HREF="$db_script_link_url&view_records=1&$db_key=*&so=descend&sb=0">List All</A>

This is assuming your ID field is in position 0, (which it is by default), otherwise, change value="0" and/or sb=0 to whatever position number your ID key is in.

As for the positioning in html.pl. Links are best off in the footer (sub html_footer) and the forms are best off in the search options (sub html_search_options).

Cheers,

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/