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<todayfilter>]">
When I set the todayfilter using the <target> 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=<<now YYYY-0MM-0DD>>>
<$vars target={{{ [<now_date>] }}}>
<<target>>
<$vars todayfilter="[get[task_date]compare:string:eg[<target>]]">
<table><tbody>
<tr><th>Date</th><th>Project</th><th>Task</th><th>Start</th><th>Stop</th></tr>
<tr>
<td> </td>
<td align="right">//Number of tiddlers//</td>
<td colspan="4">''<$count
filter="[regexp[db___]filter<todayfilter>]"/>''</td>
</tr>
<$list filter="[regexp[db___]!sort[task_start_time]filter<todayfilter>]">
<tr>
<td><$link><$view field="task_date"/></$link></td>
<td><$view field="tags"/></td>
<td><$view field="task_comment"/></td>
<td><$view field="task_start_time"/></td>
<td><$view field="task_end_time"/></td>
</tr>
</$list>
</tbody></table>
\end
<<now_val>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1911df1f-db06-4035-9ff1-c28c5e5a7627n%40googlegroups.com.