ljensen1 Posted December 10, 2003 Posted December 10, 2003 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!
Unable Posted December 10, 2003 Posted December 10, 2003 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.
ljensen1 Posted December 10, 2003 Author Posted December 10, 2003 Thank you for the idea. That sounds like it might work. I'll give it a try and post the results.
PJ Wassermann Posted January 8, 2004 Posted January 8, 2004 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
Unable Posted January 8, 2004 Posted January 8, 2004 Sample Files Forum CDML Linking to the next record May be useful, or not.
PJ Wassermann Posted January 8, 2004 Posted January 8, 2004 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
Garry Claridge Posted January 8, 2004 Posted January 8, 2004 A "text link" can submit a form. For example: <a href="Javascript: document.myform.submit();">Text Goes Here</a> Good Luck. Garry
Recommended Posts
This topic is 7695 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 accountSign in
Already have an account? Sign in here.
Sign In Now