Hi Folks,
I am using a select widget to set an input mode select-input and I would
like the result of this selection to result in actions based on the option
taken, ie set the input field
\define *set-input-actions*()
<$list filter="[{*!!selected-input*}match[allobject]]">
<$action-setfield $field="input"
$value="[!is[system]object-type{!!selected-object}]"/>
</$list>
<$list filter="[{*!!selected-input*}match[object]]">
<$action-setfield $field="input"
$value="[!is[system]object-type{!!selected-object}]"/>
</$list>
<$list filter="[{*!!selected-input*}match[list]]">
<$action-setfield $field="input"
$value="[!is[system]object-type{!!selected-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="allobject">All Instances of Object</option>
<option value="objects">Selected Objects</option>
<option value="list" >Use "a" list</option>
<option value="lists" >Input List{s}</option>
<option value="filter" >Input Filter</option>
</$select>
\end
*<<select-input>>*
Unfortunately the input field is never set. Are my conditions in the
actions too much? or have I done something else wrong.
It is hard debugging actions because they are so invisible.
Any help appreciated
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/9e7283ea-3eec-4049-ba86-7e4a4d0c27e1%40googlegroups.com.