1

我正在尝试将视图实体集添加到 XML 中的智能表,但实体集有一个输入参数。

"MYAPP.CalculationViews::FIVELEVELANALYSE" as "FIVELEVELANALYSE" key generate local "EMP_ID" parameters via entity "5LevelSYS" results property "Execute";

我可以使用5LevelSYS(1)/Execute来获得正确的结果。我在我的注释文件中添加了一个 SelectionVariant 参数。

<Annotation Term="UI.SelectionVariant">
    <Record Type="UI.SelectionVariantType">
        <PropertyValue Property="Parameters">
            <Collection>
                <Record Type="UI.Parameter">
                    <PropertyValue Property="PropertyName" PropertyPath="sysidinput" />
                    <PropertyValue Property="PropertyValue" String="1" />
                </Record>
            </Collection>
        </PropertyValue>
        <PropertyValue Property="SelectOptions" />
    </Record>
</Annotation>

这里得到

我的 Smarttable 看起来像这样

smartTable:SmartTable id="LineItemsSmartTable" entitySet="5LevelSYS" smartFilterId="smartFilterBar" tableType="ResponsiveTable"
        useVariantManagement="true" useTablePersonalisation="true" header="Line Items" useExportToExcel="true" beforeExport="onBeforeExport"  tableBindingPath="Items"
        showRowCount="true" persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true" app:useSmartField="true" class="sapUiResponsiveContentPadding">
        <!-- layout data used to make the table growing but the filter bar fixed -->
        <smartTable:layoutData>
            <FlexItemData growFactor="1" baseSize="0%"/>
        </smartTable:layoutData>
    </smartTable:SmartTable>

我不确定我必须为 Smarttable 写入 entitySet 什么?我还添加了 Lineitem 但这将是问题的很多代码。该示例说明了有关编辑清单的内容,但我找不到添加该行的正确位置。也许这是我的问题?

谢谢托拜厄斯

4

0 回答 0