Siebel Tools >  Method 'ShowPopup' requires a value for argument 'SWETA'.(SBL-UIF-00355)

Method 'ShowPopup' requires a value for argument 'SWETA'.(SBL-UIF-00355)

 

This error comes when we have coded Browser script in an Applet so that when we click a Button, a window with a  message should popup.

 

SOLUTION

The standard Browserscript code is

function Applet_PreInvokeMethod (name, inputPropSet)
{
if (name == "MyShowPopup")
{
// invoke the ShowPopup applet method
var psIn2 = theApplication().NewPropertySet();
var psOut2 = theApplication().NewPropertySet();
psIn2.SetProperty("SWEMethod","ShowPopup");
psIn2.SetProperty("SWESP","true");
psIn2.SetProperty("SWEView","Order Entry - Line Items View (Sales)") ;
psIn2.SetProperty("SWEApplet","Order Entry - Line Item List Applet (Sales)") ;
psIn2.SetProperty("SWETA","Product Popup Applet");
psIn2.SetProperty("SWEM","Edit List");
psOut2 = this.InvokeMethod("ShowPopup",psIn2);
return ("CancelOperation");
}

This should be added in the Preinvoke Method in Applet. This code works for both HI Client and Open UI.

 

This error happens when one of the two Configurations in Siebel Tools are wrong.

Class of this applet must use a class derived from CSSSWEFramePopup.

This popup applet should have a Edit mode specified.

It is possible to change the class of an Applet. However you should be sure that this does not affect other functions.

In Deutsch:

Für Methode 'ShowPopup' ist ein Wert für Agrument 'SWETA' erforderlich.(SBL-UIF-00355)