December 9, 200223 yr 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
December 9, 200223 yr Author 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
December 9, 200223 yr Where did you get that from: DateIn=// I've never seen that one before. Well done. Garry
December 10, 200223 yr 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 JP
December 11, 200223 yr 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.
December 11, 200223 yr 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