Hi,
I want to set a field with the content resulting from a list of tiddler
I’ve got inspiration from Macro: Produce a Delimited List
I’ve elaborated the following code but this does not work …
\define dlist(filter, delimiter:", ")
<$list filter="$filter$ +[join[$delimiter$]]">
<$text text=<<currentTiddler>> />
</$list>
\end
\define compute_sum()
<$action-setfield $tiddler=<<currentTiddler>> list_tiddlers_filter=<<dlist "[tag[project]limit[4]]">>/>
\end
<$select tiddler=<<currentTiddler>> field="projectId" actions=<<compute_sum>> >
<$list filter='[tag[project]]:or[tag[archived]]:and[sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
A field called list_tiddlers_filter
is created but it contains <$list filter="[tag[project]limit[4]] +[join[, ]]"><$text text=<<currentTiddler>> /></$list>
… where I’m looking for the real list of tiddlers
As if the result of the macro call (that I tested alone and which works) <<dlist>>
was not interpreted.
Any magic idea …!!! I’m blocked …
Thanks again for your help
Regards