balooka Posted December 9, 2002 Posted December 9, 2002 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 And yes I've searched the forum for it but after reading loads of lines I kinda lost concentration Thanks
balooka Posted December 9, 2002 Author Posted December 9, 2002 sorry 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
Garry Claridge Posted December 9, 2002 Posted December 9, 2002 Where did you get that from: DateIn=// I've never seen that one before. Well done. Garry
balooka Posted December 10, 2002 Author Posted December 10, 2002 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 JP
Steve T. Posted December 11, 2002 Posted December 11, 2002 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.
balooka Posted December 11, 2002 Author Posted December 11, 2002 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
Recommended Posts
This topic is 8411 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