<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAPUI5 Select  control inside Table with the same items path as the Table in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapui5-select-control-inside-table-with-the-same-items-path-as-the-table/qaa-p/12014737#M4498456</link>
    <description>&lt;P&gt;I think you are fine. you are not duplicating the model, you just have two alias name.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 13:53:10 GMT</pubDate>
    <dc:creator>junwu</dc:creator>
    <dc:date>2019-07-30T13:53:10Z</dc:date>
    <item>
      <title>SAPUI5 Select  control inside Table with the same items path as the Table</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-select-control-inside-table-with-the-same-items-path-as-the-table/qaq-p/12014736</link>
      <description>&lt;P&gt;I have the following scenario: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;Table
    id="priceListsTable"
    items="{path : 'myModel&amp;gt;/PriceLists', templateShareable : false}"&amp;gt;
    &amp;lt;columns&amp;gt;
        &amp;lt;Column&amp;gt;
            &amp;lt;Text text="Name"/&amp;gt;
        &amp;lt;/Column&amp;gt;
        &amp;lt;Column&amp;gt;
            &amp;lt;Text text="Base Price List"/&amp;gt;
        &amp;lt;/Column&amp;gt;

    &amp;lt;/columns&amp;gt;
    &amp;lt;ColumnListItem&amp;gt;
        &amp;lt;Text text="{myModel&amp;gt;NAME}"/&amp;gt;

        &amp;lt;Select
            id="basePriceList"
            items="{myModel2&amp;gt;/PriceLists}"
            selectedKey="{path:'myModel&amp;gt;BASE_PRICE_LIST_ID', type:'sap.ui.model.odata.type.String'}"&amp;gt;
            &amp;lt;core:ListItem key="{myModel2&amp;gt;ID}" text="{myModel2&amp;gt;NAME}"/&amp;gt;
        &amp;lt;/Select&amp;gt;

    &amp;lt;/ColumnListItem&amp;gt;
&amp;lt;/Table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I'm displaying a price list collection, and every price list has a base price list linked to itself with conversion factor. So, 'items' path of priceListsTable is the same as 'items' path of basePriceList . Is there a way to loop all price lists in basePriceList using myModel and not defining myModel2.&lt;/P&gt;
  &lt;P&gt;Right now i'm doing it like this in onInit():&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;this.getView().setModel(this.getOwnerComponent().getModel("myModel"),"myModel2");&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Actually, duplicating the model just to use it for Select.&lt;/P&gt;
  &lt;P&gt;I appreciate any help.&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;BR /&gt;Ebu&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-select-control-inside-table-with-the-same-items-path-as-the-table/qaq-p/12014736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-30T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 Select  control inside Table with the same items path as the Table</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-select-control-inside-table-with-the-same-items-path-as-the-table/qaa-p/12014737#M4498456</link>
      <description>&lt;P&gt;I think you are fine. you are not duplicating the model, you just have two alias name.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-select-control-inside-table-with-the-same-items-path-as-the-table/qaa-p/12014737#M4498456</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2019-07-30T13:53:10Z</dc:date>
    </item>
  </channel>
</rss>

