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-sorting a found set without a new find

Featured Replies

Hello, All:

I have the results of a search displayed in a table. I have placed the field names in the table's column headers (<TH> ) as CDML links. The intent is to allow the viewer to re-sort their found set by clicking on the applicable field name's link heading.

I have not been able to find an example of [FMP-CurrentFind] used in a link, so this is what I tried:

<A HREF="FMPro?-Db=JobPosting.fp5&-Format=JobResults.htm&-Error=JobError.htm&[FMP-CurrentFind][FMP-FindFieldItem]=[FMP-FindValueItem][/FMP-CurrentFind]&-SortField=JobNumber&-SortOrder =Descend&-Find"><P ALIGN=left>Job Number</P></A>

The problem is that I get the error page message that no records are found. What am I doing wrong? Is there a way to sort the existing found set again without having to perform a new find? Does anyone have an elegant solution to this re-sorting problem?

Thanks in advance.

Philip Sommers

Huntsville, AL

According to the cdml reference, a handy tool, the fmp-currentfind is used to return information. Perhaps that explains why you have found no examples of its use as a link.

Try putting the [FMP-CurrentFind] before the ampersand (&), it begins a loop, which means that the ampersand is not getting repeated. In theory, this should work, you can use a result tag in an anchor without a problem, I have made a variation of this myself using the [fmp-portal] tag, but I had the portal start before the ampersand. If this doesn't work let me know, I can think of a few ways to do this with Javascripting.

RE: Is there a way to sort the existing found set again without having to perform a new find?

ON WEB?::?

Does not exist something like "existing found set"! Answer to your request is valid only the time before the HTML page is constructed and served. That is in less than a second.

Another request from web and puff - another found set is there. Just watch the FM and let your colleagues fire requests...

Actually there is: the [FMP-Link] CDML tag. It will re-create the URL that generated the current page, with changes you specify.

Look it up in the CDML Reference. Or search the Forums, I posted information about it less than a month ago.

  • Author

Thank you all for your input.

Vaughn: The [FMP-Link] was exactly what I needed and did the trick beautifully. Many thanks.

Regards,

Philip Sommers

RE: Actually there is: the [FMP-Link] CDML tag. It will re-create the URL that generated the current page, with changes you specify.

This is not in original question, since it will repeat the search again: "Is there a way to sort the existing found set again without having to perform a new find?"

  • Author

My apologies, Anatoli. Perhaps I mistated the problem. I was looking for a way to allow users to re-sort a found set from the results html page without having them go back to the search html page and re-enter (retype) the search criteria.

In my original solution (using FMP-CurrentFind), I was making a failed attempt to plug the returned search values back into the URL, therefore performing a new find (and sort) without physically entering the new search criteria.

Regards,

Philip Sommers

No need to apologize :-)

I was in the same muddy waters years ago. We are here to share knowledge!

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.