Skip to Content
0
Apr 04, 2019 at 06:36 AM

sap.m.table

108 Views Last edit May 21, 2020 at 06:05 PM 3 rev

How to get the table View in controller.js without using table Id

Example:

var oTable = this.getView().byId("tableId");

var oBinding = oTable.getBinding("items");

this gives me :

"f {mEventRegistry: {…}, oModel: constructor, bRelative: false, sPath: "/studentname", oContext: undefined, …}"

how to get the table view without using ID?