Turansky Posted January 8, 2002 Posted January 8, 2002 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 ]
Turansky Posted January 8, 2002 Author Posted January 8, 2002 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?
Garry Claridge Posted January 8, 2002 Posted January 8, 2002 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
Turansky Posted January 8, 2002 Author Posted January 8, 2002 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?
Garry Claridge Posted January 8, 2002 Posted January 8, 2002 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 ]
kulmansam Posted January 8, 2002 Posted January 8, 2002 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!
Turansky Posted January 8, 2002 Author Posted January 8, 2002 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 ]
kulmansam Posted January 8, 2002 Posted January 8, 2002 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
Garry Claridge Posted January 8, 2002 Posted January 8, 2002 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
Turansky Posted January 8, 2002 Author Posted January 8, 2002 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
Garry Claridge Posted January 9, 2002 Posted January 9, 2002 Try this for displaying it: Token: [FMP-CurrentToken: 0] All the best. Garry
Turansky Posted January 9, 2002 Author Posted January 9, 2002 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]"
Garry Claridge Posted January 9, 2002 Posted January 9, 2002 Try changing: -token.0=[FMP-Currentrecid] to -token.0=[FMP-CurrentRecID] Maybe the no capitals is the problem. Garry
Turansky Posted January 9, 2002 Author Posted January 9, 2002 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
Garry Claridge Posted January 9, 2002 Posted January 9, 2002 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
Keith M. Davie Posted January 9, 2002 Posted January 9, 2002 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now