vasilek Posted August 22, 2002 Posted August 22, 2002 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.
Keith M. Davie Posted August 22, 2002 Posted August 22, 2002 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.
Anatoli Posted August 23, 2002 Posted August 23, 2002 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...
vasilek Posted August 24, 2002 Author Posted August 24, 2002 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.
Keith M. Davie Posted August 24, 2002 Posted August 24, 2002 Then you might try experimenting with the fmp-cookie tag.
Anatoli Posted August 24, 2002 Posted August 24, 2002 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.
Keith M. Davie Posted August 25, 2002 Posted August 25, 2002 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.
Anatoli Posted August 25, 2002 Posted August 25, 2002 Thanks 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.
vasilek Posted August 25, 2002 Author Posted August 25, 2002 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.
Anatoli Posted August 26, 2002 Posted August 26, 2002 I wish you best luck with cookies Let me know when FM cookies will stop working...
The Bridge Posted August 26, 2002 Posted August 26, 2002 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.
Anatoli Posted August 27, 2002 Posted August 27, 2002 MSIE 5 was not reading the 2 cookies reliably in autologin. Worked for 80% only.
Recommended Posts
This topic is 8194 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