Hi Mans

I had an additional thought - the following code might appear to 
synchronise the target:

<$tiddler tiddler="Target One">
<$setfield set="!!field3" setTo="this is the text from the setfield widget">
<$maketid title={{!!title}} set="!!field2" setTo="this is text from the 
maketid widget" message="tw-set-field">
<$button set="!!field1" setTo="this is the text from the button widget" 
message="tw-new-tiddler">Test</$button>
</$maketid></$setfield></$tiddler>

However this will be so only in the absence of an existing tiddler titled 
'Target One'. If 'Target One' exists, the maketid widget will create 
'Target One 1' which will be targeted by the setfield widget (field3) -- 
however the set and setTo attributes of the button and maketid widgets will 
target the existing 'Tiddler One' (field1 and field2.) 

regards

On Saturday, May 31, 2014 10:26:16 AM UTC+2, Måns wrote:
>
> Hi Matabele
>  
>
>> Exercise caution when using the 'set=' and 'setTo=' attributes of the 
>> <$button> and <$maketid> widgets in the same way as in the <$setfield> 
>> widgets. The former do not target the value for the target propagated with 
>> the 'param=' attribute by default, and in some circumstances will, 
>> therefore, target a different tiddler.
>>
>
> Ok. 
> Can you give me an example when it won't target the current tiddler or the 
> tiddler being created? 
>
> Cheers Måns Mårtensson
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to