Siebel Open UI: Open a pop up applet on mouseover of field caption

In other words, we can say that we need to open a Pick Applet on mouseover of field caption.

I know its a simple requirement for a Siebel developer using browser script. But here, we are trying to implement this using PM-PR files in Open UI.

If we remember, on click of a button control in a form applet, we can use ShowPopUp method to open a applet in popup. So, we need to implement two things:
      1.)  Need to invoke ShowPopUp  method from PM/PR
      2.) Use Jquery to invoke this code on hover of caption



Invoke Method in PM/PR

Use this line to invoke method:;
this.GetPM().ExecuteMethod( "InvokeMethod", "ShowPopup", inp);

Here, inp is the input property set we need to create and set all required arguments.

  var inp = theApplication().NewPropertySet();
inp.SetProperty("SWEH", "200");        //Height of popup
inp.SetProperty("SWEW", "800");      // Width of popup
inp.SetProperty("SWETA", "Contact List Applet Dummy");
inp.SetProperty("SWEM", "List");

Jquery to call this on mouseover

Put above codes in below Jquery function:
$('#Agreement_Name_Label').mouseover(function(){
});  

So, final piece of code will look like,..

$('#Name_Label').mouseover(function(){
var inp = theApplication().NewPropertySet();
inp.SetProperty("SWEH", "200");        //Height of popup
inp.SetProperty("SWEW", "800");      // Width of popup
inp.SetProperty("SWETA", "Contact List Applet Dummy");
inp.SetProperty("SWEM", "List");
this.GetPM().ExecuteMethod( "InvokeMethod", "ShowPopup", inp);
});
Input Properties are as follows:
SWEH: Height of popup applet
SWEW: Width of popup applet
SWETA: Name of target applet
SWEM: Mode in which applet should open(Bas, Edit, List)

We can also use Open UI Portlets to open applets in popup, will discuss its pros & cons later.

Note: You cannot give any applet as target applet. Only applets based on class CSSSWEFramePopup or any of its derived class could be set as target applet.


Labels: , ,