cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to set active View within ComponentController / event handling?

achim_hauck2
Active Contributor
0 Kudos
111

hi,

i want to set a specific view active within the component-controller, because at runtime, there might be another view in the view-set active. i tried it with


		IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("<mywindow>");    
		IWDViewUsageInfo viewUsageInfo = windowInfo.getViewUsageByID("<myview>");    
		windowInfo.setDefaultRootViewUsage(viewUsageInfo);

but everytime i try to navigate from my needed view, I get the error:


com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot navigate from view <myview> because it is not part of the current view assembly 

kr, achim

View Entire Topic
abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

if myview is embedded into the window , then try setting its LifeSpan property to "framework_controlled", not sure bt lets give it a try.

regards