Brett_D Posted June 24, 2002 Posted June 24, 2002 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?
Brett_D Posted June 24, 2002 Author Posted June 24, 2002 I would, but the page I'm making has a nested format and needs to retain the [FMP-CurrentRecordNumber] order.
Keith M. Davie Posted June 24, 2002 Posted June 24, 2002 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.
Brett_D Posted June 24, 2002 Author Posted June 24, 2002 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.
Garry Claridge Posted June 24, 2002 Posted June 24, 2002 I believe that the Token will hold the value assigned from the calling page; not from the InlinAction. I could be wrong here however, that is what I have experienced so far. Good Luck. Garry
The Bridge Posted June 24, 2002 Posted June 24, 2002 Off the top of my head, would it help if you put [FMP-Record]...[/FMP-Record] tags within your innermost InlineAction?
Anatoli Posted July 21, 2002 Posted July 21, 2002 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.
scratchmalogicalwax Posted July 22, 2002 Posted July 22, 2002 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now