Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

re-sort found set?

Featured Replies

  • Newbies

I have a tracking database have quite many records and fields, and the information is edited frequently.

Is there a way to include links/buttons in the column header of search_results.htm, so the users can re-sort the "found set" on different fields by just one click?

Thanks,

baktus

Yes. One way is that you can provide a button through either a form action or a link action using the cdml "-sort" action tag to perform the task you require. The results page can be the page you are currently viewing or a duplicate of that page, or a page which is formatted differently.

  • Author
  • Newbies

Thanks,

I tried that, but it returns the full database sorted correctly, and not the same, shorter list (eg. "found set") according to the users original search criteria. How do I operate on the same "found set" ?

I may need to get hold of the search criteria / URL used to bring up the search_results.htm the first time, and re-apply the criteria with a different sort parameter.. but I haven't found a way to capture those criteria. frown.gif" border="0

  • Author
  • Newbies

Thanx again, Keith, the following works:

In the header of my tabulated search_results.htm, I put the following link to re-sort the found set using "RPN":

code:


<A HREF="FMPro?-db=checklist.FP3&-lay=Layout%20%231

&-format=search_results.htm

[FMP-CurrentFind]

&-OP=[FMP-FindOpItem : short]

&[FMP-FindFieldItem]=[FMP-FindValueItem]

[/FMP-CurrentFind]

&-Max=All&-SortField=RPN

&-SortOrder=descending&-Find">RPN</A></B>


[ August 09, 2001: Message edited by: Baktus ]

[ August 09, 2001: Message edited by: Baktus ]

Nice of you to post what worked for you. It may be of benefit to others. Thanks.

  • 5 weeks later...

The [FMP-Link] CDML tag is used to perform magic like this. The Link tag reproduces the url that produced the current web page: you use CDML parameters to omit parts of the url and substitute new parts.

To re-sort a list of results you use

[FMP-Link: sa]&-sortfield=xxx&-sortorder=ascending&-Find

Much simpler, isn't it.

For the full info, see the CDML reference.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.