我想将智能表与JSON模型绑定。我知道不建议这样做,但我想出了在SmartTable中使用sap.m.Table的可能性,您只需要在xml中定义ColumnListItem(模板)即可。必须定义项目或行/单元格。现在,我尝试使用sap.ui.table来执行此操作,因为我需要它的网格布局。我的计划是代替columnlistitems定义Rows,然后定义Cells,因此我们知道我们必须从JsonModel中获取哪些数据。我有一个问题,就是UI5在我的行标记和单元格集内始终显示错误。我做到了,就像在API中一样,它不起作用。版本也相似。这是怎么了 是正确的,但没有用。单元格来自sap.ui.core.Control,我在xml xmlns:core =“ sap.ui.core”]的第一行中
<smartTable:SmartTable id="smartTableObjectDetails" showRowCount="true" tableType="Table"
useExportToExcel="true" editable="true" useTablePersonalisation="true" showFullScreenButton="true"
class="sapUiResponsiveContentPadding"
enableAutoBinding="true" entitySet="showcaseSet" tableBindingPath="JsonModel>/d/results"
initiallyVisibleFields="VF0CLGENT"
</smartTable:customToolbar>
<ui:Table
id="uitblDetails"
selectionMode="Single"
visibleRowCount="15"
enableCellFilter="true"
showColumnVisibilityMenu="true"
>
<!--
<ui:rows>
<core:cells>
</core:cells>
</ui:rows>
-->
</ui:Table>
</smartTable:SmartTable>
我想将智能表与JSON模型绑定。我知道不推荐这样做,但是我想出了在SmartTable中使用sap.m.Table的可能性,您只需要定义ColumnListItem(...
对于您的示例,没有sap.ui.core.cells之类的东西。如果要使用行聚合,则必须直接在行聚合中定义显示/编辑控件。