cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to see the View and Controller option

Hi,

I am using SAP WEB IDE (SAP cloud platform trial) for creation UI5 app.

I have encountered one query which is when I right click on the FOLDER(myFirstUi5App, say) there is not an option for creating View.

I request you to please help me to get an option for creating a ‘View’.

Accepted Solutions (1)

Accepted Solutions (1)

boghyon
Product and Topic Expert
Product and Topic Expert

Right click on the project folder > Project > Project Settings > Project Types and enable the SAP Fiori type.

Once this is activated, the right click menu item SAPUI5 View will be available under New.

IMPORTANT: Currently, creating a view via the menu SAPUI5 View will create the view with <App> every time. Having such root controls in every view will result in layout issues soon or later. Do not keep sap.m.App in every view except in the root view.

Thank you Boghyon, Now its working!!!!!!!!!!!!!!!!!

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

prashanthom.reddy Glad I could help. Please be aware that Web IDE adds sap.m.App every time when the view is created via the menu SAP View. This is not a good practice as root controls are supposed to exist only once in the whole application, not in every view.

Updated my answer accordingly..

sknagoorsharief
Explorer
0 Kudos
thank you boghyon.hoffmann!

Answers (1)

Answers (1)

Thank you Boghyon ! It was just a configuration but bothered me a lot. Thanks a ton for the help. I appreciate your time.