on 09-28-2008 2:41 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.