Bookshelf Home | Contents | Index | PDF |
Siebel Product Administration Guide > Siebel Configurator API Reference > Instance APIs to Select the Siebel Configurator User Interface > SetUIOption MethodSetUIOption method is used to display Siebel Configurator interface. SyntaxSetUIOption (inputArgs as Property Set, outputArgs as Property Set). Input ArgumentsA property set that contains the name or value pairs representing the value of the Product Id and UI Option Name fields. UsageBecause this method is part of a cached Business Service, you can call this method at any time before Configurator is called. The values you use as input arguments indicate which UI option to use for each product you specify. ExampleAdd a workflow step at the beginning of the Siebel Configurator Load Workflow. This step calls a custom business service that determines which UI option to use for the Product that is being customized. After determining which UI option to use, the workflow uses the SetUIOption method to set the appropriate UI option. The sample custom business service has the following features: Business Service Method Arguments
Business Service Server Script: function Service_PreInvokeMethod (MethodName, Inputs, Outputs) Outputs.SetProperty("ErrorCode", ""); Outputs.SetProperty("ErrorText", ""); Outputs.SetProperty("Error Code", ""); Outputs.SetProperty("Error Message", ""); var strProdId = Inputs.GetProperty("Product_Id"); var strUI_Name = Inputs.GetProperty("UI_Name"); var oService = TheApplication().GetService("Cfg Web UI Service Loader"); var oInputs = TheApplication().NewPropertySet(); var oOutputs = TheApplication().NewPropertySet(); /* The input argument name is passed as a string (the product id)*/ /*****************************************************************/ SetProperty(strProdId,strUI_Name); /* Force Configuration session UI */ /*********************************/ oService.InvokeMethod("SetUIOption", oInputs, oOutputs); Scenario for the ExampleIn the previous code, consider the scenario where product KG1 and KG2 are to be displayed. Assume both products have the following properties.
To set Open UI Option 1 for KG1 and Open UI Option 3 for KG2, replace the code SetProperty(strProdId,strUI_Name) with the following lines: SetProperty("12-12345", "Open UI Option 1"); SetProperty("12-67890", "Open UI Option 3"); Usage for the ExampleIn the workflow that launches the Siebel Configurator UI (which is Configurator Load for non-ABO or SIS OM Edit for ABO), the customer might add two steps before launching Siebel Configurator: Then Siebel Configurator uses this preset option during end-user configuration sessions. |
Siebel Product Administration Guide | Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |