on 03-19-2024 7:22 AM
According to this post, in SAPUI5 1.40 a new feature has been introduced to download a SmartChart as an image. The download button can be enabled by setting the showDownloadButton = true. The ALP UI Adaption Documentation says the same.
I have created an Analytical List Page with SAPUI5 Version 1.84. I tried setting the showDownloadButton in the mainfest.json, but I do not see any change in the UI. I also tried other properties mentioned in the docs like setting showLegendButton = false without any effect.
Am I putting these properties in the wrong location or does anyone know why these settings have no effect on my ALP?
"pages": {
"AnalyticalListPage|ZCAQ_CO_MYAPP": {
"entitySet": "ZCAQ_CO_MYAPPResults",
"component": {
"name": "sap.suite.ui.generic.template.AnalyticalListPage",
"list": true,
"settings": {
"contentTitle": "{{contentAreaTitle}}",
"defaultFilterMode": "compact",
"condensedTableLayout": true,
"showGoButtonOnFilterBar": true,
"autoHide": true,
"smartVariantManagement": true,
"showDownloadButton": true, //does not work
"qualifier": "MainChart",
"tableSettings": {
"multiSelect": false,
"type": "AnalyticalTable"
},
"chartSettings": {
"showDataLabel": true,
"showDownloadButton": true //does not work
},
...
I found out you can set it from code in the onInit event handler of the controller and the button shows up:
var smartChart sap.ui.getCore().byId("chartId");
smartChart.mProperties.showDownloadButton = true;
I would still like to know if it is possible to enable the button via the settings in the manifest.json?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
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.