Hi,

I have a macro that returns a list of values, say val1, val2 and val3.
I want to affect these values to the fields of a target tiddler (field1, 
field2 and field3).
If considered as a list of tiddler's titles, I can use the nth[] operator 
on the output of the macro.
But I can't find a way with only one button.

A solution with two buttons :
-the first button affects the output of the macro (as a whitespace 
separated list) to the list field of the current tiddler,

<$button>
<$action-setfield list=<<macro>>/>
Calculate list
</$button>


- and the second button uses the nth operator on the content of the list 
field, something like :
<$button>
<$set name="val1" filter="[list[]nth[1]]">
<$set name="val2" filter="[list[]nth[2]]">
<$action-setfield $tiddler="targetTiddler" field1=<<val1>>W/>
<$action-setfield $tiddler="EssaiBouton"  field2=<<val2>>/>
Set Fields
</$set>
</$set>
</$button>



So I was wondering if there is a simpler way to acheive the result ?

Thanks

FrD

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7932b090-8b60-4728-ab3e-9f2e3ea2e568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to