title: SAPUI5: How to Bind smart table
body: <p>Hi i have a smart table like below</p>
  
  <pre><code>&lt;VBox id="myid"&gt;
          &lt;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" /&gt;
  &lt;/VBox&gt;
  </code></pre>
  
  <p>my odata service is like below:</p>
  
  <pre><code>&lt;workspace&gt;
    &lt;atom:title&gt;Default&lt;/atom:title&gt;
    &lt;collection href="TablePersonalization"&gt;
        &lt;atom:title&gt;TablePersonalization&lt;/atom:title&gt;
    &lt;/collection&gt;
    &lt;collection href="Employee"&gt;
       &lt;atom:title&gt;Employee&lt;/atom:title&gt;
    &lt;/collection&gt;
    &lt;collection href="Collections"&gt;
      &lt;atom:title&gt;Collections&lt;/atom:title&gt;
    &lt;/collection&gt;
  &lt;/workspace&gt;
  </code></pre>
  
  <p>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.</p>
  
  <pre><code>  this.getView().bindElement(bindingPath);
  </code></pre>
  
  <p>bindingPath = "/Collections('12345')"</p>
  
  <p>here in my case, i am trying to bind the path "Employee", which is a parent navigation at root level.</p>
  
  <p>iam confused about <strong>entitySet</strong> and <strong>tableBindingPath</strong></p>
  
  <p>metadata of oData is as follows.</p>
  
  <pre><code>&lt;EntityType Name="EmployeeType"&gt;
   &lt;Key&gt;
    &lt;PropertyRef Name="EMP_ID"/&gt;
   &lt;/Key&gt;
   &lt;Property Name="EMP_ID" Type="Edm.String" Nullable="false"   MaxLength="1024"/&gt;
   &lt;Property Name="NAME" Type="Edm.String" Nullable="false" MaxLength="1024"/&gt;
   &lt;Property Name="ADDR" Type="Edm.String" Nullable="false" MaxLength="1024"/&gt;
   &lt;Property Name="SAL" Type="Edm.String" Nullable="false" MaxLength="1024"/&gt;
  &lt;/EntityType&gt;
  </code></pre>
  
  <p>my DB table is as follows:-</p>
  
  <pre><code>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;
  }; 
  </code></pre>
  
  <p>my odata is as follows.</p>
  
  <pre><code>"MY_SCHEMA"."my.db.models::CollectionModel.Employee" as "Employee";
  </code></pre>
  
  <p>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.</p>