Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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

Posted

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.

Posted

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...

Posted

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.

Posted

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?"

Posted

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

This topic is 8534 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.