dschaal Posted February 24, 2003 Posted February 24, 2003 I have a problem with using FMP-Link. Scenario: I have two databases: Agency and Building. The user will submit a password to the Agency database retrieving their FY03 record. Each user only has one agency record to retrieve. Then they will edit 10-12 pages worth of questions regarding their agency. The next step is to retrieve their building records. This search is based on the search they did for agency. Most of them will have multiple records at this level. The list is returned just fine and they can edit whichever one they want. After 2-3 pages of questions, I would like for them to be able to go back to the retrieved buildings list so they can continue editing their building records. I am using the following as a link back to the list of buildings but it doesn't work right. It returns not only their records but any records that follow (alphabetically) until the page runs out of room. Any suggestions as to what I'm doing wrong? <A HREF="http://mydomain.org/FY03_aps/[FMP-Link: ra]&-format=listba_03.htm&-Find"> Thanks in advance! Donna
Unable Posted February 24, 2003 Posted February 24, 2003 Syntax. If you don't have the CDML Reference Database, you should get it right now. "[FMP-Link] is replaced with a URL that points to the page it is on." You are embedding a URL in a URL. "The link that is generated includes all the find and sort criteria that was used to generate the page this tag is on." etc.
dschaal Posted February 25, 2003 Author Posted February 25, 2003 Hi. Originally I tried just using the [FMP-Link] tag without the domain name, etc. but it didn't work. Then I found an earlier post from this list that the advise given was to: [color:"blue"] ...make your button a url link: &-format=theformatfile.html&-Find]http://mydomain.com/directorypath/[FMP-Link:%20ra]&-format=theformatfile.html&-Find [FMP-Link: ra] embeds the current find criteria so it will preserve multi-field finds and the sort order. So that's why I added my domain, etc. I went back to: <A HREF="[FMP-Link: ra]&-format=listba_03.htm&-Find"> and it still returns the wrong list. Any suggestions? Thanks in advance. Donna I do have a copy of the CDML Reference db for what's it's worth.
Unable Posted February 25, 2003 Posted February 25, 2003 "After 2-3 pages of questions, I would like for them to be able to go back to the retrieved buildings list..." Let's see. The client fills 2-3 pages of questions. And these pages are generated with some sort of action? And (guess) at some point an edit of a record occurs. Perhaps the [FMP-Link] needs to be carried (passed) from format file to format file as a token until it will be needed (can be set through a token). Just a guess.
Jeff Spall Posted February 26, 2003 Posted February 26, 2003 Hi, by coincidence I've just had to do this, so here's a working example. in this case you can go from a seach to a record detail page to a print format page and still keep a link that takes you back to the original search. Easier to show than explain. To get it running, call the start page as: http://localhost:591/extracopiesf/FMPro?-db=extracopies&-format=default.htm&-view extracopiesf.zip
dschaal Posted February 26, 2003 Author Posted February 26, 2003 I looked at your example and I understand what you did, but it still returns the wrong list. I just don't get it!
Garry Claridge Posted February 26, 2003 Posted February 26, 2003 Can you view the "Source" of each page, after it loads in the browser, to see what is happening to the Link as it moves from page-to-page? Good Luck. Garry
dschaal Posted February 26, 2003 Author Posted February 26, 2003 Yes, I've done that. And, there is a difference. When I do the first search, it gives me this: [color:"green"] ]http://mydomain.org/FY03_aps/FMPro?-db=buildingaps&-format=editb1%5f03.htm&FY=FY2003&agencyPassword=dotaps&-recid=33298&-find= The original search is based on token.2 being passed in the agencyPassword field and then I'm limiting the search to just FY2003 records. Again, the first time around the list is just fine. You click the edit button and go to the individual building record where you can update the information. There are 3 pages of questions. Then I have a page that I want them to be able to go back to their building list using the [FMP-Link] command. After I click the link to go back to the list page it gives me this: [color:"green"]http://mydomain.org/FY03_aps/FMPro?-db=buildingaps&-lay=baps&-skip=625&-token.0=LTN&-token.2=dotaps&-format=listb_03.htm&-Find You can see that the search criteria of FY2003 and agencyPassword is not there but the token information is. This should still give me the same results but it is a difference. There should be two records that match both of these criteria but instead I'm getting a list of 25. I have tried the [FMP-Link] command with and without the skip. I have tried it with or without tokens. It's almost if it is going to the correct format page but not really doing the search again. Any suggestions? Thanks! Donna
Garry Claridge Posted February 27, 2003 Posted February 27, 2003 The [FMP-Link] tag is only going to give the URL for the current page, not a previous search. You may have to pass the original search criteria as Tokens! Or, use Frames, or use a Pop-up Window for editing, to maintain the result list in the main window. All the best. Garry
dschaal Posted March 5, 2003 Author Posted March 5, 2003 I finally solved my problem using tokens and not the FMP-Link tag. It works just fine now. Thanks for all the suggestions!
Recommended Posts
This topic is 8003 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