智能表中的导航-SAP UI5

时间:2018-10-31 07:09:14

标签: sapui5 sapui5-smarttable

我正在尝试从智能表导航。 我试图在click。上获取行的绑定上下文,但是我正在获取未定义的绑定上下文。 请帮我在这里得到它。我也在寻找智能过滤器集成..我的ODATA没有注释。 下面是我的代码

<smartTable:SmartTable id="artiT" entitySet="Projects"
                tableBindingPath="{path: 'base>/Projects', filters: [{path: 'Archieved', operator: 'EQ', value1: false}] , parameters: {expand:'RegionCountryDetails,SkillSetDetails'}}"
                smartFilterId="smartFilterBar" tableType="ResponsiveTable" useExportToExcel="false" beforeExport="onBeforeExport"
                useVariantManagement="false" useTablePersonalisation="true" header="Line Items" showRowCount="true"
                persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true" demandPopin="true" class="sapUiResponsiveContentPadding"
                initiallyVisibleFields="ProjectId,Name,City,StartDate,EndDate,TeamSize" beforeRebindTable="onBeforeRebindTable">
                <smartTable:customToolbar>
                    <OverflowToolbar design="Transparent">
                        <ToolbarSpacer/>
                        <Button icon="sap-icon://add" press="createProjectNav"/>
                    </OverflowToolbar>
                </smartTable:customToolbar>
                <Table id="tableMlst" class="projectList">
                    <columns>
                        <Column>
                            <customData>
                                <core:CustomData key="p13nData"
                                    value='\{"columnKey": "ProjectId", "leadingProperty": "ProjectId", "sortProperty": "ProjectId", "filterProperty": "ProjectId"}'/>
                            </customData>
                            <Text text="{i18n>projectId}"/>
                        </Column>

                    </columns>
                    <items>
                        <ColumnListItem type="Navigation" press="handleListItemPress" id="projectListItems">
                            <cells>
                                <Text text="{ProjectId}" id="projectId" class="padding1em boldText"/>
                                </cells>
                        </ColumnListItem>
                    </items>
                </Table>
            </smartTable:SmartTable>

0 个答案:

没有答案