macaroni Posted April 21, 2003 Posted April 21, 2003 If I set a Token to some field value, can that token be passed to the format page of the form which will then be used to set the value of a different field. i.e. In form A, the token is set to the value of [fmp-field B] and when the form is submitted and goes to the format page, I want to use the token that I set from the first page that contains form A to set the value of a form field found in the format page. Thanks.
Jeff Spall Posted April 22, 2003 Posted April 22, 2003 Hi, yes if you mean that you can use a token to pass a value to another database or field you can do that very easily, just put the token as the value of the field. here's one I use as a url, where the token is the user's name: <A HREF="FMPro?-db=theotherdatabase&-lay=layout1&-format=book2.htm&name=[FMP-CurrentToken]&thedate=[FMP-Field:thedate]&-TOKEN=[FMP-CurrentToken]&-New">click to book</A> .......that also passes the same token along to the next part of the procedure. or in a form, pass it as a hidden field: <INPUT TYPE=hidden NAME=thefield VALUE=[FMP-CurrentToken]> regards, jeff
macaroni Posted April 22, 2003 Author Posted April 22, 2003 What is the proper syntax of using a token in an inline action? Thanks....
Leb i Sol Posted April 22, 2003 Posted April 22, 2003 for setting a token = to a field value [FMP-InlineAction:-db=MY_DB.fp5, -lay=MY_LAY, -token.0={field:FIELD_name}, -view] for passing a token is jusat about the same ...-token.0=[FMP-CurrentToken:0]... *token.X if you use X number of tokens ---> if you use just one token "dot number" is not needed .:. -token= and [FMP-CurrentToken] If I payed attention this forum....this is how you would do it.
macaroni Posted July 9, 2003 Author Posted July 9, 2003 I'm trying to use the value of a token as the value in an Inline Action. For some reason, I get no results in the InlineAction. I printed the value of the token prior to the InlineAction and their is a value. Below is my code: [FMP-CurrentToken: 2] <! -- shows fine here --> [FMP-InlineAction: -db=Request_, -lay=TableDefault, reservation={FMP-CurrentToken: 2}, -Find] [FMP-Record] [FMP-field: reservation] [FMP-field: job_type] [/FMP-Record] [/FMP-InlineAction] For some reason, I can't seem to figure out as to why I can't seem to use the value of the CurrentToken that contains the value to be used in the -find request in InlineAction? I think my syntax is correct?
Unable Posted July 9, 2003 Posted July 9, 2003 ...reservation="{FMP-CurrentToken: 2}", ... Perhaps, or not.
Leb i Sol Posted July 9, 2003 Posted July 9, 2003 maybe just a paste error but: -db=Request_, should read: -db=Request_.fp5 all the best!
macaroni Posted July 9, 2003 Author Posted July 9, 2003 The correct syntax is actually reservation={CurrentToken: 2} and not reservation={FMP-CurrentToken: 2}. The intratag syntax for Tokens doesn't use the FMP-. -db=Request_ does actually work. Thanks.
Recommended Posts
This topic is 7877 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