cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.Table is not refreshing after a oData Call

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi Experts

We have a oData service defined in the Component.js and set the model like this.setModel(model, "Model");

We have one Screen with 3 combo boxes, based on the values selected we are reading the oData model entity set  and displaying the data in the second screen which has a table. We are binding the Tables with the model like "{model>EntitySet}".

First time when I hit the button in the first screen , the table is displaying the records. When I go back to again the first screen and select the other combination of ComBo Boxes and by calling the oData serice with the new set of filters, this time my table in the second screen is not updating with the updated data, it is still showing the old records.

Can you please help in this regard, how we can resolve this issue.

Thanks and Regards

KALYAN

Accepted Solutions (0)

Answers (4)

Answers (4)

Abdul_Waheed
Contributor
0 Kudos

oTable.invalidate();

Triggers rerendering of this element and its children. Try this

junwu
Active Contributor
0 Kudos

your code please

"When I go back to again the first screen and select the other combination of ComBo Boxes and by calling the oData serice with the new set of filters,"

sanjoy0308
Active Participant
0 Kudos

Can you check if this works

sanjoy0308
Active Participant
0 Kudos

Have you used rerender() ? like oTable.rerender()

Regards,

Sanjoy

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi

I did not used renderer method.

thanks and Regards

KALYAN