Jump to content

resorting search results


This topic is 8669 days old. Please don't post here. Open a new topic instead.

Recommended Posts

ok here is what i am trying to do. its not that important, its just something that would be nice to have on the page. I am trying to put something on the bottom of the search results page that will let me resort the search result by a different field.. not exactly sure how to do this.. This is what i tried already but it didn't work..

<FORM ACTION="FMPro" METHOD="POST">

<INPUT TYPE="hidden" NAME="-db" VALUE="caddrawingdb.fp3">

<INPUT TYPE="hidden" NAME="-lay" VALUE="Drawing Entry Form">

<INPUT TYPE="hidden" NAME="-error" VALUE="errors.htm">

<INPUT TYPE="hidden" NAME="-format" VALUE="formats.htm">

<P align="left"><B><FONT SIZE="-1">Sort Results By:   <SELECT NAME="-sortfield">

<OPTION SELECTED>Model Number

<OPTION value="ActivityIDNumber">Activity ID Number

<OPTION value="Drawing Number">Drawing Number

<OPTION value="revdate">Last Change

<OPTION value="drawtype2">Metric or English

<OPTION value="drawingtype">Drawing Type

<OPTION value="prodopts">Product Options

<OPTION>unsorted

</SELECT>

   

<SELECT NAME="-sortorder">

<OPTION SELECTED>ascending

<OPTION>descending

</SELECT>     <INPUT TYPE="submit" NAME="-find" VALUE="Sort">

</FONT></B></P>

</form>

Link to comment
Share on other sites

When sorting on Model Number, I'll bet.

Try this:

<SELECT NAME="-sortfield">

<OPTION>unsorted

<OPTION value="Model Number" SELECTED>Model Number

<OPTION value="ActivityIDNumber">Activity ID Number

<OPTION value="Drawing Number">Drawing Number

<OPTION value="revdate">Last Change

<OPTION value="drawtype2">Metric or English

<OPTION value="drawingtype">Drawing Type

<OPTION value="prodopts">Product Options

</SELECT>

Link to comment
Share on other sites

This topic is 8669 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.