//Version 8 and above
Add a Application User Property (in siebel tools)
Name: ClientBusinessService9
Value: Your Business Service Name
Note: No need to make changes in client.cfg
//Version 7.x and below
locate [InfraUIFramework] section in your client CFG, add the BS entry as shown below
[InfraUIFramework]
ClientBusinessService[n] = "Your Business Service Name"
//Invoking the BS from browser script
function Applet_PreInvokeMethod (name, inputPropSet)
{
if(name == "OpenCOC")
{
var psIn = theApplication().NewPropertySet();
var psOut = theApplication().NewPropertySet();
psIn.SetProperty("Type","URL");
var sService = theApplication().GetService("Your Business Service");
psOut = sService.InvokeMethod("GetURL", psIn);
//where as in server script the syntax will be
//sService.InvokeMethod("GetURL", psIn, psOut);
var sCoCURL = psOut.GetProperty("URL");
return ("ContinueOperation");
}
return ("ContinueOperation");
}
No comments:
Post a Comment