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.

Passing the Token

Featured Replies

Hello,

I'm trying to pass a token with the following link:

"[FMP-linkrecid:max=1,layout=Event,format=scoe/event.html,-RecID=[FMP-CurrentRecID]" -token.0=[FMP-Currentrecid]"

And here I am trying to display the token on the format page:

Token:[FMP-CurrentToken.0]

On the format page it displays :

Token:[FMP-CurrentToken.0]

Can anyone see what I have done wrong please?

Thank you

Kent

[ January 08, 2002: Message edited by: Kent Turansky ]

  • Author

The assumption is correct. I have already done a find and listed the results. From there I can also click on the link to view the record of choice. So . . .

I've created a Temporary Debugging Info thing on the top of the next page and it is giving me the following information:

Temporary debugging info

Action:find

Database:scoe_events.fp5

Token:

RecID:80

Error:0

NumberFound:1

Find:content_areabegins withMathematics

So the RecID is there but the Token is not showing up?

You could also try this:

"[FMP-LinkRecID]&token.0=[FMP-CurrentRecID]"

It may concatenate the token assignment to the generated URL. Note that you should not have to include -recid=[FMP-CurrentRecID], as [FMP-LinkRecID] generates it.

All the best.

Garry

  • Author

Something happened. I now have:

a href="[FMP-LinkRecID]&token.0=[FMP-CurrentRecID]&-format=scoe/event.html&-RecID=[FMP-CurrentRecID]"

And on the format page it's spitting out a token under the find:

Temporary debugging info

Action:find

Database:scoe_events.fp5

Token:

RecID:80

Error:0

NumberFound:1

Find:content_areabegins withMathematics

token.0begins with80

The Token line is written like this:

Token: [FMP-CurrentToken: 0]

I'm not sure what to make of all this?

The syntax should be like this (from the CDML Reference database):

a href="[FMP-LinkRecID: format=Detail.htm, layout=detail]">

Hence, your link syntax should look like this:

a href="[FMP-LinkRecID: format=scoe/event.html, layout=Event]&-token.0=[FMP-CurrentRecID]&-max=1"

Garry

[ January 08, 2002: Message edited by: Garry Claridge ]

I don't mean to be rude,

just remember to put the '<' before a href

there fore you should have the whole syntax as:

<a href="[FMP-LinkRecID: format=Detail.htm, layout=detail]"> (before modifying it to suit your needs)

Just thought I'd chip in my 2 cents!

  • Author

It worked! I'm a happy camper!

Now I just have to go back and figure out why I went down this road wink.gif" border="0

Thank you so much for your help. I understand it takes time out of your day. I really appreciate this. I promise I won't post another question for at least an hour.

Kent

[ January 08, 2002: Message edited by: Kent ]

only one hour?? hehehehe (just kidding)

hey we are all in same boat

some know some things more than the others, some learn while trying to make others understand etc etc.. but learning is a process that never ceases smile.gif" border="0

I was just having a look back over this and realised that you do not need the -max=1. This is because the [FMP-LinkRecID] is finding the record by RecordID; which is unique.

Garry

  • Author

Good point. I'm still reading over everything making sure I understand this as much as possible before I move on.

I took that -max=1 out of there real quick though!

Thanks again

Kent

Try this for displaying it:

Token: [FMP-CurrentToken: 0]

All the best.

Garry

  • Author

Well that did clear up one problem. On the format page it's not displaying anything for the token. So I would have to asume that I'm trying to pass the token wrong. Any other errors you might see?

a href="[FMP-linkrecid:max=1,format=scoe/event.html,-RecID=[FMP-CurrentRecID]" -token.0=[FMP-Currentrecid]"

Try changing:

-token.0=[FMP-Currentrecid]

to

-token.0=[FMP-CurrentRecID]

Maybe the no capitals is the problem.

Garry

  • Author

I gave it a try but that didn't work.

I even tried to place it before the -RecID=[FMP-CurrentRecID]" but that didn't work either.

I'm stumped

I just checked the syntax of [FMP-LinkRecID] in the CDML Reference database. It only accepts format and layout, so you may have to use a URL instead. Try this:

href="FMPro?-db=mydb.fp5&-format=scoe/event.html&-lay=Event&-recid=[FMP-CurrentRecID]&-token.0=[FMP-CurrentRecID]&-find">

More detail</a>

Garry

cdml tags are not case sensitive.

One must assume that your link is occurring from an already identified (accessed) db and recid. That is, that -token.0=[fmp-currentrecid] because you are at that current record in that db.

SIMPLIFY ...

Keith

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.