Skip to Content
0

Issue in Icon Tab bar refresh

Dec 07, 2017 at 12:34 AM

89

avatar image

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?

capturar.png (22.6 kB)
capturar.png (18.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Irfan Gokak Dec 07, 2017 at 02:01 PM
0

Hi,

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Exactly.

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

0

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" : []}));
0
Iftah Peretz
Dec 07, 2017 at 08:21 PM
0

Hey,

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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.

0

Have you tried the following methods:

0