on 06-29-2018 9:43 AM
Hi all,
I am trying to download the content from a smart table in UI5 application, on click of export to excel Icon, the data is being downloaded but with duplicated column headers (with content).
Can anyone please let me know the solution, thank you.
Probably you are not defining well the Key of the columns. Here is an example, for sap.ui.table:
<st:SmartTable>
<st:customToolbar>
</st:customToolbar>
<st:customData>
<core:CustomData key="dateFormatSettings" value='\{"UTC":true\}' />
</st:customData>
<st:layoutData>
<FlexItemData growFactor="1" baseSize="0%" />
</st:layoutData>
<table:Table>
<table:Column tooltip="{path:'/#EntitySet/PropertyName/@sap:label'}" autoResizable="true" hAlign="Center" width="9em" leadingProperty="PropertyName" sortProperty="PropertyName" filterProperty="PropertyName">
<Label text="{path:'/#EntitySet/PropertyName/@sap:label'}"></Label>
<table:template>
<Text text="{PropertyName}" />
</table:template>
<table:customData>
<core:CustomData key="p13nData" value='\{"columnKey": "PropertyName", "columnIndex":"0", "leadingProperty": "PropertyName"}' />
</table:customData>
</table:Column>
</table:Table>
</st:SmartTable>
If you are using the responsive table, tell me for an example 🙂
Hope this helps, if not solved using this, we can check your code.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
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.