Using Tracing to Determine When an Event Occurs
Many different events can occur if a view becomes current or if a script calls an object, so a simple way to determine when various events occurs does not exist. It is recommended that you use tracing to determine when events occur.
To use tracing to determine when an event occurs
To determine the exact order of events, use the Application_Start event to enable tracing when the Siebel application starts.
In Siebel VB, use the following code:
TheApplication.TraceOn "filename, type, selection" TheApplication.Trace "Event_Name has fired."
In Siebel eScript, use the following code:
TheApplication().TraceOn("filename, type, selection"); TheApplication().TraceOn(" Event_Name has fired.");
Add the following code in each event handler for the object:
TheApplication.Trace "Event_Name fired."
Make sure you add this code to each of the following items:
Each relevant event, such as insert, delete, write, business component, and so forth
Each relevant preevent handler
Perform a few simple inserts, updates, and deletes.
Make a note of each message as Siebel CRM displays it.
Your notes will list the order that Siebel CRM uses to start events on the view or for the object.