This post is also a contribution by Vaibhav. Thanks to him for sharing his knowledge with all of us.
I will tell siebel newbees how to activate a button on an applet using escript. Suppose we have created a button on an applet (i assume reader know how to set a button on an applet) and want to enable this button as soon as applet loaded in the application.
Now first question in mind, where should we write script (which event)?
Ans is as soon as applet loaded so better to write PreCanInvoke event of the applet.
here is the server script of the applet.
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if (MethodName == "TestMethod")
{
CanInvoke = "TRUE";
return(CancelOperation);
}
return(ContinueOperation);
}
I will tell siebel newbees how to activate a button on an applet using escript. Suppose we have created a button on an applet (i assume reader know how to set a button on an applet) and want to enable this button as soon as applet loaded in the application.
Now first question in mind, where should we write script (which event)?
Ans is as soon as applet loaded so better to write PreCanInvoke event of the applet.
here is the server script of the applet.
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if (MethodName == "TestMethod")
{
CanInvoke = "TRUE";
return(CancelOperation);
}
return(ContinueOperation);
}