Jump to content

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

Recommended Posts

Posted

I have an [FMP-InlineAction] tag on a web page, and I use the [FMP-Record] tag to loop through the found set. Within the loop, I have a [FMP-CurrentRecordNumber] tag. It returns the correct value on the website itself, but it doesn't evaluate when I put the intratag form as a token in a nested [FMP-InlineAction] as follows:

[FMP-InlineAction: -db="firstdatabase.fp5", -lay="Layout #1", Field="find_value", -Find]

[FMP-Record]

[FMP-CurrentRecordNumber] <---This evaluates correctly

[FMP-InlineAction: -db="seconddatabase.fp5", -lay="Layout #1", Field="find_value", -token="first_token", -token.1={FMP-CurrentRecordNumber}, -Find]

[FMP-CurrentToken: 1] <---This doesn't evaluate

[/FMP-InlineAction]

[/FMP-Record]

[/FMP-InlineAction]

Am I doing something wrong?

Posted

Ok. Then if I am reading your code correctly:

[FMP-InlineAction: -db="seconddatabase.fp5", -lay="Layout #1", Field="find_value", -token="first_token", -token.1={FMP-CurrentRecordNumber}, -Find]

you are trying to pass two tokens and performing a -find in seconddatabase.fp5 using the value "find_value" in the field Field.

Is the find being successful?

I'm not sure on how important it is to define the first token as -token.0="first_token" instead of as -token="first_token", even though -token used by itself supposedly defaults to -token.0

If [FMP-CurrentToken: 1] is not being evaluated/displayed, it may not have been captured, and therefore not passed.

Finally, it may be that what you are attempting is not possible, in part or in its entirety. Perhaps others will offer more help.

Posted

The find is successful. I tested it out using just one token (i.e. -token={FMP-CurrentRecordNumber}), and it still doesn't pass the value.

Posted

Off the top of my head, would it help if you put [FMP-Record]...[/FMP-Record] tags within your innermost InlineAction?

  • 4 weeks later...
Posted

IMHO it wouldn't work.

Inline is complete and separate process. You create something (result) you can display and reuse within the same Inline. Then it is forgotten 100%.

You can store result in token and use it on next page.

It is down to design. I will call your way cheap and FM doesn't buy this.

Why don't you use portal for such thing? You don't have to do the second search.

Posted

RE: Inline is complete and separate process. You create something (result) you can display and reuse within the same Inline. Then it is forgotten 100%.

any values derived from the first inline should be available in the opening Inline tag of the nested inline ...... tokens from one, in Lasso anyway, are not available in the other. Think of them as format files within format files when trying to pass values from one to the other .... this is why Lasso have introduced the named inline then the values can be called by the inline name.

If used properly with other features like portals they can be very powerful

cool.gifsmile.gif

This topic is 8230 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.