Siebel Tools > How to Trace Browser Script in Siebel
How to Trace Browser Script in Siebel
This is a bit different than Script tracing in Google Chrome Debugger.
What this will do is to open a Popup and show the code as it gets executed.
For tracing the browser script, do this
In Application Browser script, create new script with MethodName "Browserscript_logging".
function Browserscript_logging(as_text)
{
try
{
var Logwindow = window.open(",'DEBUG','toolbar=no,location=no,' + 'directories=no,status=no,menubar=no,' + 'scrollbars=yes,resizable=yes,' + width=500,height=300,left=50,top=50′");
Logwindow.document.write(as_text + "<BR><BR>");
}
catch(e)
{
alert("An error occurred in log " + e.message + "n" + e.toString());
}
finally
{
Logwindow = null;
}
}
Add an Application Browser Script declaration
top.log = Browserscript_logging;
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.
Or you can copy the code below to find the applet event.
top.log("Applet_PreInvokeMethod: " + name + " " + TheApplication().GetProfileAttr("i"));
TheApplication().SetProfileAttr("i", parseInt(TheApplication().GetProfileAttr("i")+1));
|