<?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: Binding Expand entity into table - UI5 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711053#M4769918</link>
    <description>&lt;P&gt;assume you are binding to default model(no name model)&lt;/P&gt;&lt;P&gt;in the view, for table rows="{EmpToTask}", for cell &amp;lt;Text id="_IDGenText2" text="{TaskName}" wrapping="false" /&amp;gt;&lt;/P&gt;&lt;P&gt;in your controller, once you selected the user you should have the path or bindingcontext&lt;/P&gt;&lt;P&gt;you can use either table.setBindingContext&lt;/P&gt;&lt;P&gt;or table.bindElement(path)&lt;/P&gt;</description>
    <pubDate>Sat, 31 Dec 2022 19:32:49 GMT</pubDate>
    <dc:creator>junwu</dc:creator>
    <dc:date>2022-12-31T19:32:49Z</dc:date>
    <item>
      <title>Binding Expand entity into table - UI5</title>
      <link>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaq-p/12711052</link>
      <description>&lt;P&gt;Dears,&lt;BR /&gt;I have a Task that I need some help with,&lt;BR /&gt;I have create Search help for Employees my Task after select one of this I need to display his Tasks,&lt;BR /&gt;I created Association between tasks table and employee and its works well,&lt;BR /&gt;My Issue how to bind the Expand tasks to Table ,&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2121977-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;The header data display well but the Tasks Items doesn't Display , in the init function: &lt;BR /&gt;oTable.bindRows({path : "/ZEMP_INFOSet", parameters : { "expand":"EmpToTask"}} ); &lt;BR /&gt;I have check the gateway and the code working find go through debugger, and select the data .&lt;/P&gt;
  &lt;P&gt;I think the Issue with the Binding of the Table, I have tried many format but does not work:&lt;BR /&gt; &amp;lt;Text id="_IDGenText2" text="{/EmpName}" wrapping="false" /&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;Text id="_IDGenText2" text="{EmpToTask/TaskName}" wrapping="false" /&amp;gt;&lt;BR /&gt;a&lt;/P&gt;
  &lt;P&gt; I need some help with display the tasks in the Table,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mahmoud Farag&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 16:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaq-p/12711052</guid>
      <dc:creator>Mahmoud-Farag</dc:creator>
      <dc:date>2022-12-31T16:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Expand entity into table - UI5</title>
      <link>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711053#M4769918</link>
      <description>&lt;P&gt;assume you are binding to default model(no name model)&lt;/P&gt;&lt;P&gt;in the view, for table rows="{EmpToTask}", for cell &amp;lt;Text id="_IDGenText2" text="{TaskName}" wrapping="false" /&amp;gt;&lt;/P&gt;&lt;P&gt;in your controller, once you selected the user you should have the path or bindingcontext&lt;/P&gt;&lt;P&gt;you can use either table.setBindingContext&lt;/P&gt;&lt;P&gt;or table.bindElement(path)&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 19:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711053#M4769918</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2022-12-31T19:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Expand entity into table - UI5</title>
      <link>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711054#M4769919</link>
      <description>&lt;P&gt;Dear  &lt;SPAN class="mention-scrubbed"&gt;jun.wu5&lt;/SPAN&gt; , first thaks for your answer but,&lt;BR /&gt;I have use:&lt;BR /&gt; oTable.bindElement({path : "/ZEMP_INFOSet", parameters : { "expand":"EmpToTask"}});&lt;/P&gt;&lt;P&gt;and change : rows="{EmpToTask}", for cell &amp;lt;Text id="_IDGenText2" text="{TaskName}" wrapping="false" /&amp;gt;&lt;BR /&gt;Without any difference:&lt;/P&gt;&lt;P&gt;this is the body of the request I need to display the EmpToTask [ ] in The Table,  How can I bind it to the Table &lt;/P&gt;&lt;P&gt;-------------&lt;BR /&gt;                    "EmpId" : "1",&lt;/P&gt;        "EmpName" : "************",&lt;BR /&gt;        "EmpEmail" : "************",&lt;BR /&gt;        "EmpHireDate" : "\/Date(1640995200000)\/",&lt;BR /&gt;        "EmpSalary" : "1885.000",&lt;BR /&gt;        "Note" : "11111111111",&lt;BR /&gt;        "EmpToTask" : {&lt;BR /&gt;          "results" : [&lt;BR /&gt;            {&lt;BR /&gt;             &lt;BR /&gt;              "EmpId" : "1",&lt;BR /&gt;              "TaskId" : "1",&lt;BR /&gt;              "TaskName" : "TEST",&lt;BR /&gt;              "TaskDesc" : "TEST",&lt;BR /&gt;              "TaskStatus" : "TEST",&lt;BR /&gt;              "TaskStartDate" : "\/Date(1672185600000)\/",&lt;BR /&gt;              "Duration" : "000006",&lt;BR /&gt;              "TaskEndDate" : "\/Date(1672012800000)\/"&lt;BR /&gt;            },]</description>
      <pubDate>Sat, 31 Dec 2022 20:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711054#M4769919</guid>
      <dc:creator>Mahmoud-Farag</dc:creator>
      <dc:date>2022-12-31T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Expand entity into table - UI5</title>
      <link>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711055#M4769920</link>
      <description>&lt;P&gt;just follow what I said, forget what you have. if you don't know how to follow, then ask detail question.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 21:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711055#M4769920</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2022-12-31T21:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Binding Expand entity into table - UI5</title>
      <link>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711056#M4769921</link>
      <description>&lt;P&gt;oTable.bindElement("/ZEMP_INFOSet(yourdetailid)");&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 21:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/binding-expand-entity-into-table-ui5/qaa-p/12711056#M4769921</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2022-12-31T21:03:01Z</dc:date>
    </item>
  </channel>
</rss>

