Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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 ]

Posted

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?

Posted

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

Posted

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?

Posted

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 ]

Posted

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!

Posted

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 ]

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

This topic is 8423 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.