Rules editor
Appearance
Rules are the most important tool for adding business logic to your Resco Mobile CRM app. Rules are scripts that are performed when a user of the mobile app opens a new view or form, taps a button or record, modifies any value, etc. You can modify many things using the scripts, most notably you change data or change the UI.
Various rules can be defined for each of the user interface components, such as form or view. They are edited in Woodford.
When you edit a UI component in Woodford, you can define actions that trigger rule execution.
| Action | Description | Form | View |
|---|---|---|---|
| On Load | These rules are checked when you open a form. You can use these rules for example to apply custom format to certain records. | Yes | No |
| On Change | These rules are checked when modify any field. Example: simple form validation. They are also executed when you open a form (a new form starts empty, then the values are changed as they are loaded from the database and displayed). | Yes | Yes editable |
| On Save | These rules are checked when you save a record. For example, saving a record can automatically also update a field in a parent record. | Yes | Yes editable |
| Row Script | This rule is executed when a row of a list is about to be displayed. | No | Yes |
| On Can Execute | This rule is executed when a button 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. | Yes | No |
| On Execute | This rule is executed when a button is pressed / tapped. It defines the actions that the command performs. | Yes | No |
| Button Click | Yes | Yes | |
| Cell Click | No | Yes |