[tw5] Re: how to filter on a field of a specific tiddler ?

2021-08-16 Thread vpl
Magic !! Thanks a lot. THis is working fine

Regards

Le lundi 16 août 2021 à 14:52:19 UTC+2, TW Tones a écrit :

> Try this;
>
> \define test_project() $:/temp/project-1
> <$list filter="[get[alarms]!match[]]" variable="has_alarms">
><>
> 
>
> When you go from a text reference transclusion 
> "{$:/temp/project-1!!alarms}" to a filter "[get[alarms]" you 
> can't just change half the text reference.
>
> Tones
>
> On Monday, 16 August 2021 at 22:48:03 UTC+10 vpl wrote:
>
>> Hi,
>>
>> I'm blocking a the current issue.
>> I want to apply a $listwidget on the value contained into a specific 
>> tiddler variable
>>
>> The following code works fine
>>
>> \define test_project()$:/temp/project-1
>> <$list filter="[{$:/temp/project-1!!alarms}!match[]]" 
>> variable="has_alarms">
>><>
>> 
>>
>> But when I want to use the test_project macro name (defining the tiddler) 
>> this does not works ..
>> <$list filter="[{!!alarms}!match[]]" variable="has_alarms">
>><>
>> 
>>
>> Any idea that would help me ???
>>
>> Thanks a lot for your support
>>
>> Vpl
>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8a56bd04-0fba-4243-8005-bbf2479cd934n%40googlegroups.com.


[tw5] Re: how to filter on a field of a specific tiddler ?

2021-08-16 Thread TW Tones
Try this;

\define test_project() $:/temp/project-1
<$list filter="[get[alarms]!match[]]" variable="has_alarms">
   <>


When you go from a text reference transclusion 
"{$:/temp/project-1!!alarms}" to a filter "[get[alarms]" you 
can't just change half the text reference.

Tones

On Monday, 16 August 2021 at 22:48:03 UTC+10 vpl wrote:

> Hi,
>
> I'm blocking a the current issue.
> I want to apply a $listwidget on the value contained into a specific 
> tiddler variable
>
> The following code works fine
>
> \define test_project()$:/temp/project-1
> <$list filter="[{$:/temp/project-1!!alarms}!match[]]" 
> variable="has_alarms">
><>
> 
>
> But when I want to use the test_project macro name (defining the tiddler) 
> this does not works ..
> <$list filter="[{!!alarms}!match[]]" variable="has_alarms">
><>
> 
>
> Any idea that would help me ???
>
> Thanks a lot for your support
>
> Vpl
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ef4a4218-901b-4c6c-96e0-1b155ea0b9a0n%40googlegroups.com.