cancel
Showing results for 
Search instead for 
Did you mean: 

unable to perform any event on listitem

Former Member
0 Kudos

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);

  }

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

Hi

You have the set the item type to Active like this.

Example

-D

Former Member
0 Kudos

Thank You Dennis .You are helping me a lot in every step where i am facing problem.

Answers (0)