MakeComponent Method
The MakeComponent method creates a component. It returns nothing. It uses the following syntax:
SiebelAppFacade.ComponentMgr.MakeComponent(parent,psInfo, dependency);
where:
parent identifies the parent of the component that Siebel Open UI creates. For example, a view, applet, and so on.
psInfo
contains property set information that identifies the name of the module that Siebel Open UI uses for the presentation model and the physical renderer. Siebel Open UI uses this property set information to create the presentation model. It also passes this property set to the setup method that it uses to set up the presentation model.dependency
identifies an object that Siebel Open UI uses as a template to create the presentation model. If the presentation model must reference an applet or view, then this dependency must also reference this same applet or view. To specify the dependency for a local component, you must use an object that references the GetName method.
The MakeComponent method does the following work:
Creates a component.
Attaches this component to the component tree. It attaches this component at the tree level that Siebel Open UI uses for user interface objects.
Calls the Setup method that Siebel Open UI uses to create the new component. This Setup method uses information that the psInfo argument of the MakeComponent method specifies. It uses this information to create the presentation model. For more information, see Setup Method for Components.
Calls the Setup method that Siebel Open UI uses for the presentation model. This method binds all objects that are involved in the life cycle that Siebel Open UI runs for the component. For more information, see Setup Method for Presentation Models.
For an example that uses the MakeComponent method, see Creating Components.