Think I figured it out. Will post in case someone else finds this...
\define projectfilterlist(a b e x) [[$(a)$]] [[$(b)$]] [[$(e)$]] [[$(x)$]]
up at the top
Then down for the list:
<$vars a={{$:/temp/importancefilter!!importance_a}}
b={{$:/temp/importancefilter!!importance_b}}
e={{$:/temp/importancefilter!!importance_e}}
x={{$:/temp/importancefilter!!importance_x}}>
<$list filter=<<projectfilterlist>>>
</$vars>
On Saturday, August 26, 2017 at 2:47:33 PM UTC-4, Stobot wrote:
>
> Hello all,
>
> I'm stumped. I'm trying to dynamically build a list for project
> management.
>
> This *static* works:
> <$list filter="[[A]] [[B]] [[E]] [[X]]">
> ...
> </$list>
> ... which are project importance values
>
> But I've added checkboxes with the intent of filtering some of those out.
> For instance if I uncheck 'A', then I want it to hide 'A'. The *static* way
> would either be
>
> <$list filter="[[B]] [[E]] [[X]]">
> ...
> </$list>
>
> or
>
> <$list filter="[[A]] [[B]] [[E]] [[X]] -[[A]]">
> ...
> </$list>
>
> and I'm just trying to 'assemble' this dynamically. The checkbox stores
> each of the values in fields of a temp tiddler (though not married to that)
>
> <$checkbox tiddler="$:/temp/importancefilter" field="importance_a"
> checked="" unchecked="A">A</$checkbox> for A for example
>
> After hours of reading other posts, it seems the answer must be some
> combination of macros, <$macrocall>, <$wikify>, <$set> - but I can't seem
> to get it right... I know this doesn't work:
>
> \define testfilter()
> [[{{$:/temp/importancefilter!!importance_a}}]]
> [[{{$:/temp/importancefilter!!importance_b}}]]
> [[{{$:/temp/importancefilter!!importance_e}}]]
> [[{{$:/temp/importancefilter!!importance_x}}]]
> \end
>
> Funnily enough I can put [[A]] in the testfilter, and I can also use the
> {{}} in the testfilter, but not together...
>
> It must be simple and I'm just not getting it.
>
--
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/79efe213-4c7d-4168-9200-25fb27760792%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.