Skip to Content

SAPUI5 form

screen-shot-2019-02-21-at-30416-pm.pngscreen-shot-2019-02-21-at-112626-am.pngI'm new to UI5 and trying to use this

https://sapui5.hana.ondemand.com/#/sample/sap.ui.layout.sample.Form354wideDual/code/Page.controller.js

I already opened the proper folders and entered the right code but my web app is still not running.

How would I go about using this form?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 22, 2019 at 04:39 AM

    Please check the resource root defined in your index.html file and ensure that the same prefix appears in all places in your project while referring to controllers and views. From the error screen shot it looks like the framework is trying to load the view having prefix opensap.myapp but in your view you have given the resource root prefix as sap.ui.layout.sample.Form354wideDual in the controllerName property.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2019 at 06:25 AM

    Hi Oscar Villegas,

    You did a mistake there, you used javascript code inside the XML view which is not possible in UI5 or anywhere else.

    I understand that you are new to UI5 so the best way to learn is to go through the documentation first (Get Started: Setup and Tutorials)

    https://ui5.sap.com/#/topic/8b49fc198bf04b2d9800fc37fecbb218

    For now the fix is don't copy paste the code from samples code.. There is a button "Download" (top right corner) which will download all the source code and import that in the webide and run it :)

    Happy coding ui5!

    BR,

    Mahesh

    Add a comment
    10|10000 characters needed characters exceeded