There is definitely scripting involved in any Siebel implementation but is safe not to clutter with scripting. As a developer s/he has to always think about the performance impact as it could result in significant downgrade of the system.
So here are few more best practices on Siebel eScripting.
Tip5:
Totally Avoid Scripting on Frequently Fired Events like PreGetFieldValue and ChangeRecord Event.
PreGetFieldValue event is triggered for every column under every record that is retrieved. For instance if there are 10 records retrieved in an applet and there are 10 columns or values in each record then this event will be fired 100 times. This is a big number and could grow dramatically. So it is a big NO NO for scripting on this event.
ChangeRecord event is triggered every time a user navigates to the next record. This will slow down the user completely. Users would complain and if somewhere this BC is used for scripting anywhere else, then this event will impact the performance that scripts. So be very careful as this is definitely not recommended.
Tip6:
Browser Script causes burden on the application to load. So heavy browser scripting should be avoided. Additionally use only for simple client side functionalities like validating values. Also avoid browser scripts that require server side roundtrip to get fast response. For example, fetching values from the server database back into the browser script would take time and would result in slow response.
Tip7:
When you use ExecuteQuery() in eScripting, by default it uses ForwardBackward mode where in it remember the past record and would use some resources. Instead use ForwardOnly cursor mode wherever possible as it improves performance by not having to remember the past records that have already passed. By default it is ForwardBackward and you will have to specify the cursor mode to use as ForwardOnly like in oAccountBC.ExecuteQuery(ForwardOnly).
I hope that these tips are helpful. I will be adding more in the future.
Let your friends know about this website. If you know any other helpful Tips then please share with me and others.
As usual subscribe to my blog via RSS or email to get notified about new posts.
Related posts(Auto Generated):





February 25th, 2008 at 12:24 pm
Hai sridhar
i am currently learning the siebel scripting i am very much intersted u r points in every eScripting Best Practices - Part plz give more points (like 5 to 6 points) we can learn very quickly
Thanks
Eswar
June 6th, 2009 at 7:25 am
i seen this site first time plz help me, inescripts and eim and configuration real time scnarioes
January 24th, 2010 at 7:25 pm
It would be good to publish good workarounds for typical bad practices. Esp. for statements like Tip 5.
March 19th, 2010 at 10:25 pm
Reading the posts backward from your first post and I must say - you have given a good effort here in writing these posts. Truly awesome work.
May 26th, 2010 at 9:00 am
This post is interesting and thanks for sharing this.
There is one more point that we can include is the sequence of destrouing the objects used in script.
It should be in the reverse order in which the instanciation is done. like BC then BO.