Configuring Siebel Open UI > Customizing Siebel Open UI > Doing General Customization Tasks >

Creating Components


The example in this topic configures Siebel Open UI to attach a local component as the child of a view component, and it uses the property set that Siebel Open UI uses to create this component to specify the name of the module. Siebel Open UI uses this module for the presentation model and the physical renderer.

To create components

  1. Create the property set. Use the following code:

    var psInfo = CCFMiscUtil_CreatePropSet();
    psInfo.SetProperty(consts.get("SWE_UIDEF_PM_CTR"), "siebel/custom/customPM");
    psInfo.SetProperty(consts.get("SWE_UIDEF_PR_CTR"), "siebel/custom/customPR");

    where:

    • siebel/custom/customPM is the module name that identifies the siebel/custom/customPM.js presentation model
    • siebel/custom/customPR is the module name that identifies the siebel/custom/customPR.js physical renderer
  2. Create the dependency object. Use the following code:

    var dependency = {};
    dependency.GetName = function(){return "custom_Dependency_object";}

    This example assumes that it is not necessary that this component references an applet, so the code limits the scope to a view.

  3. Call the MakeComponent method. Use the following code:

    SiebelAppFacade.ComponentMgr.MakeComponent(SiebelApp.S_App.GetActiveView(), psInfo, dependency);

    For more information, see MakeComponent Method and GetActiveView Method.

Configuring Siebel Open UI Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.