Hi,
I’m trying to run the following code (at the end of the message) which uses a variable called ‘target’ (that contains the current date) into a filter called todayfilter
When I set the todayfilter
<$vars todayfilter="[get[task_date]compare:string:eg[2021-08-22]]">
All works fine (I mean the list <$list filter="[regexp[db___]!sort[task_start_time]filter]">
When I set the todayfilter using the variable (as in the code below) this does not works. I’ve tested several syntax options without success …
Any expert to tell me when the syntax is wrong ?
Many thanks , Regards
Vpl
\define now_val()
<$vars now_date=<>>
<$vars target={{{ [<now_date>] }}}>
<>
<$vars todayfilter="[get[task_date]compare:string:eg[]]">
<$list filter="[regexp[db___]!sort[task_start_time]filter]">Date | Project | Task | Start | Stop |
---|---|---|---|---|
//Number of tiddlers// | ''<$count filter="[regexp[db___]filter]"/>'' | |||
<$link><$view field="task_date"/> | <$view field="tags"/> | <$view field="task_comment"/> | <$view field="task_start_time"/> | <$view field="task_end_time"/> |
\end
<<now_val>>