on 2024 Dec 03 7:42 AM
Hi Folks,
I need your expert advice for an issue that I am facing when I deployed a simple UI5 application to cloud foundry.
I have created a simple UI5 which has a button and a label element, on press of which a function is called which displays a MessageBox.
In view controller, I have added a MessageBox in init, just to verify is init is being called.
When I run the app with no-flp and sandbox, it runs perfectly fine.
When I deployed the app to cf , it is working fine when I open the app from HTML5 applications(I added FLP config while creating project).
Now when i ran the same app on Build Work Zone, the View controller is not loaded. The message box in init as well as button event is not displayed. I observed that when I inspect the app, the controllers are not loaded in sources tab.
I need your advice for this issue.
Request clarification before answering.
I encountered a similar issue. If the app is run directly on BTP: HTML5 Application, it works fine. However, if it's run on SAP Build Work Zone, the controller does not seem to function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We further analyzed the issue and found that when the app is executing in WorkZone, 2 component-preload.js files are loading (inspected the app). One file has proper data and other one has incomplete data.
In order to overcome this, we did 2 settings.
1. ui5-deply.yaml : added below section under builder
Hi,
I was having this same issue but have solved it now.
It seems some SAP guy was playing around last week with the BAS Fiori Generator and added some bugs to the App Controller. We can tell because they added some sapui5 walkthrough code.
I performed the following fix and my app started to work
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @DiegoValdivia, i tried your solution and it worked, but when i reload the launchpad/workzone, its does not load the application, and i mean the ui does not render.
UPDATE : well it seems to work, i think somethings wrong with my app.
is your app working or not?
controller not loading means nothing.
the component-preload file may have everything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.