Skip to Content

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

How to Check table is Initial or Not

Hi All Gurus,

I have declared a SAPUI5 table and how to check whether Table is initial or Not (Like in ABAP) ?

Function SubmitButton (){

var oModel = new sap.ui.model.json.JSONModel();

oModel.setData({modelData: oTable1Data});

oTable1.setModel(oModel);

oTable1.bindRows("/modelData");

}

Function ResetButton () {

If (oTable1 is not initial ) {

oTable1.unbindRows();

}

}

Thank you all inadvacne..

Former Member replied

HI Tharu

May this example will help you. Please look at the last few lines of the Javascript.

Thanks

-D

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question