cancel
Showing results for 
Search instead for 
Did you mean: 

How to Check table is Initial or Not

tharaka_fernando
Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

HI Tharu

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

Thanks

-D

Answers (1)

Answers (1)

tharaka_fernando
Contributor
0 Kudos

Can anyone help me plzzz