Folks,

Deep within a larger project I have some macros. there is a button that 
displays its tooltip but its actions are not occurring. I have spent hours 
trying work out why it is not working when it did previously.

Can anyone see why the first button is visible but not reacting, if it did 
I would then see the second button. Any suggestions would be helpful.

\define field-state-update() $:/state/$(fieldname)$-update
\define tiddler-field-value-temp() 
$:/temp/$(currentTiddler)$/$(fieldname)$-update
\define field.update() 
<$list filter="[<field-state-update>!has[title]]" variable=nul>
   <$transclude tiddler=<<field-type-tiddler>> field="field-view"/> 
*   <$button class="tc-btn-invisible" tooltip="click to edit 
$(fieldname)$">*
*        <$action-createtiddler $basetitle=<<field-state-update>> 
text="existence toggled in field.update macro"/>*
*        <$action-createtiddler $basetitle=<<tiddler-field-value-temp>> 
text=<<field.value>>/>*
*        {{$:/PSaT/fancy-fields/icons/edit-field}}*
*   </$button>*
</$list>
<$list filter="[<field-state-update>has[title]]" variable=nul>
   <$transclude tiddler=<<field-type-tiddler>> field="field-edit"/> 
   <$button message="tm-delete-tiddler" param=<<field-state-update>> 
class="tc-btn-invisible" tooltip="finish update of $(fieldname)$">
       {{$:/PSaT/fancy-fields/icons/edit-field}}
   </$button>
   <$button class="tc-btn-invisible" tooltip="Restore $(fieldname)$">
       <$action-setfield $tiddler=<<currentTiddler>> $field=<<fieldname>> 
$value=<$transclude tiddler=<<tiddler-field-value-temp>>/> />
       {{$:/PSaT/fancy-fields/icons/restore-field}}
   </$button>
</$list>
\end

More info

I invoke this with <<field.update>>  and fieldname field-type-tiddler is 
already set. The green filter never comes true, also proving 
<<field-state-update>> is never created.
<$action-createtiddler $basetitle=<<field-state-update>> text="existence 
toggled in field.update macro"/>
<$action-createtiddler $basetitle=<<tiddler-field-value-temp>> 
text=<<field.value>>/>
So the above actions do not occur.

These lines in the above work on their own
   <$transclude tiddler=<<field-type-tiddler>> field="field-edit"/> 
   <$transclude tiddler=<<field-type-tiddler>> field="field-view"/> 

Thanks
Tones

-- 
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/4559bf39-47bf-4876-bf1e-fa0c830b55adn%40googlegroups.com.

Reply via email to