It requires the following steps:
- Get the Table instance of sap.m.Table
- call the getBinding() method to get the instance of sap.ui.model.Binding
- From the instance of sap.ui.model.Binding, call the getPath() method. It returns the path of the Model to which the Binding happens. ( Code Example below)
var modelBinding = mTableInstance.getBinding('items');
var pathOfModel = modelBinding.getPath();
The pathOfModel contains a string value.