Shiraz dynamic tables and calculated column value

Indeed !
And thanks for the tip :slight_smile:

I see two errors in your code!

  1. In calling dynamic table, pass the fields not template, so
<<table-dynamic filter:"[tag[test]]" fields:"tbl-expand title x y z">>

NOT

<<table-dynamic filter:"[tag[test]]" fields:"tbl-expand title x y tbl-z">>

What is tbl-z?

  1. Sorting is based on field value. Template only show the value, Dynamic table does not use template to sort, it uses the filed content.

Yes, I am clear on the fact my code doesn’t work :slight_smile:
What I wanted, is to be able to have a calculated column in the dynamic table, I quickly look at how the table was generated, and it seemed to not be possible, but maybe I was missing something.

So, the alternative is to use what etardiff propose : Add a button to update the Z field of each tiddlers. (I will probably do it tomorrow and share it here)

1 Like