Is the output of your filters what you want currentTiddler set to?
If not, use a different variable in the list widget or specify the tiddler
for the actions.
On Sunday, April 5, 2020 at 3:31:01 PM UTC+2, TonyM wrote:
>
> 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!
> -
> actions A string containing ActionWidgets
> <https://tiddlywiki.com/#ActionWidgets> to be triggered when the
> key combination is detected
> - 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/8594c558-b484-435c-a1ce-6cac25110a3b%40googlegroups.com.