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.

Today or currendate in an InlineAction

Featured Replies

I'm lost, once again..

I have multiple inlineactions in my website, all working just fine, but I wanted to build in an extra reminder for some webusers and it's not working..aaaarrrgh!

When a user posts a new message (read creates a new record) it returns an 'ok' page. Wich is good. But on that 'ok' page I want a summary of all the records that person entered today. The inline works ok and based on a cookievalue containing the users password, but when I put a date function in it, it returns nada.

What should I use in the inline? I've tried DateIn=today (also tried using '{'), DateIn={fmp-currentDate} but it just won't work frown.gif

And yes I've searched the forum for it but after reading loads of lines I kinda lost concentration wink.gif

Thanks

  • Author

sorry smile.gif

I've found the answer already. Although it seemed unlikely when I tried it, it does work!

DateIn=//

that's it - nothing more to it, heh.

JP

Where did you get that from:

DateIn=//

I've never seen that one before.

Well done.

Garry

  • Author

Hi garrycl,

When I did a find in the DB itself I used the popup in the statusbar.. when I selected 'Today's Date' it entered the double slashes in the Date field.

I wonder if the other shortcuts in there work aswell...

Hope you can use it too smile.gif

JP

Well, I guess it's moot, now, but you can use {CurrentDate} in an inline action. Just, don't put the "fmp-" in the braces. Here's my working code:

[FMP-InlineAction: -db=filename.fmp, -lay=web, datefieldname={CurrentDate}, -find]

Actually, I no longer use this code since I could not get -max and [FMP-linknext] and [FMP-linkprevious] to work in an inline action. I now use a calculation field set to thisday=today and made other calc fields based on that value.

I used to use // in FMP layouts but never thought of using it in CDML. Odd.

  • Author

Hi,

I use -Max in all my inlines that perform a -find. To be honest, those are the ones that always work. If an iAction displays nothing it's usualy some syntax typo.

For you the extra calc might work, for my purpose it will only populate another field while its easely done as shown above. I do not need to track or search in any other date than 'today'. All other searches are based on CreationDate and ModDate.

My 2 cents.

JP

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.