September 18, 200124 yr 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
September 18, 200124 yr 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.
September 18, 200124 yr 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.
September 18, 200124 yr 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...
September 18, 200124 yr 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.
September 19, 200124 yr 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
September 19, 200124 yr 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?"
September 20, 200124 yr 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
September 20, 200124 yr 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