cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Multiple views in one view container

former_member222068
Active Participant
0 Kudos

Hi,

My Requirement: I have to display multiple view in a view container based on condition. For example: Based on Search crieteria, data should be displayed in a ALV Table of View 1. Selected record should be displayed in view 2. Now my problem is i should dislpay view2 in same view container.

Can some one tell me how to embed or display multiple views in a single view container based on condition

Thanks in Advance,

Sankar

Accepted Solutions (1)

Accepted Solutions (1)

sahai
Contributor
0 Kudos

hi sankar,

you can have both the layouts in a single view and make the second layout invisible and on satisfying some condition make it visible once you do so i guess you r requirement can be met....

you can make the layout visible/invisible using the visibile property with an attribute of type wdui_visibility ...

set the value true when the condition meets else it wil be false....

hope this will help u

thanks and regards,

sahai.s

former_member222068
Active Participant
0 Kudos

Thanks you friends. Issue solved.

Process:

1. Embedded all the views to the view container and assign plugs.

2. create an attribute with type WDUI_VISIBILITY and set value 01 initial. so that view container initial is invisible and based on condition set value 02. so that view container is visible.

Hope this process may help others who in same need.

Regards

Sankar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

What you can do is

Embedd all the view to one viewContainer. Fire plugs based on your condition from the Parent view.

Abhinav_Sharma
Contributor
0 Kudos

Hi Sankar,

You can not display two views in one view container. What you can do for your requirement, create two view containers and based on your condition, handle there visibility.

Regards

Abhinav