Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: How to Set itemPress event for sap.m.Table in a UI5 XML View?

$
0
0

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


Viewing all articles
Browse latest Browse all 8944

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>