Thank you Jeremy. Your macros is working, but I don't know how to modify it to my proposes (I try many variants)
my idea was to make a list of checkboxes,
<$list filter="[is[current]tagging[]tag[$:/Note]each[vendor]get[vendor]]" variable="vendor">
<$checkbox tiddler="$:/_allvendors" field= <<vendor>> checked="yes" > ''<<vendor>>'' </$checkbox><br>
</$list>
the position of checkboxes I save in $:/_allvendors tiddler in its fields. so, If the checkbox of vendor Dell is checked (unchecked), I want o remove from list all tiddlers with field vendor="Dell'
<$list filter="[is[current]tagging[]tag[$:/Note]!vendor[Dell]sort[stoimost]]"/> if I check (uncheck) "Nikon" the list must look like <$list filter="[is[current]tagging[]tag[$:/Note]!vendor[Dell]!vendor[Nikon]sort[stoimost]]"/>
so I want to create filter modifying by the lists of checkboxes .
but I can't understand, how to put many $fieldname$ into my list.
пятница, 17 апреля 2015 г., 0:15:14 UTC+3 пользователь Jeremy Ruston написал:
This was a fun little problem to solve. The solution I've come up with isn't pretty, but it seems to work:
\define inner(fieldName)
<$set name="v" value={{!!$fieldName$}}>
<$list filter="[<v>regexp[^yes$]]" variable="x">
<$text text="""$fieldName$"""/>
</$list>
</$set>
\end
<$list filter="[<currentTiddler>fields[]sort[]]" variable="fieldName">
<$macrocall $name="inner" fieldName=<<fieldName>>/>
</$list>
The regexp is particularly egregious; it's needed because we don't have a straightforward way to test a title for equality.
Best wishes
Jeremy.