cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a View in ViewContainerUiElement dynamically

Former Member
0 Kudos

Hi All,

I am facing some issues while trying to add a view in the dynamically created ViewContainerUIElement.

Can someone please help me out.

Thanks and Regards,

Gaurav.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

I don't think my requirement is so complicated. The thread is 4 years old (the one posted by Avik) and we are currently working on 7.1 version of the NWDS.

I am restating my requirement. I am creating a Table dynamically and want to add a popin to it (offcourse has to be dynamic). Now this popin content is a ViewContainerUIElement (VCUI). In this VCUI I need to embed an interface View. Everything has to be done dynamically only.

First of all is it possible to do. If yes can somebody let me know how to do it. And if no can someone let me know a workaround.

Thanks,

Gaurav

Edited by: Gaurav Agrawal on Sep 23, 2008 8:29 AM

Former Member
0 Kudos

Hi Gaurav,

You will have to use dynamic programming to fix this

in the domodifyview

if ( firstTime )

{

final IWDUIElementContainer group

= (IWDUIElementContainer)view.getElement( "grInner" );

group.destroyAllChildren();

final IWDViewContainerUIElement container

= (IWDViewContainerUIElement)view.createElement

(

IWDViewContainerUIElement.class, null

);

container.setViewContainer

(

wdContext.currentContextElement()

.getViewContainerName()

);

group.addChild( container );

}

Now you wil have to set the container name in init or some method.

Regards

Pankaj Prasoon

Former Member
0 Kudos
Former Member
0 Kudos

Check this link buddy......