Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Does it possible set a cookie that value is a result of inlineaction...?

For example:

I've a -db=A.fp5 with fieldB, fieldC, user_ID and a script that create a value for user_ID, called CREATE_ID.

And I wrote this tag in my html page:

[FMP-if:currentcookie:User_ID.neq.]

[FMP-InlineAction: -db=A.fp5, -lay=web, fieldB="ValueB", fieldC="ValueC", user_ID={FMP-cookie:User_ID}, -new][/FMP-InlineAction]

[FMP-else]

[FMP-InlineAction: -db=A.fp5, -lay=web, fieldB="ValueB", fieldC="ValueC", -script=CREATE_ID, -new][/FMP-InlineAction]

<<***>>

[/FMP-if]

<<***>> == I'd like to set a cookie with user_ID value, but I don't know how to do it... I tried [FMP-SETCOOKIE: User_ID=field:User_ID, EXPIRES=30 ] and the value allways is blank...

Please help meeeeeeeeeeeeee!

Posted

Just a thought.

Have you tried sticking the code to set the cookie in between the inline tags eg [inlineAction: etc etc ] set cookie [/inlineAction]

NB database values returned from an inline action are available to replacement tags only when the replacement tags are placed between the opening and closing inline tag (as above).

laugh.gif" border="0

[ May 22, 2001: Message edited by: scratchmalogicalwax ]

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