cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically adding view to view container

ReenaWadhwa
Advisor
Advisor
0 Kudos

Hi All,

I have a requirement where i have to dynamically add the view to view container, but i am not able to do so. It i slike. I have a view containing tab strip where each tab contains a view container. I have dynamilly decide and add views to different tabs i.e different view container. Can you please help me here.

Thanks and Regards,

Reena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Why dont you add the views at design time and fire plugs to respective views at runtime?

Regards

Ayyapparaj

Answers (2)

Answers (2)

ravindra_bollapalli2
Active Contributor
0 Kudos

hi

this may give some idea how to add the view to view container dynamically

bvr

ReenaWadhwa
Advisor
Advisor
0 Kudos

Hi ,

I have done it in the same way as you have mentioned. But is there any other way to dynamically add view to view container.

Thanks

Reena

Edited by: Reena Wadhwa on Feb 18, 2009 5:46 AM

Former Member
0 Kudos

Hi,

I am not sure abt this...Why you want to do it dynamically?, just to know the scenario.

Regards

Ayyapparaj

ReenaWadhwa
Advisor
Advisor
0 Kudos

Hi,

I just wanted to know is there any direct API to achieve it at run time rather than putiing all views and creating plugs at design time.

Thanks for a quick response.

Reena

Former Member
0 Kudos

Hi,

If its curiosity to know the API's you will get it inside SAP. But if you are aware of all the screen artifacts in advance its better to use the static approach than dynamic one. What i feel is their could be a performance issue.

Regards

Ayyapparaj