Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How call a view method from a customcontroller?

Hi everybody,

how is ist possible to call a method within a view from a customcontroller.

I have two views and a customcontroller between them. A method in view A should trigger a method in view B through the customcontroller.




Use the controller editor of the custom controller to create a new event, maybe with parameters.

Declare the custom controller as "required" from the view controller (if not done already), create a new method in the view controller as event handler for that event.

Then the NWDS will generate a method in the custom controller to fire the event and a method in the view controller to handle it.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question