Jump to content

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

Recommended Posts

Posted

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.

Posted

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

Posted

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.

  • 2 months later...
Posted

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?

Posted

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.

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 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.