Hi i have a smart table like below
<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>
my odata service is like below:
<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>
my smart table is there in second view which is has a navigation from the first view. when ever i move to the second view we are binding the total view with a different path like below.
this.getView().bindElement(bindingPath);
bindingPath = "/Collections('12345')"
here in my case, i am trying to bind the path "Employee", which is a parent navigation at root level.
iam confused about entitySet and tableBindingPath
metadata of oData is as follows.
<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>
my DB table is as follows:-
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 odata is as follows.
"MY_SCHEMA"."my.db.models::CollectionModel.Employee" as "Employee";
i confused about the mapping here. what does the entitySet expects, is it table name or entityType name in metadata and what about the table binding path. Can any body answere this.