Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sapui5 UI5 sap.m.Table itemPress事件_Sapui5 - Fatal编程技术网

Sapui5 UI5 sap.m.Table itemPress事件

Sapui5 UI5 sap.m.Table itemPress事件,sapui5,Sapui5,我有一个sap.m.表,我正在尝试获取行信息 以下是my view.xml表声明: <Table xmlns="sap.m" id="potiemsTable" inset="false" mode="MultiSelect" itemPress="rowSelectionChanged" > 该表使用bindAggregation通过提供的OData服务检索行 oTable.bindItems("/purchaseOrderSet(1)/purchaseItems",templa

我有一个sap.m.表,我正在尝试获取行信息

以下是my view.xml表声明:

<Table xmlns="sap.m" id="potiemsTable" inset="false" mode="MultiSelect" itemPress="rowSelectionChanged" >
该表使用bindAggregation通过提供的OData服务检索行

oTable.bindItems("/purchaseOrderSet(1)/purchaseItems",template);
有人能告诉我如何检索单击行的上下文信息吗

干杯

乔治奥斯请参见:

按下项目时激发,除非该项目的
类型
属性为
非活动


请确保ColumnListItems确实具有type属性,而不是
Inactive
,因为
Inactive
是默认值。

设置ColumnListItem的type属性

<ColumnListItem type="Navigation>...</ColumnListItem>

<ColumnListItem type="Navigation>...</ColumnListItem>