on 10-06-2020 11:03 PM
Hi,
We have a fiori elements app deployed in SCP and published in SCP Portal Central as a saas multitenant app.
When we launch the app it get stucked.
Logs in chrome console are:
2020-10-06 23:18:36.043935 [ 8] Removed attribute height - <ViewSwitchContainerItem height="{= ${visualizationDefinition>type} === 'Table' ? '100%' : undefined}"> sap.ui.core.util.XMLPreprocessor
2020-10-06 23:18:36.045000 [ 9] fragmentName = sap.fe.templates.controls.ViewSwitchContainer. - <core:Fragment fragmentName="sap.fe.templates.controls.ViewSwitchContainer.{visualizationDefinition>type}" type="XML"/> sap.ui.core.util.XMLPreprocessor
Error: resource sap/fe/templates/controls/ViewSwitchContainer/.fragment.xml could not be loaded
"visualizationDefinition>type" is empty and so the file name of the template is incomplete.
The same app is also deployed in SCP in one other subaccount as a simple no multitenant app and we have no problems.
In this case the logs are:
2020-10-06 23:42:11.670820 [ 8] height = 100% - <ViewSwitchContainerItem height="{= ${visualizationDefinition>type} === 'Table' ? '100%' : undefined}"> sap.ui.core.util.XMLPreprocessor
2020-10-06 23:42:11.672060 [ 9] fragmentName = sap.fe.templates.controls.ViewSwitchContainer.Table - <core:Fragment fragmentName="sap.fe.templates.controls.ViewSwitchContainer.{visualizationDefinition>type}" type="XML"/> sap.ui.core.util.XMLPreprocessor
Opening request #984 GET https://sapui5.hana.ondemand.com/resources/sap/fe/templates/controls/ViewSwitchContainer/Table.fragm... -
"visualizationDefinition>type" is "Table" and the file name of the template is correct.
The problem seems related to the model attribute "visualizationDefinition>type" without binding, it's used by:
Has anyone run into the same problem?
Thanks,
Sam
Hi,
knowledge share: the cap build rules with the "options.model.app" were in the .cdsrc.json but this file was not deployed in the mta therefore no annotations for the fiori elements tables.
Moving the building rules directly into the package.json file solved.
{
"build": {
"target": "gen",
"tasks": [
{ "src": "db", "for": "hana", "options": { "model": ["db", "srv", "app"] } },
{ "src": "srv", "for": "node-cf", "options": { "model": ["db", "srv", "app"] } },
{
"src": ".",
"for": "mtx",
"dest": "srv"
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.