hi
i am trying to use a macro to take all tiddlers tagged with other tiddlers,and carry over a specific field value from said tiddlers to the ones they are tagged with
so for ex tiddler A tagged with tiddler B , tidder A has in the field “endd” a value of “x” , i want this value to be copied over to tiddler B “startd” field
so after pressing the button , tiddler B would have “X” in the “startd” field value same as TiddlerA “endd” field value
the below macro almost achieves this , so it will take all tiddlers in the wiki , find the tiddlers they are tagged with ,and update the “startd” field value with X, the problem is that the field it is drawing from is the one in the tiddler that i am running the macro in , which is an independent tiddler .
so basically i want to run the macro from Tiddler C, to update Tiddler B from Tiddler A’s field value , whats happening is that its updating tiddler B from tiddler C’s field value ,the one i am running the macro form
, how can i reference the “endd” field for tiddlers like A that are tagged , and are external from tiddler C that i am running the macro from
i hope this makes sense
\define push-enddate()
<$list filter="[tags[]]" variable="thisTag">
<$action-setfield $tiddler=<<thisTag>> $field=$field$ $value={{{ [{!!endd}] }}}/>
</$list>
\end
<$button actions=<<push-enddate startd>>>
push
</$button>