Can I modify all tiddlers from filter result via button and ActionSetFieldWidget?

85 views
Skip to first unread message

Vayu Asura

unread,
May 8, 2017, 12:58:33 PM5/8/17
to tiddl...@googlegroups.com
I have a button that modifies a tiddler status field:

<$button>
<$action-setfield $tiddler=testTag2 status="Passed"/>
Set testTag2 status to 'Passed'
</$button>

And a filter

{{{[tag[test]]}}}

resulting in 3 tiddlers

When I try something like that:

<$button>
<$action-setfield $tiddler={{{[tag[test]]}}} status="Passed"/>
Set all tiddlers tagged 'test' status to 'Passed'
</$button>

nothing happens

Is it possible to set field of all results of a filter somehow?

I saw a node.js command, but is there a way to do something like that within the wiki itself?

Mark S.

unread,
May 8, 2017, 1:22:32 PM5/8/17
to TiddlyWiki
I don't think you can do it in one fell swoop that way. You need to list the tiddlers you want inside the button:

<$button>Set all tiddlers tagged 'test' status to 'Passed'
<$list filter="[tag[test]]">
<$action-setfield  status="Passed"/>
</$list>
</$button>

HTH
Mark

Vayu Asura

unread,
May 10, 2017, 3:42:28 AM5/10/17
to TiddlyWiki
Worked! Thanks a lot!
Reply all
Reply to author
Forward
0 new messages