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
I've tested the todayfilter this way
<$vars todayfilter="[get[task_date]compare:string:eg[2021-08-22]]">
and this works (I mean the list <$list
filter="[regexp[db___]!sort[task_start_time]filter<todayfilter>]"> works
fine
\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/bd58bb6f-52da-4444-bd70-ae8424c458b1n%40googlegroups.com.