SAPUI5表与列索引无关

时间:2019-03-14 10:16:53

标签: sapui5-smarttable

我有一个SAPUI5智能表。我像following example一样用columnIndex定义了xml中的所有列,但令人惊讶的是,它遍历了所有列索引并应用了ODATA服务的顺序:

<smartTable:SmartTable id="ID" entitySet="LineItemsSet"
        smartFilterId="smartFilterBar" tableType="ResponsiveTable"
        useExportToExcel="true" beforeExport="onBeforeExport" useVariantManagement="false"
        useTablePersonalisation="true" header="Line Items" showRowCount="true"
        persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true"
        demandPopin="true" class="sapUiResponsiveContentPadding">
        <Table>
            <columns>
                <Column id="Dmbtr" width="100px" hAlign="Begin">
                    <customData>
                        <core:CustomData key="p13nData"
                            value='\{"columnKey": "Dmbtr", "maxLength": "5","columnIndex":"4", "leadingProperty": "Dmbtr"}' />
                    </customData>
                    <Text text="{/#LineItems/Dmbtr/@sap:label}" />
                </Column>
            </columns>
            <items>
                <ColumnListItem>
                    <cells>
                        <Text
                            text="{Dmbtr}" />
                    </cells>
                </ColumnListItem>
            </items>
        </Table>
    </smartTable:SmartTable>

SAPUI5的新版本似乎有此问题。我有什么需要设置的,它要考虑到columnIndex了?

0 个答案:

没有答案