on 01-10-2019 3:50 AM
Hello experts,
I am new to UI5 programming. I am using the same manifest file in a webIDE project and eclipse project.I have changed the ID and rootview details accordingly. However, eventhough it works in webIDE I am getting a blank page in eclipse. There is no error in debugger as well.
If i give the rootview directly in component, the page loads. However if i give as manifest, then there is a blank page coming up. stuck in this for sometime now so any help is appreciated
Component.js:
sap.ui.define([
"sap/ui/core/UIComponent"
], function (UIComponent) {
"use strict";
return UIComponent.extend("zas_proj1_ns.Component", {
metadata : {
manifest: "json"
//rootView: "zas_proj1_ns.View.MainView"
// giving rootview directly works
},
init : function () {
// call the init function of the parent
UIComponent.prototype.init.apply(this, arguments);
// additional initialization can be done here
}
});
});
Manifest.json:
{
"_version": "1.1.0",
"start_url": "./index.html",
"sap.app": {
"_version": "1.1.0",
"id": "zas_proj1_ns",
"type": "application",
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"applicationVersion": {
"version": "1.0.0"
}
},
"sap.ui": {
"_version": "1.1.0",
"technology": "UI5",
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
},
"supportedThemes": [
"sap_bluecrystal"
]
},
"sap.ui5": {
"_version": "1.1.0",
"rootView": "zas_proj1_ns.View.MainView",
"autoPrefixId": true,
"dependencies": {
"minUI5Version": "1.30",
"libs": {
"sap.ui.core": {
"minVersion": "1.30.0"
},
"sap.m": {
"minVersion": "1.30.0"
},
"sap.ui.layout": {
"minVersion": "1.30.0"
}
}
},
"contentDensities": {
"compact": true,
"cozy": true
}
}
}
Check your ui5 version. or change index.html src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
keep view, controller, model folders and component.js and manifest.json direct access to webcontent folder like your index.html.
or else check index.html data-sap-ui-resourceroots, it should change according to your folder structure like "." or "./" or "././"
example:-
data-sap-ui-resourceroots='{"zas_proj1_ns": "./"}'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Santhosh,
Thank you. I tried it but still getting a blank page. Also, like i mentioned if I give the rootview directly in component.js it works. Only if i try to give via manifest.json its not working.
So either component.js is not communicating with manifest.json or something is wrong in manifest.json.
hi Sujitha,
Modify your manifest to include your view name like this and try once
"sap.ui5": {
"rootView": {
"viewName": "zas_proj1_ns.View.MainView",
"type": "XML"
},
Thanks,
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.