Jump to content

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

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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.

Posted

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

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