In the blog Step by step to run your Fiori application locally on NodeJS the steps to run your Fiori application locally by using NodeJS as server are introduced. In that solution, the Fiori application is launched in a standalone mode where sap.ushell.Container is not available. Additionally there is a requirement to put Fiori application to local launchpad as sandbox for unit test purpose.
Final archievement is: you can see a tile for your Fiori project in the local launchpad.
Once tile is clicked, you can see your Fiori application in the local shell.
How to put your Fiori application into local launchpad via NodeJS
The major required six steps are logically the same as previous blog.
Step 1 ~ Step4: exactly the same as steps in previous blog.
Step 5: the only needed modification on Gruntfile.js is, you should launch a new html page which creates a local launchpad.

How to put your Fiori application into local launchpad via NodeJS

Step 6: Create another html page Sandbox.html.
Key points:
1. declare a dummy render and the navigation target application information when a tile is clicked.
How to put your Fiori application into local launchpad via NodeJS
2. Include sandbox.js :
3. In Sandbox.html, instead of using ComponentContainer, now we should create the configured renderer using API sap.ushell.Container.createRenderer to leverage on local launchpad instead.
The complete source code of my Sandbox.html for your reference:
    Jerry's test Fiori application       
In the runtime, once the tile is clicked, my Fiori application is opened:
How to put your Fiori application into local launchpad via NodeJS
The creation of configured render “fiori2” could be debugged from here:
How to put your Fiori application into local launchpad via NodeJS

New NetWeaver Information at SAP.com

Very Helpfull

User Rating: Be the first one !