cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Icon Tab bar refresh

0 Kudos

I´m maintaining a SAPUI5 application that isn´t refreshing the IconTabBar component after navigation (Save Button). I think that is something in cache but I´m can´t find what.

Some screenshots...

Create, attach file and Save:

Next create:

The application view are loading with the previous attachment.

I did some tests and this data is not coming from the OData objects. There isn't any call to SAP Gateway.

Any idea how to force the view component refresh?

Accepted Solutions (0)

Answers (2)

Answers (2)

iftah_peretz
Active Contributor
0 Kudos

Hey,

I'm also not clear on what exactly you want. But, if you want to refresh the page, use this .

0 Kudos

I want to "clear" the component to not show the last attachment on the next operation.

I´ve already try just to refresh the page, but this is not "cleaning" the component.

iftah_peretz
Active Contributor
0 Kudos

Have you tried the following methods:

irfan_gokak
Contributor
0 Kudos

Hi,

Do you want to remove all the attachments and show it empty initially???

0 Kudos

Exactly.

After the save operation the attachment still loaded and I don´t want this.

irfan_gokak
Contributor
0 Kudos

Inside success function just set empty data to model. That's it!!!

oFileUploader = this.getView().byId("idUploadColl");
oFileUploader.setModel(new sap.ui.model.json.JSONModel({"data" : []}));