on 06-25-2018 3:09 PM
Dear community,
I would like to identify the SCP version inside my HTML5 application embedded in a launchpad.
I searched in the service sap.ushell.Container.getService("AppLifeCycle") but without success. Do you know where I can find this information (services, API, etc.)?
Thank you in advance for your help.
Regards,
Maurin
Hi Maurin,
If you mean SCP version the app version, you could retrieve using the following code:
-----> on your Application Component.js
var oManifest = this.getManifestEntry("sap.app");
var sVersion = oManifest["sap.app"]["applicationVersion"]["version"];
Regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ivan,
Thank you for your answer.
Indeed, I look for the deployment version like you can see in the following screenshot.
I check the method this.getManifestEntry("sap.app")["applicationVersion"]["version"] but it gives me an incorrect version ("1.0").
Otherwise, I find in the project.json a property called "lastVersionWeTriedToDeploy" but it is an incorrect one too like you can see in the following screenshot.
Have I missed something?
Thank you.
Regards.
Maurin
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.