yes, I have a controller of the XML View.
jQuery.sap.require("sap.m.MessageToast");
sap.ui.controller("sap.cd.ui5.demo.view.Dashboard", { onInit: funciton(){ ...... }, onItemPress: function(){ var msg = "This is a test of itemPress!" sap.m.MessageToast.show(msg); }
});As the above code shows, I have already created a event handler metod onItemPress. But the message toast didn't showup when the table row is pressed or clicked.
regards,
yang