Friday, January 17, 2020

Siebel Scripting (eScript) Guidelines


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

Updating parent BC depending on the status of child BC using configuration

Parent BC: Service Request Child BC: Action Requirement: When all the Actions corresponding to an SR are closed the SR status should be “Clo...