cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically created component not visible

Former Member
0 Kudos

Hi,

I have created a component that implements a component interface.

It shows a view with a user control and a button. No methods or events are part of the component interface.

When I dynamically create the component based on its interface(IWDComponentUsage.createComponent(arg1, arg2)), the component does not show up. There is no info available in the logfile.

What could be wrong?

Thanks in advance,

Roelof

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the default property of the view in your dynamic component.

See if it is true.

For more info go through the tutorial.In this they are trying to create a component dynamically

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a">Dynamic component</a>

Former Member
0 Kudos

Thanks Luciano and Shriram,

I tried to fire navigation plugs but to no avail. Besides there is no navigation.

The eventing example does not cover creation of components based on its component interface.

What I want is a component that can show a list of components. I guess this requires the components to be created and destroyed dynamically. The size of the list is unknown and varies.

Is there a guide or tutorial for that?

Thanks in advance,

Roelof

luciano_leitedasilva
Contributor
0 Kudos

Hi Roelof,

Well, you have to create the fire plug navigation in the first to then you fire a plug navigation.

Have a look at the link below:

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a137c339-0b01-0010-a688-a87b88706845">How to Navigate Inside Web Dynpro Component Interface Views</a>

Regards,

Luciano

Answers (1)

Answers (1)

luciano_leitedasilva
Contributor
0 Kudos

Hi Roelof,

You have to fire a navigation plug to show the view. Did you create a navigation plug between the main view and the interface view?

regards,

Luciano