December 10, 200322 yr Hello, I'm trying to figure out how to get the Previous/Next links to work correctly after an Edit. First, I have a page that lists names based on the results of a search. One can click on a name and be taken to the Detail page for that record. The detail page has Previous/Next links at the bottom that allow one to navigate through the Detail pages without going back to the List page. On the Detail page, one can also edit the record. Here's my problem: I want people to be able to click on Edit, and then be brought back to the same Detail page with functioning Next/Previous links. However, after clicking Edit the Next/Previous links are no longer accurate when one is brought back to the page. I thought that perhaps I could add an inline action to the Detail page that would recreate the original search, but I don't know the syntax for including [FMP-CurrentFind] and [FMP-CurrentSort] in an inline. Thanks for any help!
December 10, 200322 yr You could use a token which contains your original search criteria. I believe that the Sample File CDML Linking to the next record provides some useful ideas in this regard.
December 10, 200322 yr Author Thank you for the idea. That sounds like it might work. I'll give it a try and post the results.
January 8, 200422 yr hi there I have a similar problem: After a search a list is displayed. When one clicks on one of the list entries one is taken to the detail page (with FMP-linkrecid). But on the detail page I can't get the linkPrevious and linkNext commands working. Is this possible or not? Thanks for any help. kind regards PJ Wassermann
January 8, 200422 yr Hi Unable I went through your example files - very interesting! My problem is that I don't want a button to go from the list to the detail page. I want to have a text link and that probably can't be done with a form. Or am I wrong about that? Maybe I could do an inline action on the detail page, displaying only the related files as a list again. kind regards pjw
January 8, 200422 yr A "text link" can submit a form. For example: <a href="Javascript: document.myform.submit();">Text Goes Here</a> Good Luck. Garry
Create an account or sign in to comment