cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Attach paste in adaptation project

fsafa
Explorer
0 Kudos
205

Does anybody know why method attachpaste doesnt work with adaptatino project? This is my code

override: {
            onInit: function() {
var oTable = sap.ui.getCore().byId("cus.sd.salesorderv2.manage::SalesOrderManageObjectPage--fe::table::_Item::LineItem");

                if (oTable) {
                    oTable.attachPaste(this.onPasteEAN, this); // Attach paste event
}}}
onPasteEAN: function() {
            console.log("onPasteEAN");
           
        },
 
it should console log everytime where i paste something in table but it doesnt. Anybody knows what's the problem. link to method https://sapui5.hana.ondemand.com/sdk/#/api/sap.m.Table%23methods/attachPaste

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion
0 Kudos

check if oTable is the m table.