Folks,
Any guidance on why this may not work would be appreciated.
- The below macros uses a select widget to set a selected-input field
- I am then using the actions parameter on the select widget to invoke
set-input-actions
- However the intended actions to set the input field never works
\define set-input-actions()
<$list filter="[{!!selected-input}match[allobjects]]">
<$action-setfield $field="input"
$value="[!is[system]object-type{!!selected-object}]"/>
</$list>
<$list filter="[{!!selected-input}match[objects]]">
<$action-setfield $field="input" $value={{!!instances-list}}/>
</$list>
<$list filter="[{!!selected-input}match[lists]]">
<$action-setfield $field="input" $value="{{!!selected-lists}}"/>
</$list>
<$list filter="[{!!selected-input}match[filter]]">
<$action-setfield $field="input" $value="{{!!selected-filter}}"/>
</$list>
\end
\define select-input()
<$select field=selected-input actions=<<set-input-actions>> >
<option value="allobjects">All Instances of Object</option>
<option value="objects">Selected Objects</option>
<option value="lists" >Selected list(s)</option>
<option value="filter" >Input Filter</option>
</$select>
\end
<<select-input>>
I have tested the conditions in the actions but they are not working "as
actions"
- Could it be that the actions are called before the selected-input
field is set?
- But then the previous value would be used and it is not!
- Later I will need to trigger these actions again with changes other
than selected-input as well.
*Is there a better, or even working method?*
Any help would be appreciated.
Regards
Tony
--
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/d0108547-9052-4cb7-b63c-91ca5010f191%40googlegroups.com.