嗨,我有一张像下面这样的智能桌子
<VBox id="myid">
<smartTable:SmartTable id="smartTable_ResponsiveTable" entitySet = "Employee" enableAutoBinding="true"
tableType="ResponsiveTable" initialise="onSmartTableInit" editable="false" useVariantManagement="false"
useTablePersonalisation="true" header="Employees" showRowCount="true" useExportToExcel="true" />
</VBox>我的数据服务如下:
<workspace>
<atom:title>Default</atom:title>
<collection href="TablePersonalization">
<atom:title>TablePersonalization</atom:title>
</collection>
<collection href="Employee">
<atom:title>Employee</atom:title>
</collection>
<collection href="Collections">
<atom:title>Collections</atom:title>
</collection>
</workspace>我的智能表在第二个视图中,它有第一个视图中的导航。当我移到第二个视图时,我们将整个视图绑定到如下所示的不同路径。
this.getView().bindElement(bindingPath);bindingPath = "/Collections('12345')“
在我的例子中,我试图绑定路径"Employee",这是根级别的父导航。
我对tableBindingPath和entitySet感到困惑
oData的元数据如下。
<EntityType Name="EmployeeType">
<Key>
<PropertyRef Name="EMP_ID"/>
</Key>
<Property Name="EMP_ID" Type="Edm.String" Nullable="false" MaxLength="1024"/>
<Property Name="NAME" Type="Edm.String" Nullable="false" MaxLength="1024"/>
<Property Name="ADDR" Type="Edm.String" Nullable="false" MaxLength="1024"/>
<Property Name="SAL" Type="Edm.String" Nullable="false" MaxLength="1024"/>
</EntityType>我的DB表如下:
entity Employee {
key EMP_ID : String(1024) not null; // Identifier of the Column
NAME : String(1024) not null;
ADDR : String(1024) not null;
SAL : String(1024) not null;
}; 我的数据如下。
"MY_SCHEMA"."my.db.models::CollectionModel.Employee" as "Employee";我搞不懂这里的地图。entitySet期望的是元数据中的表名或entityType名称,以及表绑定路径是什么。有人能回答这个问题吗。
发布于 2015-08-20 16:16:29
我发现了关于SmartTable的以下内容。
检查您正在使用的sapui5版本,在我的示例中,我使用的是智能表无法工作的sapui5 1.28.5,然后我将sapui5的版本更改为1.30,它开始工作。
https://stackoverflow.com/questions/32068154
复制相似问题