I am working on some tables summarize examples for some filters in TW.
search in all fields: [search:*[keyword]]
search only in title: [search:title[keyword]]
search only in field myfield: [search:myfield[keyword]]
And I have a macro like below:
\define mytable(data-tiddler:"data/search-filter")
<$set name="dataTid" value=<<__data-tiddler__>> >
<$list filter="[<dataTid>indexes[]]" variable="idx">
<$set name="data" tiddler=<<dataTid>> index=<<idx>> >
<tr><td> <<idx>> </td><td> <<data>> </td> </tr>
</$set>
</$list>
</$set>
\end
And then I invoke the macro as below
<table>
<<mytable "data/search-filter">>
</table>
It works, but my question is:
- I use a macro and a list widget to loop over all dataTiddler indexes
- I use a set widget to get the value of each indexes, because I cannot directly access the value
So, IS THERE ANY SIMPLER, BETTER SOLUTION TO LIST THE INDEX-VALUE SET WHEN BOTH ARE VARIABLE?
--Mohammad