On Tuesday, February 18, 2020 at 11:52:20 AM UTC-8, Joost wrote:
>
> {{$:/temp/selectproject!!text}} gives output: "Project A"
> I expected the following would also show the same table (with Project A
> still selected):
> <$macrocall $name=table-dynamic
> filter="[tag[task]project[$:/temp/selectproject!!text]!tag[done]]"
> fields="tbl-checkbox tbl-expand tbl-delete title project priority status
> assignee created due-date" class="w-100 table-hover thead-primary"
> stateTiddler="tasking" caption="''Task overview''" />
> But instead I got "filter input is empty"
>
To get a filter parameter from tiddler contents, use curly braces, not
square brackets. Thus:
filter="[tag[task]project{$:/temp/selectproject!!text}!tag[done]]"
In filter syntax, the brackets used for a filter parameter indicate the
type of parameter being provided:
* square brackets are for *literal* values
* curly braces are for tiddler *references*
* angle brackets are for *variables*
note: while inline wiki content uses *doubled* brackets (i.e.,
[[TiddlerName]] for links, {{TiddlerName!!text}} for transclusion, and
<<variableName>> to render a variable or macro), filter syntax does not use
*doubled* bracketing
enjoy,
-e
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d2243866-ed32-40d9-ad06-9c954b73e7ae%40googlegroups.com.