Yes it does trigger a javascript exception.

The following code does the things you want, if I have well understood your 
goal.

<$vars target="<<now YYYY-0MM-0DD>>">
<$wikify name=todayfilter text="
 [get[task_date]match[<<target>>]]">
<<target>> : <<todayfilter>>

<table><tbody>

<$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>
</$wikify></$vars>

Le lundi 23 août 2021 à 14:37:20 UTC+2, vpl a écrit :

> 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
>
> Open the *test *tiddler and replace the 
> <$vars todayfilter="[get[task_date]match[2021-08-23]]">
> by
> <$vars todayfilter="[get[task_date]match<target>]">
>
> You will get a javascript exception as I mentioned in the previous posts 
> of this conversation
>
> Is it a bug ?
>
> Thanks for your help
>
> Regards
>
> Le lundi 23 août 2021 à 14:25:36 UTC+2, Eric Shulman a écrit :
>
>> On Monday, August 23, 2021 at 5:13:22 AM UTC-7 vpl wrote:
>>
>>> Thanks a lot; I agree for 1), 3) and 4)
>>> But for point 2) in fact what I need to do is the following code 
>>> <$vars now_date=<<now YYYY-0MM-0DD>>>
>>> <<target>>
>>> <$vars todayfilter="[get[task_date]match<target>]">
>>>
>> 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
>>>
>>
>> Ah, yes...I see now.  You *do* want to find *all* tiddlers that have a 
>> "task_date" field, not just check the current tiddler.
>>
>> 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 ?
>>>
>>
>> I think you missed a change on line 1.  Instead of:
>> <$vars now_date=<<now YYYY-0MM-0DD>>>
>> you want:
>> <$vars target=<<now YYYY-0MM-0DD>>> 
>>
>> -e
>>
>

-- 
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/3d7aceab-6219-427b-b033-0d769bb2db6an%40googlegroups.com.

Reply via email to