Jump to content
Sign in to follow this  
vasilek

FMP-InlineAction

Recommended Posts

When using [FMP-InlineAction] tag what would be the correct syntax to insert dynamic fields and cookies? For instance, in the following example I need ProdID to be equal to the value from the ProductID field and TransID - to CookieName. What I wrote here - doesn't work: [FMP-InlineAction: -db=Database1.fp5, -lay=Form, TransID={Cookie:CookieName}, ProdID={Field:ProductID}, -find][FMP-CurrentFoundCount][/FMP-InlineAction]. Any help is appreciated.

Thank you.

Share this post


Link to post
Share on other sites

Cheese n crackers, I've never understood cookies, so I've never used them. The cdml reference tells me "A cookis is saved by the browser...". Hmmmmm. Well a token can be passed from format file to format file and from format file to db and from db to format file. Oh well, maybe that's why I use tokens.

You write that your code includes: "TransID={Cookie:CookieName}".

Cookie:CookieName is not a relationship. What is it? Is that the data which is populating TransID?

I also get that you are performing a find on two fields, ProdID and TransID.

And I see that you are not using the fmp-cookie tag. So I'm pretty confused here. I don't know if that's any help or not.

Share this post


Link to post
Share on other sites

Just elaborate more -- even if it will work for some time, cookies between IE and FM WC are not reliable and the duration should be set only to 9999.

Use Tokens as Keith is suggesting, that is much better way...

Share this post


Link to post
Share on other sites

Of course syntax Cookie:CookieName is not a relationship. This would look like a relationship Cookie::CookieName. Yes, the data from cookie stored on my HardDrive should be populating this replaicement tag. I was just not sure whether {Cookie:CookieName} is the right syntax inside the [FMP-InlineAction] tag. As far as I now [FMP-Cookie:CookieName] won't work inside [FMP-InlineAction], the same way [FMP-CurrentDatbase] is not the right syntax here and it should be {CurrentDatabase}. Anyway Tnanks.

Share this post


Link to post
Share on other sites

As I've written -- I was not able to make cookies work on simple CDML statements. Actually it worked somehow in NN and not in IE.

And not a single soul confirmed it would work "If something is different, like..."

To rely on them and to push that into InLine -- I am very skeptical.

Share this post


Link to post
Share on other sites

Anatoli, I agree tokens are the way to go. It's just this person seemed to ignore your advise and be insistent on using cookies, so I thought I'd suggest the fmp-cookie tag.

Share this post


Link to post
Share on other sites

Thanks smile.gif

I would LOVE to use cookies. I am using them even in FileMaker hosted sites, but not the one generated by WebCompanion.

JavaScript originated cookies (my are from GoLive Actions) and inserted into Forms are working OK. But they are JS page generated cookies and not the WC.

Share this post


Link to post
Share on other sites

All I asked is whether the CDML syntax inside the [FMP-InlineAction] tag was correct. I didn't have any problems with storing and reading cookies. All the advises I was receiving weren't answering my question. I figured out the correct CDML syntax myself. But... Thanks for your time anyway.

Share this post


Link to post
Share on other sites

Out of curiosity, vasilek, what is the correct syntax for cookies inside inline actions?

BTW, the only problem I've experienced with CDML-set cookies has been when I've tried to set more than one at a time.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.