Hi David

In filters you can’t combine the effect of the [, { and < brackets. Instead 
you’d have to extract the field value as a separate operation.

Try this (I’ve changed the tiddler and field names so that it works on 
tiddlywiki.com <http://tiddlywiki.com/>):

<$set name="datasource" value="Commands">

<$set name="datasourcetext" value={{{ [<datasource>get[tags]] }}}>

<$list filter="[enlist<datasourcetext>]" variable="field-item">

<$text text=<<field-item>>/>

</$list>

</$set>

</$set>

Note that I also replaced <<field-item>> with <$text text=<<field-item>>/>. The 
former will wikify the value of the field, so, for example, if it contains 
double single quotes they’d be interpreted as starting bold text.

Best wishes

Jeremy.

> On 3 Mar 2019, at 12:28, David Nebauer <[email protected]> wrote:
> 
> The following displays the items from the myfield field in the MyTiddler 
> tiddler:
> 
> <$list filter="[enlist{MyTiddler!!myfield}]" variable="field-item">
> 
> <<field-item>>
> 
> </$list>
> 
> This, which I expect to be exactly equivalent, displays nothing:
> 
> <$set name="datasource" value="MyTiddler">
> 
> <$list filter="[enlist{<datasource>!!myfield}]" variable="field-item">
> 
> <<field-item>>
> 
> </$list>
> 
> </$set>
> 
> As far as I can tell, using a variable in a filter like this is correct 
> syntax, but it does not work in this case.
> 
> I'm flummoxed since there are plenty of examples online of similar uses of 
> variables in filters which are said to work. Can anyone help me understand 
> what is (not) happening here?
> 
> Regards,
> David.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/ecaad611-a265-4980-9ac2-6696de2ebe65%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/ecaad611-a265-4980-9ac2-6696de2ebe65%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/95DB4168-4839-410E-8294-3700CCF14F86%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to