Hi Luis,
 This is a complete solution as a set of macro!

\define deleteIdx()
<$button class="tc-btn-invisible tc-tiddlylink">&#10005;
<$action-setfield $tiddler=<<__dataTiddler__>> $index=<<idx>> />
</$button>
\end


\define deleteAllzeros()
<$button>Delete all &#10005;
<$list filter="[<__dataTiddler__>indexes[]]" variable=idx>
<$list filter="[<__dataTiddler__>getindex<idx>match[0]]" variable="zidx">
<$action-setfield $tiddler=<<__dataTiddler__>> $index=<<idx>> />
</$list>
</$list>
</$button>
\end


\define show-idx-val(dataTiddler)
<<deleteAllzeros>><br>
<$list filter="[<__dataTiddler__>indexes[]]" variable=idx>
<$list filter="[<__dataTiddler__>getindex<idx>match[0]]" variable="zidx">
<<idx>>: 0 <<deleteIdx>><br/>
</$list>
</$list>
\end


<<show-idx-val "$:/Luis/warehouse">>








On Tuesday, September 17, 2019 at 6:43:38 PM UTC+4:30, Luis Gonzalez wrote:
>
>
> ok. This is a good solution but I need a new macro than automatically loop 
> over all properties and delete them if they are 0
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/98b946fc-bead-4210-b5f4-6095d96bb2ee%40googlegroups.com.

Reply via email to