Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
hkpatel
Participant
2,574

Hope everyone is doing well!




first of all, I should introduce myself,

Harshil Patel an SAP UI5 and Fiori Consultant having hands-on Experience of around 3 years, working with a very well known organization situated in Ahmedabad Gujarat.


so lets we all proceed to the learning part,


The title itself says all.

for this, you don't need any tool and no need of changing any code without this you can change your project UI version.

Recently I’ve faced this issue that I have to change the UI version of the app at RUN time, without any Tool and without disturbing any code so how I have got to this,

First of all, Run the app with no errors displayed in the console,

then you may have to open the UI Diagnostics of your app, By pressing the CTRL + ALT + SHIFT + S from your keyboard,

one popup will look like these,


SAP UI Diagnostics Page


after coming to these you have to click on the Debugging tab, you will now view the following Debugging TAB.


DEBUGGING TAB


then you have to click on the drill-down as you can see in the above snapshot there you can see that you have four options to select, please select the last option named, Other(enter URL  to sap-ui-core.js below)…

after selection of that particular option, you might be seeing that one the input box and the Active Reboot Url Named Button on your Diagnostics screen,


RESOURCE URL


in that input, you have to fill your desired version URL(Check your URL First on the web that is working or not) and then execute the Activate Reboot URL Button.

after execution of these minimize this Diagnostics tool then you will be seeing one popup displaying into your app screen like these, then press OK Button.


POPUP


 

after execution of that popup please refresh your app once,(keep your diagnostic tool as it is don’t do anything with that) then you will view one more popup saying that you have changed the version and now your app will run on these version URL, please click on OK Button, as you can see on below image.

URL CONFIRMATION POPUP


 

after executing this popup your app will run nicely now go to console and check your app version, whatever UI version URL you have passed in that input that UI version will be displayed here from console write sap.ui.version you will be viewing your app version details there.

 


UI VERSION


so I hope every one of you has learned that how to change a particular UI version of the project from the browser itself, keep in mind that this is only for a temporary basis if you need to view something, if you refresh the page again then the project comes in its original UI version.

if you face any kind of issues executing these steps kindly comment it down here,

I am always ready to help!!

Thanks for reading, Have fun!

8 Comments
priteshpatel65
Active Participant
its a very helpful artical.
WRoeckelein
Active Participant
0 Kudos
Unfortunatly this does not work for me in Chrome Browser Version 89, I get in the console

debugReboot.js:6 [Violation] Avoid using document.write(). https://developers.google.com/web/updates/2016/08/removing-document-write
debugReboot.js:6 [Violation] Parser was blocked due to document.write(<script>)
debugReboot.js:6 A parser-blocking, cross site (i.e. different eTLD+1) script, https://sapui5.hana.ondemand.com/1.88.1/resources/sap-ui-core.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
debugReboot.js:6 [Violation] Parser was blocked due to document.write(<script>)
debugReboot.js:6 A parser-blocking, cross site (i.e. different eTLD+1) script, https://sapui5.hana.ondemand.com/1.88.1/resources/sap-ui-core.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details..

And I am not on a 2G connection....

Any idea what to do to get this working again?
junwu
Active Contributor
i think it is just changing for runtime, not change at runtime.....
hkpatel
Participant
0 Kudos
Hello wroeckelein.fum

Thanks for writing it down,

Have you followed all the mentioned steps in the blog, because I've never seen any user faced this issue, try to clear your browser cookies and cache, might work,

if not then inform I will look into it.

 
hkpatel
Participant
0 Kudos
Hello jun.wu5,

Yes, you are absolutely correct, I've already mentioned that this is only for Temporary bases,

if you want a permanent then you have to change the version In neo.app.json file in the project.


WRoeckelein
Active Participant
0 Kudos
Hi hkpatel ,

I already tried this eg in a inkognito browser window to avoid any cookie and cache issues, unfortunatly problem remains.

And according to the browser messages, it does not seem to be a cookie or cache issue...

Thanks,

Wolfgang
pragnesh_parmar
Explorer
0 Kudos
It is very useful 🙂
Andreas05
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi wroeckelein.fum,

have you ever solved this issue?

Labels in this area