A few days ago somebody asked a question on Siebel Forum to explain about eScript and details about various events available to us in Siebel BC, Applet etc.

I thought it was a pretty good question and there is not lot of information available out there that can tell when to use which event. I have taken quite a few interviews and rarely do I get right event where the script should be written. For example consider this requirement.

Requirement:

We have Service Request BC as parent and Solution BC as it’s child. We want to change the status of SR to “Closed” when the status of the Solution is changed to “Done”.

I know this can be done with configuration but if this were to be done with scripting where would you write the script :?

Usual Answer:

Quite strangely the most common answer that I have got is that we will have to write the script at Service Request BC and in SetField Event . This answer is absolutely wrong. One more answer that I get is that we will have script at SetFieldValue of Solution BC which is also wrong.

Answer:

 We will have to write script at WriteRecord Event of Solution BC. The reason being, that SetField Event of BC fires when you change a field value but user can still UNDO the record by pressing ESC key and then your script won’t revert back the Service Request Status.

Write Record event fires after the record has been committed in database and that would mean user cannot UNDO the record.

This is just a simple example explaining very often used Events in BC. I will try to cover all the and explain things like

When to use a Particular Event?
Why to use it?

OkAvarageGoodVery GoodExcellent (4 votes, average: 3.5 out of 5)
Loading ... Loading ...