cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple component instances for one component usage

Former Member
0 Kudos

Hi,all

How can I create multiple component instances for one component usage.

I'm using the following code for creating a single component instance for specific component usage:

if(c_Usage.hasActiveComponent())

{

c_Usage.deleteComponent();

}

if(wdContext.currentContextElement().getSelectedTab().equalsIgnoreCase("Registered"))

{

c_Usage.createComponent("health.gov.registered.Registered";);

}

I can't create one more component instance for

IWDComponentUsage c_Usage

cause I have to delete the component instance associated with this component usage.

Any idea how can I do it anyway?

Regards,

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

To create another instance of the same component you need to embed the same component under the Used Components more then once. For Example if you have Componet A to which you want to embed Component B then under "Used Components" of Component A add component B twice.