| 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 
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/customPMis the module name that identifies the siebel/custom/customPM.js presentation modelsiebel/custom/customPRis the module name that identifies the siebel/custom/customPR.js physical rendererCreate 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.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. |