Introduction
In this blog, I want to share a tip that can be useful when developing a generic app with multiple intents in SAP Build Work Zone, standard edition. This tip is helpful if you need to create local copies of a deployed SAPUI5 application and adjust the titles of tiles.
While exploring options in SAP BTP Cloud Foundry and SAP Build Work Zone, standard edition, I discovered that deploying more than one intent is not possible. The current workaround is to create local copies of the application. However, when configuring in SAP Build Work Zone, standard edition, I ran into issues with changing the title of the local copy tile. Even after updating the title and translated texts in the Content Manager, the old title still appeared.
How This App Was Developed
The SAPUI5 application was developed in Business Application Studio by selecting 'New Project From Template', choosing 'SAP Fiori Application' and then 'Basic Template'. I also selected the option to add FLP configuration to avoid manual creation of the tile settings. After filling in the necessary values, the following configuration was generated in the manifest.json file:
"crossNavigation": {
"inbounds": {
"TestObject-create": {
"semanticObject": "TestObject",
"action": "create",
"title": "{{flpTitle}}",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
The 'flpTitle' key was automatically generated in the i18n.properties file:
flpTitle=Test App
Creating a Local Copy in Work Zone
A local copy was created following these guidelines. However, changing the title did not work as expected, and I was still seeing the old title.
Adjusting manifest.json
For FLP configuration, it appears that only the 'appTitle' i18n key can be used for the title. After adjusting the manifest.json file to:
"crossNavigation": {
"inbounds": {
"TestObject-create": {
"semanticObject": "TestObject",
"action": "create",
"title": "{{appTitle}}",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
I was able to change the title in SAP Build Workzone, standard edition, for local copies.
Exporting Local Copies
For those interested in comparing differences in local copies when deploying versions with 'flpTitle' and 'appTitle' for the tile title, I encourage using the export option in SAP Build Work Zone, standard edition, within the Content Manager. By examining the differences between these two local copies in the 'businessapp1.json' file, you will notice differences in the cmd/texts section. For the local copy app with flpTitle in cmd/identification, the appTitle key remains for the title.
Summary
Many developers might manually set this configuration and reuse the 'appTitle' without creating a new i18n key record for the tile title. However, if you're using Business Application Studio to speed up development, it's easy to miss that 'flpTitle' is assigned for the title, which won't work correctly for local copy creation.
No comments:
Post a Comment