cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a webdynpro view dynamically and embed into view container?

siongchao_ng
Contributor
0 Kudos

Hi all,

Anyone knows how to create a view dynamically and embed the view into an existing view container?

My layout looks like this:

I have an existing view named main_view.

Inside main_view, I create a view ui container named vcu_view.

I embed the main_view into my window.

I need the codes to create a view dynamically and embed the view into the view container. Anyone have any idea?

Thanks in advance.

Rgds,

Siong Chao

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Siong Chao ,

i think we cant creat a view at runtime .. atleast we have to create an empty view .. only we can design the view by adding UI in runtime .. NOTE : Experts pls correct me if i am wrong .

Regards

Chinnaiya P

siongchao_ng
Contributor
0 Kudos

Hi Chinnaiya,

How do you create an empty view dynamically then? Thanks in advance.

Former Member
0 Kudos

hi Siong Chao ,,

empty view insence ..( create a view without any UI element in it ) in design time ..

>

> Hi Chinnaiya,

>

> How do you create an empty view dynamically then? Thanks in advance.

i think we cannot create a new view dynamically because it is a webdynpro restriction ..

NOTE: experts correct me if i am wrong in this answer

Regards

Chinnaiya P

Answers (1)

Answers (1)

former_member1151507
Participant
0 Kudos

Hi Siong Chao,

Create another view and embed this in the ui container vcu_view. Now, you can create the content of the empty view dynamically.

Regards,

Manogna