Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Missing information about "Spit cells into multiple values" feature on excel export] #119

Closed
as-copilot opened this issue Apr 19, 2024 · 6 comments
Assignees
Labels
not-doc-issue Reported issue is not a documentation issue. SAP Fiori elements type/other Other documentation problem.

Comments

@as-copilot
Copy link

Issue description

Hi Colleagues,

There is no information in the documentation on how to hide/disable “Spit cells into multiple values checkbox” in an app developed using Fiori Elements V4 or how to set the column headers for split columns in the exported excel.

The problem is when this checkbox is marked, the label headers for split columns in the exported excel are not localized. If there is a way to influence the column header for split columns. That solution is also appreciated.

Thanks in advance!

Feedback Type (Optional)

clarity

Page Title on SAP Help Portal (prefilled)

Using the Export Feature

Page URL on SAP Help Portal (prefilled)

https://github.com/SAP-docs/sapui5/blob/main/docs/06_SAP_Fiori_Elements/using-the-export-feature-4bab6f2.md

@KvM2
Copy link
Contributor

KvM2 commented Apr 19, 2024

Hi @as-copilot , thanks for your contribution . We appreciate it and will look into this.

@AdrianaRojas33
Copy link

Hi @as-copilot,

Currently Fiori Elements v4 allows to disable/enable the export functionality on a table, but not only customize the 'split cells into multiple values checkbox' option.
Using the split cells with multiple values option, the exported spreadsheet has a dedicated column per value (property). If one column contains multiple values in a cell (for example, amount and currency/unit), this results in two separate columns in the spreadsheet using as column header the labels of the values (properties) from the model.

Property labels could be localized using the label annotations: https://github.com/SAP-docs/sapui5/blob/main/docs/06_SAP_Fiori_Elements/localization-of-ui-texts-b8cb649.md#overriding-texts-from-annotations

Best Regards,
Adriana

@as-copilot
Copy link
Author

Hi @AdrianaRojas33 ,

Thanks for your reply.

How can one localize the property labels, that are split from a custom column ?
We have a custom column that has two values(name and description). Is there a way to localize the split column headers: name and description.

Thanks!

@AdrianaRojas33
Copy link

Hi @as-copilot,

You can change the label annotation on the properties (name and description) wit the corresponding localized value. You will find below an example using CAP CDS annotations, also available on the provided doc.

image

Best Regards,
Adriana

@as-copilot
Copy link
Author

@AdrianaRojas33
Maybe I misunderstand, but a custom column definition is only in the manifest.json and not defined in the CAP CDS annotations file. And if there is no entry for the custom column in annotation file, how can I assign it a label annotation? I do not find any reference to this in the document.

To explain things a bit better, the custom column is defined as following in our manifest :

"NameColumn": {
"header": "{i18n>name}",
"properties": [
"name",
"description"
],
"template": "sap.ui.view.NameColumn",
"importance": "High"
},

How can one localize the column headers for the split columns(name and description) of the above custom column ?

@AdrianaRojas33
Copy link

Hi @as-copilot, I noticed you closed this incident, were you able to modify the label of the properties directly on your model or with local annotations?
Custom column are created in the manifest but the properties referenced into the custom column belong to the properties of your model.
Best Regards,
Adriana

@OlMue OlMue added not-doc-issue Reported issue is not a documentation issue. type/other Other documentation problem. labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-doc-issue Reported issue is not a documentation issue. SAP Fiori elements type/other Other documentation problem.
Projects
None yet
Development

No branches or pull requests

6 participants