cancel
Showing results for 
Search instead for 
Did you mean: 

Button click is giving different pop up before the define in the sap ui5 code- IE browser

former_member338801
Participant
0 Kudos

It is happening only in IE browser. It works in chrome.

Pop up message :To display the webpage again, the browser needs to resend the information you've previously submitted. If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to display the webpage again.

Once you click on retry it worked and redirdt to the pop up defined in the UI5 code. So from where this extra po up comes and why? I have seen this in one of the blog that it is because of refresh logic but in my case refresh logic come when you click on the pop up message ok/cancel.

refresh logic :window.location.reload()


Please check if you would have faced similar issue.

Thanks and Regards,

RK

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi ram mishra,

This is definitely not related to UI5 issues and a quick search lead me to the below solution.

https://stackoverflow.com/questions/17723944/to-display-the-webpage-again-internet-explorer-needs-to...

But again, if you want to use refresh logic, just refresh the data and models you loaded in the ui5 app and don't refresh the whole webpage, it will spoil the user experience for sure. Any reason why you are specifically refreshing the whole page?

Br,
Mahesh

former_member338801
Participant
0 Kudos

This is just to show the updated data to user once post operation is completed. They won't be confused if the items they have completed is removed from their queue or not. Let me know this can be improved by applying any other way around.

maheshpalavalli
Active Contributor
0 Kudos

ram mishra, Yes it can be improved, Just write a function to refresh the data that's from the backend, which is the best practise.

former_member338801
Participant
0 Kudos

Then what could be the reason behind any idea? I have also seen shared link it is pointing to refresh logic that's why I had a doubt on that.

maheshpalavalli
Active Contributor
0 Kudos

ram mishra,

You can see the reason in that stackoverfflow link.. Only in IE it is happening it seems not in other browsers,

So you are left with 2 solutions.

1. Do like they said in that link , I am not sure if it works and even if it works it is no the correct or best option.

2. Best and the right option is to refresh the data

BR,

Mahesh

former_member338801
Participant
0 Kudos

Do you have any way to refresh the data in the UI only? I have got this but it didn't work.

sap.ui.getCore().byId("viewId").getModel().refresh(true);

or

sap.ui.getCore().byId("tableId").getModel().refresh(true);

Thanks and Regards,

RK

former_member338801
Participant
0 Kudos

............

maheshpalavalli
Active Contributor
0 Kudos

Hi ram mishra,

refresh is used for resending the requests to the backend and works for odata model, ideally when binded to controls.( I think, not 100%sure).

But what I am sure is if you are having a json model which has the data fetched from a request(odata or something) then simply reset the model data like oModel.setData([]) or oModel.setData({}) depending on the type of data you are having. This is what I am talking about when saying resetting means, Let me know if you have any doubts,

BR,

Mahesh