Following guidelines needs to be followed for writing optimum eScript:
- Use declarative alternatives.
 - Use browser scripts for simple client-side functions such as field validation.
 - Do not return large result sets from server business services to browser scripts.
 - Minimize scripting on field-level or control-level events.
 - Use simple scripts on applet-level and business component-level events.
 - Caching data in Siebel eScript scripts.
 - Declare your variables.
 - Destroy any created objects when you no longer need them.
 - Verify your script is defined on the appropriate method.
 - Verify your script is implemented in the right view.
 - Avoid redundant repository object settings.
 - Use the ActivateField() method carefully.
 - Use the ExecuteQuery() method carefully.
 - Use SetSearchSpec() method rather than NextRecord() method.
 - Use ForwardOnly cursor mode.
 - Use appropriate error handling.
 - Avoid nested query loops.
 - Use the this object reference.
 - Use the Switch construct.
 - Finally Test your custom scripts.
 

No comments:
Post a Comment