on 01-04-2015 6:28 PM
Hi, I created one list item but when i am applying press event on the list item .No response in ouptut page.
No error nothing happened.
Please find my code and help me.
VIew.js
var list1 = new sap.m.List({
id : "master1", inset: false,
itemPress : function(oevent)
{oController. handleListItemPress(oevent);}
});
var template = new sap.m.StandardListItem({
title : "{SoId}"
});
list1.bindItems({path : "/SalesOrderCollection",template :template} );
return list1;
controller.js
--------------------
handleListItemPress : function (evt) {
//var context = evt.getSource().getBindingContext();
//this.nav.to("Detail", context);
alert (evt.getParameters().listItem);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.