Show TOC

Implement a Method in the ControllerLocate this document in the navigation structure

All functions that are not directly related to the user interface should be handled in the controller to ensure clear separation between UI and data. In this case you add a method to handle the event, which is attached to a button.


You've created a button as described in: Add a Control to Your View


To handle this event, add the following function to the controller:
doIt : function(oEvent) { alert(oEvent.getSource().getId() + " does it!"); }