onHide

The onHide method is called when opening a view after hiding (leaving) the view. In other words, it is called when UX1 opens a view for the second and every subsequent time. For example, it can clean up the input fields to make the earlier entered data not available on the next opening of the view, thus avoiding the flickering effect. In the following example, the cancel() method makes the New button available. This happens once a user clicks this button to be forwarded to another view and then returns back to the initial view.

onHide: function() {
   self.byId("srv_new").cancel();
}