Jump to content

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

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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

Posted

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

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