on 10-23-2019 6:51 AM
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
Hi ram mishra,
This is definitely not related to UI5 issues and a quick search lead me to the below solution.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.