The layout editor currently offers a selection of various buttons for more or less specialized use cases.
However, some use cases cannot be covered, e.g:
- If you want form entries (e.g. in a settings component) to be accepted before (or by) opening a dialog.
- There are workarounds for other things, but they seem strange. For example, if you need a button that changes a value in a currently edited form, then this requires access to the form data. This can be done with the "User-defined transaction" command if the "Transaction" option is switched off. If you want to open a dialog with a value from a currently edited form, you can also use "User-defined transaction", switch off "Transaction" and attach a "Set model" UI option.
A general generic command could instead have no functionality itself, but only contain a configurable chain of (UI) actions. If the individual parts of a typical command processing were available as freely combinable individual actions, then the current commands for the specialized use cases could be put together, but new combinations could also be created.
Improvement
New command "Generic command", which only consists of a chain of actions. Add "Transaction", "Script execution", "Accept form data", "Set edit mode" with the option "View mode" to the existing actions.
Another option for an input channel for a command: "Form data" to access the form model of an editor.