Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

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.

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...

  • Author

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.

Then you might try experimenting with the fmp-cookie tag.

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.

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.

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.

  • Author

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.

I wish you best luck with cookies smile.gif

Let me know when FM cookies will stop working...

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.

MSIE 5 was not reading the 2 cookies reliably in autologin. Worked for 80% only.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.