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
Hi Tones
Thanks very much for this answer
I’ve tested your option and get a TiddlyError Cannot read property getVariable of undefined … I’ve attached the screenshot for référence
To ease the analysis I’ve attached the tiddywiki. When you open it you arrive to the CurrentDay tiddler which contains the code
I’ve commented the option you proposed as it triggers this error
I use the filter operator into the list as I want to filter the tiddlers based on the task_date field
For each of the filtered tiddlers I display the fields in the table
If I put the “get[task_date]” directly into my final filter like that (<$list filter="[regexp[db___]!sort[task_start_time] [get[task_date]match ">) I do not have the tiddler fields to display
More, When I try the below code I get a Tiddler exception (attached in my previous post …)
Is there a bug in the filter operator or something wrong I’m doing ?
You are obviously right … thanks
But even with that I still get an Tiddly exception
FOr your convenience I’ve prepared a small tiddly with the code (tiddler test) as an attachment