In a current project, I have tiddlers that use a couple of fields that keep running totals. We'll call them time_total and grand_total. I'd like to create a button that sets the value to 0 in all tiddlers containing those fields. Basically, a reset button. Has anyone crafted such a thing? I know there are tools like Mohammad's Commander Plugin and that might be the safer route but I thought I'd ask.
<!-- show tiddlers and values (just so we know it works) -->
<$list filter="[has[time_total]] [has[grand_total]]">
<<currentTiddler>> time_total={{!!time_total}} grand_total={{!!grand_total}}<br>
</$list>
<!-- HERE'S THE BUTTON -->
<$button> reset totals
<$list filter="[has[time_total]] [has[grand_total]]">
<$action-setfield time_total="0" grand_total="0" />
</$list>
</$button>
<$list filter="[has:field[time_total]] [has:field[grand_total]]">