cancel
Showing results for 
Search instead for 
Did you mean: 

problem with viewsets

Former Member
0 Kudos

Hi All,

I have a problem with viewsets. In my application, i used viewset of type "Tlayout".

I want to give navigation between these views, for this in the topview i placed a button & by clicking on this button left view will appear on the window .up to this fine!

But i want to disable topview after clicking the button.

Can anyone provide me solution to do this...

Thanks & Regards,

Sreelakshmi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi sreelakshmi,

Create one empty view and give outbound plug to the empty view also.

Regards,

srinu

Answers (1)

Answers (1)

pravesh_verma
Active Contributor
0 Kudos

Hi Sreelakshmi,

This one is very easy requirement. Just need to do few steps:

1) Create a boolean attribute in the view context. (i.e.: MainView_Enable_Property).

2) Since you are already done with the step of displaying the view in the left side so you just need to disable the top now. For this, just bind this newly created attribute with the Enable property of the RootUIContainer.

3) On the same action of button, when you must be firing the plug for the view in the left panel use this code:


  wdContext.currentContextElement().setMainView_Enable_Property(false);

You can handle the enable property of the complete view using this attribute.

I hope this should solve your problem. Please revert back in case you need any further help!

Thanks and Regards,

Pravesh