Skip to Content
0
Feb 07, 2014 at 11:20 AM

Problem with "sap.m.ActionListItem"

59 Views

Hello Experts,

I created a simple list with this code in javascript view:

<<

var list = new sap.m.List({

headerText: "MENU'",

items: [

new sap.m.ActionListItem({

text: "Inserisci Estratto Conto",

press: "ADD_EC"

}),

new sap.m.ActionListItem({

text: "Rendiconto",

press : function () {

sap.m.URLHelper.triggerEmail(person.email, "Info", "Dear " + person.name + ",");

}

}),

]

});

>>

The second "sap.m.ActionListItem" is ok, but the first doesn't call the function "ADD_EC", that I implemented in the corresponding controller:

<<

ADD_EC : function(oEvent) {

alert(oEvent.getSource().getId() + " does it!");

},

>>

In debug I have this error "Uncaught TypeError: Object D has no method 'call'".

Help me, Please!!

Thanks in advance.

Best Regards,

Marino