cancel
Showing results for 
Search instead for 
Did you mean: 

Manifest.json working in WebIDE but not in Eclipse

asuji20
Explorer
0 Kudos

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
		}
	}
}




Accepted Solutions (1)

Accepted Solutions (1)

santhu_gowdaz
Active Contributor
0 Kudos

Check your ui5 version. or change index.html src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

asuji20
Explorer
0 Kudos

Hello Santhosh,

Yes, this had worked. Thank you.

Regards,

Sujitha

Answers (2)

Answers (2)

santhu_gowdaz
Active Contributor
0 Kudos

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": "./"}'

asuji20
Explorer
0 Kudos

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.

mvaibhav
Contributor
0 Kudos

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

asuji20
Explorer
0 Kudos

Hi Vaibhav,

Thank you, I tried that and I am still getting a blank page only.