Skip to Content
0
Sep 17, 2014 at 03:13 PM

How to Check table is Initial or Not

77 Views

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..