cancel
Showing results for 
Search instead for 
Did you mean: 

Running a Fiori App in WebIDE

Former Member
0 Kudos

We had a consultant company help develop our first Fiori app and we're taking over the development. They developed the application in Eclipse and it's been deployed to our gateway server. I need to be able to export that application and run it in WebIDE. I've done the following so far:

1. Went to our gateway server and exported the application. However looking at the file structure I noticed that it does not have a webapp folder or index.html. Is this supposed to be normal?

2. I zipped up the files and imported into my HANA trial WebIDE as we're still waiting for our company one to get setup. It imported fine but there is no index.html to run the file. I tried creating a file as per the following video SAP HANA Academy - SAP Web IDE: Create index for Fiori Template [1.19] - YouTube but that didn't work. I also tried running the project with Run -> Run as -> SAP Fiori Component on Sandbox but that got a 404 error.

My questions are as follows:

1. How do I create an index.html that will allow me to run the application in WebIDE?

2. How do I point the app to my gateway as I don't see where to put this in the project settings?

I have my GD1 destination setup in my HCP so it does connect to our back-end system. Is there some other settings that I need to configure in order to run this app?

Thanks,

Aryanos

Accepted Solutions (0)

Answers (2)

Answers (2)

aalok0007
Discoverer
0 Kudos

Hi Experts,

Can someone help us with the resolution of this issue ?

Thanks in Advance

0 Kudos

1. There's no need to create index.html file. It's depend on your application design.  SAP Web IDE uses the selected component.js file and runs it from the context menu or from the main menu in the Web Ide. ( for more information : SAP Web IDE Developer Guide )

2. If you already setup your service destination. Right click on your project root folder -> New -> Odata Service. This will add odata service to your application just check manifest.json file after setup step and you will be able to see your service now added.

Former Member
0 Kudos

Hi Kritchapon,

Thanks for the reply. I think the consultants created this strictly as a Fiori app as you mentioned there is no index.html as per the file structure in my original post. I tried adding the OData to the project but it failed with a "Unhandled Error: Cannot read property 'getContent' of null" error.

But even if it's not connected to our OData should I not be able to run it with mock data when I do Run -> Run as -> SAP Fiori Component on Sandbox? Sorry, I'm new to Fiori app development and learning as I go.

Thanks,

Aryanos