HANA Cloud Portal widget creation using SAPUI5 -
i'm trying create 2 widgets use <sap-context>
feature hana cloud portal using sapui5 framework.
the problem cannot find tutorials/examples of using mvc model widget creation. every example have found till uses sapui5 inside <script>
tag in html file if it's jquery or javascript.
is possible @ create widgets using mvc model @ all? if is, links examples/tutorials me alot.
nb:
as matter of fact, did try use mvc model, when try call function using following syntax:
sap.ui.getcore().byid('<view-name-here>').getcontroller().publish("<key-name-here>", "<value-here>");
i uncaught typeerror: cannot read property 'getcontroller' of undefined
error. i'm not sure causes error - flaw in code or fact there no 'core' if don't build sapui5 application... (i'm still new sapui5 thing)
thank you.
Comments
Post a Comment