I am trying to add an htmlview (which is using declarative support according to SAP's docs) to an index page that is also using declarative support. Using data-sap-ui-type="ui.MyView" makes me to ask two questions:
- Is there any equivalent to sap.ui.localResources in declarative support?
- data-ui-type is not adding the view.html suffix to the view that should be laoded. Is there a special pattern for MVC in declarative support or is there currently no way to implement it?
Kind regards, Nico
find some basic samples here: https://openui5.hana.ondemand.com/#docs/guide/MVC.html
First of all I believe that you always have to set
sap.ui.localResources
in code.As you can see instanciating a HTMLView from an HTMLView goes like this:
This will load
example.mvc.test2.view.html
and place it into your parent view.Generally speaking the JS API translates into HTMLViews like this:
Note that:
BR Chris