Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
{{WIP}}
   
The [[Resco platform]] offers two main options for adding [[business logic]] to your projects:
 
The [[Resco platform]] offers two main options for adding [[business logic]] to your projects:
 
* [[Rules editor|Rules]] which represent the no-code approach for simpler use cases
 
* [[Rules editor|Rules]] which represent the no-code approach for simpler use cases
 
* [[Resco JavaScript Bridge]] that allows you to write custom scripts to modify UI, data, and access additional functions
 
* [[Resco JavaScript Bridge]] that allows you to write custom scripts to modify UI, data, and access additional functions
   −
The option to execute scripts directly from rules combines these two options. It aims to simplify writing JavaScript for Mobile CRM by removing the need for boilerplate code, and it should open path for creating reusable JavaScript libraries with additional functionality for Resco mobile apps, e.g., additional math, date, or string operations, and also business logic.
+
The option to execute scripts directly from rules combines these two options. It aims to simplify writing JavaScript for Mobile CRM by removing the need for boilerplate code, and it should open a path for creating reusable JavaScript libraries with additional functionality for Resco mobile apps, e.g., additional math, date, or string operations, and also business logic.
    
{{Note|For now, this option is supported for form rules. Do not attempt to use the ExecuteJS function in other rules, for example, in views.|Warning}}
 
{{Note|For now, this option is supported for form rules. Do not attempt to use the ExecuteJS function in other rules, for example, in views.|Warning}}
Line 18: Line 17:  
# Edit a [[form]] in Woodford.
 
# Edit a [[form]] in Woodford.
 
# Click '''Add IFrame''' and link to the file script that you uploaded to the offline HTML folder in the previous section.
 
# Click '''Add IFrame''' and link to the file script that you uploaded to the offline HTML folder in the previous section.
# Next, open the rules editor for an event, for example '''On Save'''.
+
# Next, open the rules editor for an event, for example, '''On Save'''.
 
# Create a new variable and use the operation ExecuteJS.
 
# Create a new variable and use the operation ExecuteJS.
  

Navigation menu