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.
>
>
>
> On Thu, Apr 16, 2015 at 6:16 PM, Jed Carty <[email protected] 
> <javascript:>> wrote:
>
>> I have been trying to find a way to do that directly for a while and 
>> haven't been able to come up with anything. You can use how I made the 
>> options checkboxes work on this site 
>> <http://ooktech.com/jed/ExampleWikis/Version518Fun/>. Each checkbox puts 
>> the filter part associated with that box in a field when checked, and makes 
>> the field blank when unchecked, then to make the final filter you 
>> concatenate all of the filter strings together.
>>
>> It is a roundabout way to do it, but I am starting to doubt that there is 
>> a direct way with what is currently available.
>>
>> In the proud tradition of engineers everywhere: if you are given an 
>> impossible problem to solve, cheat.
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/3caa627a-d70f-49cc-9464-176004ef6d2e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/3caa627a-d70f-49cc-9464-176004ef6d2e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>  

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d85eb8e1-bdc3-4f22-a3b3-d1f5cbb81762%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to