January 8, 200224 yr 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 ]
January 8, 200224 yr 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?
January 8, 200224 yr 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
January 8, 200224 yr 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?
January 8, 200224 yr 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 ]
January 8, 200224 yr 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!
January 8, 200224 yr Author It worked! I'm a happy camper! Now I just have to go back and figure out why I went down this road 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 ]
January 8, 200224 yr 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
January 8, 200224 yr 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
January 8, 200224 yr 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
January 9, 200224 yr 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]"
January 9, 200224 yr Try changing: -token.0=[FMP-Currentrecid] to -token.0=[FMP-CurrentRecID] Maybe the no capitals is the problem. Garry
January 9, 200224 yr 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
January 9, 200224 yr 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
January 9, 200224 yr 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