Friday, August 2, 2013

How to display Popup applet in Siebel - Possible ways!!

Siebel provides various different OOB ways to display a Popup applet, no matter if it a list applet or form applet. Here below is the list of all possible ways:

1.     ShowPopup

This is a straight forward OOB way to display a popup applet which is mostly used to display a popup when button is clicked.

a.      Create a button control on the UI with Method Invoked = ShowPopup.
b.      Create following Control User Properties:

Name
Value
Comments
Popup
<Applet Name>
Name of the popup applet
Mode
<Mode>
Base, Edit, Edit List
Popup Dimension
<Height> X <Width>
Eg: 300 X 300

2.     From Server Script using business service : “SLM Save List Service”, Method: LoadPopupApplet

This method can be used as per below example:

var oBSSLM = TheApplication().GetService("SLM Save List Service");
var psInp = TheApplication().NewPropertySet();
var psOut = TheApplication().NewPropertySet();
psInp.SetProperty("Applet Height", "400");
psInp.SetProperty("Applet Mode", "1");                           // 1 - List Applet, 2 - Form Applet
psInp.SetProperty("Applet Name", "<Applet Name>");
psInp.SetProperty("Applet Width", "800");
oBSSLM.InvokeMethod("LoadPopupApplet", psInp , psOut);

3.     From Browser Script

Here below is the sample code to display applet via browser script:

      function Applet_InvokeMethod (name, inputPropSet)
{
if(name == "ButtonClick")
            {
                        inputPropSet.SetProperty("SWEMethod", "ShowPopup");
                        inputPropSet.SetProperty("SWETA", "<Applet Name>");
                        inputPropSet.SetProperty("SWEW", "300");
                        inputPropSet.SetProperty("SWEH", "100");
                        inputPropSet.SetProperty("SWESP", "true");
                        inputPropSet.SetProperty("SWEM", "<Mode>");  // Base, Edit, Edit List
                        this.InvokeMethod("ShowPopup", inputPropSet);
            }
            }

4.     From Command

This can be used if there is a need to display popup applet from toolbar button or some menu item:

Name
<Any name you want to give to Command>
Method
GotoApplet
Method Argument
ShowMode=<Mode>, Applet = <Applet Name>
HTML Popup Dimension
200 X 200                  (Height X Width)
ShowPopup
True
Target
Server


2 comments:

  1. Hi Gaurav

    It is really talent Innovations in siebel

    Thanks
    Shanmugam.V

    ReplyDelete