Jump to content

On Can Execute: Difference between revisions

From Resco's Wiki
Marek Rodak (talk | contribs)
No edit summary
Marek Rodak (talk | contribs)
Line 12: Line 12:


===Commands===
===Commands===
List of available form and questionnaire commands can be found [[Command editor#Available commands|here]].
List of predefined form and questionnaire commands can be found [[Command editor#Available commands|here]].


==Examples of On Can Execute rule==
==Examples of On Can Execute rule==

Revision as of 13:47, 12 September 2022

Warning Work in progress! We are in the process of updating the information on this page. Subject to change.

App users can execute commands from their app, for example, run a mobile report or delete several records at once. Predefined commands usually function out of the box. However, you can use rules to define their availability and tweak their function. On Can Execute defines when is a command available in the app. This rule is executed when a command is about to be displayed. Use it to control in which situations users can see and use the command, so that you can hide this command in situation, when its action is not suitable. On Can Execute controls availability of both predefined commands and custom commands.


On Can Execute is available for the following user interface components:

In Woodford, you can edit the commands available for a form. In Questionnaire Designer, you can edit the commands available when filling out a questionnaire.

Commands

List of predefined form and questionnaire commands can be found here.

Examples of On Can Execute rule

Field clearing command availability

If the Entity.addres1_line1 field contains data, delete clearing button is enabled. Otherwise, it remains disabled.

If Condition Command.Name Equals custom_del_street
Then If Condition Entity.addres1_line1 ContainsData
Then Step Command.isEnabled Assign True
Else Then Step Command.isEnabled Assign False