There are different ways of invoking popup applet below scrip will be used in applet browser scripts. This script is using Siebel's vanilla method "ShowPopup". Please note that on parent applet vanilla method can be used only once. Either through Filed user proper or script.
Below is the script for calling popup applet through applet browser script:
if (name == "MethodName")
{
var inp = theApplication().NewPropertySet();
inp.SetProperty("SWEH", "200"); //Height of popup
inp.SetProperty("SWEW", "800"); // Width of popup
inp.SetProperty("SWETA", "ABC Popup Applet");
//inp.SetProperty("SWEM", "URL Applet");
this.InvokeMethod("ShowPopup", inp);
return ("CancelOperation");
}
if (name == "MethodName")
{
var inp = theApplication().NewPropertySet();
inp.SetProperty("SWEH", "200"); //Height of popup
inp.SetProperty("SWEW", "800"); // Width of popup
inp.SetProperty("SWETA", "ABC Popup Applet");
//inp.SetProperty("SWEM", "URL Applet");
this.InvokeMethod("ShowPopup", inp);
return ("CancelOperation");
}
Change the applet name. Compile and generate browser scripts.
Note: After every compilation you need to generate fresh browsers scripts and place on web server path.
See Also:
Comments
Post a Comment