Skip to main content

Posts

Showing posts with the label InvokeMethod

The specialized method '%1' is not supported on Business Component '%2' used by Business Object '%3'.(SBL-DAT-00322) in Siebel

Steps on which received Error: 1. Created new button with method name Validate. 2. Set the Applet user property CanInvokeMethod: Validate to TRUE 3. Called a workflow through applet eScript (on WebApplet_InvokeMethod) Error: When click on the button received below error: The specialized method '%1' is not supported on Business Component '%2' used by Business Object '%3'.(SBL-DAT-00322) Solution: Add CancelOperation for your method on Business Component eScript (on BusComp_PreInvokeMethod) if(MethodName == "Validate") { return (CancelOperation); }

How to invoke workflow through BC eScript, BC User Property and Runtime Events

Through eScript  BC InvokeMethod if (MethodName == "MyMethod") { var oBS=TheApplication().GetService("Workflow Process Manager"); var Inp=TheApplication().NewPropertySet(); var Out=TheApplication().NewPropertySet(); Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field")); Inp.SetProperty("ProcessName","My Workflow"); oBS.InvokeMethod("RunProcess",Inp,Out); return (CancelOperation);   } On BC PreSetField if(FieldName == "My Field Name")    {     if(FieldValue == "My Field Value") { var Inp=TheApplication().NewPropertySet(); var Out=TheApplication().NewPropertySet(); Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field")); Inp.SetProperty("ProcessName","My Workflow...

Siebel eScript for sending information to http site using EAI HTTP Transport Business Service

Below is the eScript for sending information to http site. Business Service: EAI HTTP Transport Method: SendReceive eScript: var sUrl = "http URL on which you want to send/ receive information"; var sRequest =""; var oService = TheApplication().GetService("EAI HTTP Transport"); var oInputs = TheApplication().NewPropertySet(); var oOutputs = TheApplication().NewPropertySet(); oInputs.SetProperty("HTTPRequestBodyTemplate", sRequest); oInputs.SetProperty("HTTPRequestMethod", "POST"); oInputs.SetProperty("HTTPRequestURLTemplate", sUrl); oService.InvokeMethod("SendReceive", oInputs, oOutputs); var Prop1 = oOutputs.urlProp1

How to call Popup Applet through Browser Script in Siebel

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"); }   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 ...