Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Configuring Siebel Open UI > Siebel Open UI Application Programming Interface > Methods of the Siebel Open UI Application Programming Interface > Plugin Builder ClassThis topic describes the Plugin Builder class. The Plugin Builder class wires the Plug-in Wrapper to the given Applet Control, specifying the conditions under which the wrapper is to be used. It uses the API AttachPW for this purpose. It uses the following syntax: SiebelApp.S_App.PluginBuilder.AttachPW(Control Type, PW Class, function (control, objName) { For example, the following code shows how to attach the Plug-In wrapper with a custom combobox wrapper that would deploy for all buttons in the Contact List Applet: SiebelApp.S_App.PluginBuilder.AttachPW(consts.get("SWE_CTRL_COMBOBOX"), SiebelAppFacade. CustomComboPW, function (control, objName) { return (objName === "Contact List Applet"); Another example, the following code shows how to attach the Plug-In wrapper with a custom text box wrapper that would deploy for all text boxes in the Opportunity List Applet or the Sales Order Form Applet: SiebelApp.S_App.PluginBuilder.AttachPW(consts.get("SWE_CTRL_TEXT"), SiebelAppFacade.CustomTextPW, function (control, objName) { return (objName === "Opportunity List Applet" || objName === "Sales Order Form"); Another example, the following code shows how to attach the Plug-In wrapper with a custom combobox wrapper that would deploy for all combo boxes of a certain name, across the application: SiebelApp.S_App.PluginBuilder.AttachPW(consts.get("SWE_CTRL_COMBOBOX"), SiebelAppFacade.CustomComboPW, function (control, objName) { return (control.GetName() === "Last Name"); Another example, the following code shows how to attach the Plug-In wrapper with a custom text box wrapper that would deploy for only a specific control with a specific name in the Sales Order Form Applet: SiebelApp.S_App.PluginBuilder.AttachPW(consts.get("SWE_CTRL_TEXT"), SiebelAppFacade.CustomTextPW, function (control, objName) { return (control.GetName() === "Revenue" && objName === "Sales Order Form"); Another example, the following code shows how to attach the Plug-In wrapper with a custom checkbox that would deploy for all touch enabled devices: SiebelApp.S_App.PluginBuilder.AttachPW(consts.get("SWE_CTRL_CHECKBOX"), SiebelAppFacade.CustomCheckPW, function (control) { return SiebelAppFacade.DecisionManager.IsTouch(); NOTE: The global call depicted in this example can be used in conjunction with other conditions, such as the ones in previous examples. For more information about the Attach PW API and examples of how to use the AttachPW API, see Configuring the Manifest for the Color Box Example. |
![]() ![]() |
Configuring Siebel Open UI | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |