Shiraz Dynamic Table Questions

Hi there,

This table plugin is great!

  1. I’m having trouble excluding certain tags

eg when I change the following

<$macrocall $name=table-dynamic filter="[tag[SmallReturns]]" fields=“tbl-checkbox tbl-expand title 22Fee 23Fee 23Ann 23LodgeDate 23Tax” class=“w-100” stateTiddler=“your-state-tid”/>

to

<$macrocall $name=table-dynamic filter="[tag[SmallReturns]][!tag[Done]]" fields=“tbl-checkbox tbl-expand title 22Fee 23Fee 23Ann 23LodgeDate 23Tax” class=“w-100” stateTiddler=“your-state-tid”/>

the browser almost crashes.

  1. My second question relates to renaming a Tiddler title, and re-linking, from the table. Is there a ‘tweak’ that would allow this? - I can modify all other fields through these tables.

Regards

Steve

Do you want to only check for tiddlers that do not have tag[done] on the tiddlers that also have tag[SmallReturns]? If so, do not end the first filter run before adding the !tag[done]

The way you have it written, it will return all tiddlers that do not have tag[done] whether they have tag[SmallReturns] or not, instead of all tiddlers that have tag[SmallReturns] but also do not have the tag[done]

[tag[SmallReturns]][!tag[Done]]

should actually be

[tag[SmallReturns]!tag[Done]]

or

[tag[SmallReturns]] +[!tag[Done]]
1 Like

This filter is using two separate filter runs which means “first find all tiddlers tagged with SmallReturns” and then “also find all tiddlers not tagged with Done”. Thus, the second run is not being applied to the results of the first run, and instead of excluding certain tags from those found by the first filter run, it adds LOTS more tiddlers to the results. This large number of tiddlers then is “clogging up” the table-dynamic macro processing.

To combine the filter operators for the results I think you want, they need to be used together within a single filter run, like this:

filter="[tag[SmallReturns]!tag[Done]]"

Summary: filter operators in separate filter runs works like “OR”, combining the filter operators in a single filter run works like “AND”

Give it a try and let me know how it goes…

enjoy,
-e

1 Like

Dynamic table has an internal variable to exclude tags “from displaying”:

See Shiraz 2.8.3 — create stylish contents in Tiddlywiki

Thank you very much for helping with this. Much appreciated.

With respect to the second question, I’m think setting up a newname field in the table and then research the tm-rename-tiddler widget to work my way towards a method.