on 03-14-2016 7:14 AM
Hi Experts,
I have created a custom sapui5 app to be deployed on the sap fiori launchpad.
I have followed the following prerequisites for the app to be dployed as a fiori app:
- all views are xml views
- contains component.js
My component.js contains only the following:
createContent : function() { |
var oViewData = { | ||||
component : this | ||||
}; | ||||
return sap.ui.view({ | ||||
id:"ProdOrdCnfView", | ||||
viewName : "XXXXXX.xxxxx.ProdOrdCnf", | ||||
type : sap.ui.core.mvc.ViewType.XML, | ||||
viewData : oViewData | ||||
}); |
}
I have an index.html which contains the following:
<script>
sap.ui.getCore().attachInitEvent(function() { | ||||||
var oComponentContainer = new sap.ui.core.ComponentContainer({ | ||||||
height : "100%", | ||||||
name : "XXXXPOC" | ||||||
}); | ||||||
oComponentContainer.placeAt("content"); | ||||||
}); |
</script>
Questions: a) Are there any other prerequisites for an ui5 app to be deployed to the fiori launchpad?
b) As Fiori apps does not contain index.html. What shall i do with my index.html? Do i need to remove it before uploading my project as a BSP application?
Please guide.
Thanks and Regards,
Vinayak Puranik
Dear Vinayak,
Ans for Question A: Yes. We have prerequest for to be deploy to the fiori launchpad. Please refer below link
Ans for Question B: index.html is not mandatory to upload with BSP file. But, it's depends on your component.js. You deploy complete project into BSP file and test it from there itself. If index.html file is not there in BSP file, you cant test the application.
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Ram and Saurabh for your valuable insights.
Thanks and Regards,
Vinayak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
a) No
b) In the index.html file the component is instantiated using the helper method sap.ui.core.ComponentContainer by searching for a Component.js file in the namespace that is passed in as an argument. The component automatically loads the root view. So you do not need to remove the index.html file, just upload the UI5 project as it is.
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.