Use of variable in a list filter

59 views
Skip to first unread message

Cully

unread,
Jan 16, 2017, 9:51:10 PM1/16/17
to TiddlyWiki
How do you use a variable in a list filter? I need to use a variable to list tiddlers that have a given tag (results) but I am not able to get the syntax right.

I have defined <<ThisCustomer>> by using:

\define ThisCustomer() <$list filter='[is[current]tags[]]-[[Contacts]]' variable=ThisCustomer>

Here is what I have for the entire filter:

<$list filter="[!has[draft.of!]!tag[Opportunity]!tag[Closed]!tag[Template]sort[]]">

</$list>

It is returning the list I expect but I need to limit the results to the tiddlers that have the results defined by ThisCustomer.

I'm sure it's simple but... After several hours of searching I thought I would ask.

Thanks!

Tobias Beer

unread,
Jan 17, 2017, 2:36:15 AM1/17/17
to tiddl...@googlegroups.com
Hi Cully,

in general, you use a variable in filters like so:

[somefilter<myVariable>otherfilter{some text!!reference}]


Best wishes,

Tobias.
Reply all
Reply to author
Forward
0 new messages