Skip to Content
0
Former Member
Nov 15, 2013 at 10:18 AM

Having some trouble with attaching an event to a control

22 Views

I have an ObjectIdentifier and I'm trying to attach an event to it as such.

var objI = new sap.m.ObjectIdentifier();objI.attachEvent("click", function(){                                                  console.log("success");                                                            });

Now, if I say in the code objI.fireEvent("click") it executes the function, but actually clicking on the rendered control in the program does nothing. Any help would be appreciated.