hello,
is it possible to access a view method from a component controller?
I got a reference with the type "IF_WD_VIEW" in my component controller and I need to cast it in the original type of my view to access the view-method for view embedding (dodynamicnavigation)...is it possible?
I know that normally the view methods are only visible in the view controller...
Hi Thorsten,
Check this out from SAP...
+Just like the component controller, the view controller contains data and functions. Furthermore, the view controller also has
·
The lifetime of the controller element of a view is restricted to the lifetime of the view. To create simple Web Dynpro applications, it is sufficient if you maintain the component controller and the view controller of a view. The two controllers described below are optional and help you to structure complicated components and applications, thereby increasing their reusability.
+
So I dont think you can access the view controller methods from other views.
Regards
<b>Raja Sekhar</b>
Refer the below links. It will asnwer your questions:
calling-view-controller-method-from-component-cont
Raja T
Reply/Reward/close the thread, if your issue is resolved pls.
Raja T
Add a comment