How Trace Browser – Server Scripts in Siebel
How to do Browser Script Tracing in Siebel
For tracing the browser script, you can follow the below procedure –
1. In Application Browser script, create new script with MethodName “trace_log”.
function trace_log(as_text)
{
try
{
var MyWindow = window.open(”,’DEBUG’,'toolbar=no,location=no,’ + ‘directories=no,status=no,menubar=no,’ + ’scrollbars=yes,resizable=yes,’ + ‘width=400,height=300,left=20,top=20′);
MyWindow.document.write(as_text + “<BR><BR>”);
}//try
catch(e)
{
alert(”an error occurred in log ” + e.message + “n” + e.toString());}//catch
finally
{
MyWindow = null; }//finally
}//endfunc
2. Application Browser Script declarations write –
top.log = trace_log.
3. Now you can call top.log(“text”) function from any Browser Script(Application, Applet, BusComp, Business Service) , it will write logs to a pop-up window.
How to do Server Side Script Tracing
For tracing server events, write logs to a trace file.
1. Put this code in the declaration part of Application Server Script.
TheApplication().TraceOn(filename,”Allocation”,”All”);
Note: filename should be like “C:\Inputs\TraceFile$p_$t_.txt”
2. Use the below method to write to the trace file from any Server Script(Application, Applet, BusComp, Business Service) in Siebel.
TheApplication().Trace(“any text”);









Trace sequence of events in Browser Script:
top.log(”Applet_InvokeMethod: ” + name + ” ” + TheApplication().GetProfileAttr(”i”));
TheApplication().SetProfileAttr(”i”, parseInt(TheApplication().GetProfileAttr(”i”))+1);
Trace sequence of events in Server Script:
TheApplication().Trace(”WebApplet_InvokeMethod: ” + MethodName + ” ” + TheApplication().GetProfileAttr(”i”));
TheApplication().SetProfileAttr(”i”, parseInt(TheApplication().GetProfileAttr(”i”))+1);
Hi, cool post. I have been wondering about this topic,so thanks for writing.
Hi. I like the way you write. Will you post some more articles?
Thanks Gary and Kris.!!!
Surely, I will be writing more posts……:)
Pls register to this
Blog http://feedburner.google.com/fb/a/mailverify?uri=OnlineSiebelTutorials-Bookshelf&loc=en_US , and
Forum – http://www.siebelintegration.com/SiebelInterviewForum/index.php?action=register
so that whenever there is a post you will be informed via email.
-Vivek
Admin
Hi Vivek
just to confirm me if i was able to get the detals:
if i have written a browser script on Applets XYZ event…then i need to add this function trace_log as one of the method on the object
and later pass the data that i need to pass from that event to this function .?? is it rt??
but i dint understand the part where u have mentioned
” Application Browser Script declarations write –
top.log = trace_log. ”
what is the significance of doing this????
Hi SS,
This declaration is to assign the function the function named trace_log to a global variable that can be accessed in any browser script.
top.log = trace_log
Now, you can use top.log(”any string”) to log your message to the popped up browser window.
Thanks VIvek….will try and see
Leave your response!
Chat with Admin
Comment, Talk, Share
Applet Business Service Simulator Commandline Configuration Database Dedicated Client EAI EAI Queuing Emails Import Object Integration Objects Monitor Agent Oracle Products Outbound Communication Manager Outbound Web Services Screen Menu Icons Scripting Siebel Siebel Bookshelf Siebel Debugging Siebeldev.exe Siebel Download Siebel Integration Siebel Licence Keys Siebel Menus Siebel PPTs Siebel Screen Icons Siebel Session Siebel Setup Siebel Sif Siebel Slides Siebel Task UI Siebel Web Services SoapUI SR Broker S_ESCL_LOG S_ESCL_REQ S_ESCL_STATE Testing Web Services Tips and Tricks User Properties Workflow Workflow Action Agent Workflow Policies XSLT
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Archives
Friend Blogs
If you like the Site..want to Contribute to Site Support
Looking for Trainings
If you are looking for other types of training, check out the training-classes.com directory of workplace skills training seminars
Most Commented
Recent Comments