Skip to Content
0

SAPUI5: XML views

Feb 27, 2017 at 10:23 AM

58

avatar image

I am learning app development using SAPUI5. I am using eclipse Luna version. I am learning to develop through SAPUI5 tutorials https://sapui5.hana.ondemand.com/#docs/guide/8b49fc198bf04b2d9800fc37fecbb218.html

I am stuck at Step 4: XML views (Walkthrough). I am unable to find the root folder and the view name to be passed to the index file. Please find the code below.

Index.html


Main.view.xml

http://www.w3.org/1999/xhtml">

The index file is saved in the following eclipse folder /workspace/<project name>/webcontent/index.html

The view is saved in the following folder /workspace/<project name>/webcontent/<project folder>/Main.view

What will be the root folder and how to call the viewname in the above code.

Thanks for your help.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Pierre Dominique Feb 27, 2017 at 04:01 PM
1

Hi,

You should put everything in a webapp folder. So you'll have webapp/index.html and then webapp/view/Main.view.xml. This is the recommended structure for a UI5 app: https://sapui5.hana.ondemand.com/#docs/guide/003f755d46d34dd1bbce9ffe08c8d46a.html

Cheers,

Pierre

Share
10 |10000 characters needed characters left characters exceeded