Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Double Click functionality to read context of row without selecting row of UI5 table

Hi Experts,

   I am trying to read context of row when user double click on particular row. I have tried following code.


  1. this.oTable = new sap.ui.table.Table("RESTAB", {           
    width : "100%",
    rowHeight : 22,
    selectionMode : sap.ui.table.SelectionMode.Single
    });

    this.oTable.attachBrowserEvent(
    'dblclick', this.getController().handle_ok, this.getController());

Here "handle_ok" is the function and it contain logic to read selected row from F4 help and copy to respective field.


This code is working fine only when user selected particular row and double click on that row. But if user double click on row directly without selecting row then it is not picking respective row. Could you please let me know, is there any event for this requirement. I am new to JavaScript so please provide sample code.

Best Regards,

Sasidhar V.

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question