April 21, 200322 yr 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.
April 22, 200322 yr 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
April 22, 200322 yr Author What is the proper syntax of using a token in an inline action? Thanks....
April 22, 200322 yr 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.
July 9, 200322 yr Author 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?
July 9, 200322 yr maybe just a paste error but: -db=Request_, should read: -db=Request_.fp5 all the best!
July 9, 200322 yr Author 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.
Create an account or sign in to comment