Try triple quotes around the list filter:

<$list filter="""[all[tiddlers]contains:status[$myStatus$]]""" />  

On Monday, August 24, 2020 at 10:41:42 PM UTC+2 Mohamed Amin wrote:

> Hello All,
>
> Appreciate you help regarding my below issue:
>
> Suppose that I've a set of Tiddlers called "Recipes" ( Recipe01, Recipe02, 
> .....) where each of them has a field called "status"
>
> Where:
> {{Recipe01!!status}} = [[This is OK]]
> {{Recipe02!!status}} = [[This is OK]]
> {{Recipe03!!status}} = [[This is OK]]
> {{Recipe04!!status}} = [[This is "Not" OK]]
> {{Recipe05!!status}} = [[This is "Not" OK]]
>
> Also, I've a simple Macro to get all Tiddler by "status" :
>
> ```
> \define getWithStatus(myStatus)
> <$list filter="[all[tiddlers]contains:status[$myStatus$]]" />
>
> \end
> ```
>
> As expected, when I run the below macro command:
> <<getWithStatus [[This is OK]]>>
>
> The output is OK, I got :-
> Recipe01
> Recipe02
> Recipe03
>
> BUT, my problem when I run the following :
> <<getWithStatus [[This is "Not" OK]]>>
>
> where the output is (the macro content with substitution of parameter) :-
> ```
> <$list filter="[all[tiddlers]contains:status[This is "Not" OK]]" />
> ```
>
> Thanks in Advance
>
> P.S, I've tried both """_""", and '_' for the parameter :-
> <<getWithStatus """This is "Not" OK""">>
> <<getWithStatus 'This is "Not" OK'>>
>
> but I got the same output, 
>

-- 
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/294cecd9-82e8-40ce-a8fb-7e822acb66c2n%40googlegroups.com.

Reply via email to