Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Problem with "sap.m.ActionListItem"

$
0
0

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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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