cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Custom data in analytical column

02-26-2024 3:38 PM
1048 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

Hello,

I have a SmartTable of type AnalyticalTable and custom data in an AnalyticalColumn. The column contains data which should be summed up and the total should be displayed. This is working fine. Each cell in the column, should have a link, so when the user presses the cell, a popover is opened. This is also working. Howevere, there are two issues:

1. the unit of measure is missing, now when I have added the column to the custom data 

2. The sum value should not have a link behind it, but since the whole column has links, also the sum value has it.

Here is my code:

            <table:AnalyticalTable id="customTable">
                    <table:columns>
                        <table:AnalyticalColumn summed="true" id="TotalStock" autoResizable="true" resizable="true" 
                                                leadingProperty="Requirements_Stock" width="100px">
                            <table:customData>
                            <core:CustomData key="p13nData" value='\{"columnKey": "Requirements_Stock", 
                                  "leadingProperty": "Requirements_Stock", "columnIndex": "17", "unit":"TO"}'/>
                            </table:customData>
                            <Label text="{i18n>Requirements_Stock}"></Label>
                            <table:template>
                                <Link id="link" text="{Requirements_Stock}" press="onOpenPOMatMat"/>
                            </table:template>
                        </table:AnalyticalColumn>
                    </table:columns>

            </table:AnalyticalTable>
        </smartTable:SmartTable>s

  And this is the output:

tim_krause_innomate_0-1708958156336.png

Can anyone help with the issues?

Thanks!

0 Likes

Accepted Solutions (0)

Answers (0)