Skip to Content
0
Apr 27, 2018 at 10:18 AM

Mouseover on table data(dynamic text control)

456 Views Last edit Apr 27, 2018 at 10:21 AM 3 rev

Hi All,

I have to show a popover when i do mouse over on a table data. I am trying with attachBrowserEvent but at the time of open the popover i am getting error like control is not yet rendered. I am using dynamic UI table.

oProp2 = new sap.m.Text({
text: "{"+oColumnObject.colValue+"}"
});oProp2.addStyleClass("vBoxItemsTop");
oProp2.attachBrowserEvent("mouseover", function(oEvent){
that.fnCommentDialog(oProp2);
 });
}); 

//that.fnCommentDialog(oProp2)

fnCommentDialog : function (oProp){
       if ( !this._oDialogComment) {
                 this._oDialogComment =  sap.ui.xmlfragment(this.getView().g                 etId(),"com.airbus.gmmtDelta2Harmo.fragment.CommentsDialo                   g", this);
                this.getView().addDependent(this._oDialogComment);
        }
        this._oDialogComment.openBy(oProp);
}

Please help me. Thanks in advance.

Regards,

Dinesh