Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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.

  • Author

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.

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

  • Author

I looked at your example and I understand what you did, but it still returns the wrong list.

I just don't get it! mad.gif

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

  • Author

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

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

  • Author

I finally solved my problem using tokens and not the FMP-Link tag.

It works just fine now.

Thanks for all the suggestions! laugh.gif

You're welcome Donna.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.