\define Updated_status()
<<TrackerStatus $(tracker_start_date)$ $(tracker_end_date)$ $(currentVal)$ $(targetVal)$>>
\end
\define CurrentTiddler()
<<currentTiddler>>
\end
\define Button()
<$button class="button" tooltip="Refresh status">
<$action-setfield $tiddler="_data000" $index=$(CurrentTiddler)$ $value=$(Updated_status)$/>⥁ Status</$button>
\end
<$set name=currentVal value={{<currentTiddler>!!tracker_current_value}}>
<$set name=targetVal value={{<currentTiddler>!!tracker_target_value}}>
<$set name=tracker_start_date value={{<currentTiddler>!!tracker_start_date}}>
<$set name=tracker_end_date value={{<currentTiddler>!!tracker_end_date}}>
<p class="blur_in">
<table style="width:620px">
<$list filter="[tag[tracker]] +[sort[name]]">
<tr>
<td>
<$link to={{!!title}}><$view field="title"/></$link>
<$list filter="[<currentTiddler>!days:modified[-3]]"> @@color:orange;^^probably needs updating^^@@</$list>
</td>
<td style="width:75px">
<$edit-text tiddler=<<currentTiddler>> field="tracker_current_value" rows="4" class="text-field"/>
</td>
<td>
<div>
<<Button>>
</div>
</td>
<td>
<$list filter='[[_data000]getindex<currentTiddler>]' emptyMessage="@@color:#cecece;(no data)@@">
<<currentTiddler>>
</$list>
</td>
</tr>
</$list>
</table>
</p>If I understand what is going on correctly the problem is that macros don't necessarily trigger their own updates. So even if the value in a field field that is passed to the macro changes it won't necessarily make the output of the macro to change.
You don't actually show where in your code you use the Update_status macro or what TrackerStatus macro does
If you always use the same field names than in your TrackerStatus macro you can use {{!!tracker_current_value}}, {{!!tracker_target_value}}, {{!!tracker_current_date}} and {{!!tracker_end_date}} inside the macro and then it will take those values from the tiddler where it is called and you don't need to use the Update_status macro to just call another macro.
\define bAction()
<$action-setfield $tiddler="_data000" $index=$(CurrentTiddler)$ $value=$(Updated_status)$/>
\end
\define Button()
<$button actions=<<bAction>> class="button" tooltip="Refresh status">
⥁ Status</$button>
\end
<$set name=currentVal value={{<currentTiddler>!!tracker_current_value}}>
<$set name=targetVal value={{<currentTiddler>!!tracker_target_value}}>
<$set name=tracker_start_date value={{<currentTiddler>!!tracker_start_date}}>
<$set name=tracker_end_date value={{<currentTiddler>!!tracker_end_date}}>
On 3 Nov 2017, at 10:34, hubertgk <hube...@gmail.com> wrote:<$set name=currentVal value={{<currentTiddler>!!tracker_current_value}}>
<$set name=targetVal value={{<currentTiddler>!!tracker_target_value}}>
<$set name=tracker_start_date value={{<currentTiddler>!!tracker_start_date}}>
<$set name=tracker_end_date value={{<currentTiddler>!!tracker_end_date}}>
<$list filter="[tag[tracker]] +[sort[name]]">--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/67ebd680-0d24-4798-aece-c7f21472d80b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Perhaps the problem is just that you want to set the variables curentVal, targetVal etc. such that they can be accessed within the Updated_status macro? If so, you should be able to wrap set widgets around the <$button> widget within the Button macro.
\define Updated_status()<<TrackerStatus $(tracker_start_date)$ $(tracker_end_date)$ $(currentVal)$ $(targetVal)$>>\end
\define bAction()<$action-setfield $tiddler="_data000" $index=<<currentTiddler>> $value=$(Updated_status)$/>\end
\define Button()<$button actions=<<bAction>>>⥁ Status</$button>\end
<table><$list filter="[!days:tracker_start_date[-1]][days:tracker_start_date[0]] +[tag[tracker]] +[sort[tracker_end_date]]"><$set name=currentVal value={{!!tracker_current_value}}><$set name=targetVal value={{!!tracker_target_value}}><$set name=tracker_start_date value={{!!tracker_start_date}}><$set name=tracker_end_date value={{!!tracker_end_date}}><tr><td><$link to={{!!title}}><$view field="title"/></$link></td><td><$list filter='[[_data000]getindex<currentTiddler>]' emptyMessage="@@color:#cecece;(no data)@@"><<currentTiddler>></$list></td><td><<Button>></td></tr></$set></$set></$set></$set></$list></table>Unclosed you get odd results, closed ends the value. Since closure is unnamed you need to be clear the balance of opens and closes. This forces certian structures you need to be clear about.
Also put each closure on its ownline.
just a little advice.
Tony