Rules editor: Difference between revisions
Appearance
Created page with "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 ne..." |
No edit summary |
||
| Line 11: | Line 11: | ||
! Form | ! Form | ||
! View | ! View | ||
! Other | |||
|- | |- | ||
| On Load | | On Load | ||
| Line 16: | Line 17: | ||
| Yes | | Yes | ||
| No | | No | ||
| | |||
|- | |- | ||
| On Change | | On Change | ||
| Line 21: | Line 23: | ||
| Yes | | Yes | ||
| Yes <small>editable</small> | | Yes <small>editable</small> | ||
| | |||
|- | |- | ||
| On Save | | On Save | ||
| Line 26: | Line 29: | ||
| Yes | | Yes | ||
| Yes <small>editable</small> | | Yes <small>editable</small> | ||
| | |||
|- | |- | ||
| Row Script | | Row Script | ||
| Line 31: | Line 35: | ||
| No | | No | ||
| Yes | | Yes | ||
| | |||
|- | |- | ||
| On Can Execute | | On Can Execute | ||
| Line 36: | Line 41: | ||
| Yes | | Yes | ||
| No | | No | ||
| | |||
|- | |- | ||
| On Execute | | On Execute | ||
| Line 41: | Line 47: | ||
| Yes | | Yes | ||
| No | | No | ||
| | |||
|- | |- | ||
| Button Click | | Button Click | ||
| Line 46: | Line 53: | ||
| Yes | | Yes | ||
| Yes | | Yes | ||
| | |||
|- | |- | ||
| Cell Click | | Cell Click | ||
| Line 51: | Line 59: | ||
| No | | No | ||
| Yes | | Yes | ||
| | |||
|- | |||
| On Item Added | |||
| | |||
| No | |||
| No | |||
| Route plan | |||
|- | |||
| On Item Completed | |||
| | |||
| No | |||
| No | |||
| Route plan | |||
|} | |} | ||
Revision as of 09:05, 29 July 2019
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 | Other |
|---|---|---|---|---|
| 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 | ||
| On Item Added | No | No | Route plan | |
| On Item Completed | No | No | Route plan |