Skip to Content
avatar image
Former Member

SAPUI5: XML views

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 27, 2017 at 04:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded