<?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: sap.m.table and sap.ui.commons syntax difference in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486396#M86170</link>
    <description>&lt;P&gt;Hi Meenakshi , &lt;/P&gt;&lt;P&gt;If you want to get the attached data to the selected item than you can just simply get the bindingContext of the selected Item..&lt;/P&gt;&lt;P&gt;var sItem = oTable.getSelectedItem();&lt;/P&gt;&lt;P&gt;var sData = sItem.getBindingContext("this is your model name attach to the table").getProperty();&lt;/P&gt;&lt;P&gt;sData will have the data attach to the row you have selected &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Viplove&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 07:14:23 GMT</pubDate>
    <dc:creator>former_member340030</dc:creator>
    <dc:date>2017-05-29T07:14:23Z</dc:date>
    <item>
      <title>sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaq-p/486393</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Sometime back, I was working on Tables and I used sap.ui.commons library. In the table, I have created a toolbar. When a row is selected and "display button" from the toolbar is clicked, a dialog box opens up , and details of that item are shown in that dialog box. &lt;/P&gt;&lt;P&gt;Screenshot of the code  - &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36281-capture.png" /&gt;&lt;/P&gt;&lt;P&gt;Now I am using SAP.M. library. But I am facing an issue while getting the "rowcontext". I tried various options, but I am not able to get the rowContext. Can anyone please help me with the syntax. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36283-capture1.png" /&gt;&lt;/P&gt;&lt;P&gt;In debug mode, I can see that my oContext is undefined. &lt;/P&gt;&lt;P&gt;I want to access the values that are marked in RED in the screenshot -&lt;/P&gt;&lt;P&gt;example - AProject, ATitle, AUnid....... Please help me in this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36347-code.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2017 12:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaq-p/486393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-28T12:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486394#M86168</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can get the binding context on click on table line Items:&lt;/P&gt;&lt;P&gt;var object=oEvent.getSource().getParent().getModel().getProperty(oEvent.getSource().getBindingContext().sPath);&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 04:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486394#M86168</guid>
      <dc:creator>rohit_darwade</dc:creator>
      <dc:date>2017-05-29T04:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486395#M86169</link>
      <description>&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;Thanks for your reply. What should be passed in spath ? I am getting an error - Cannot read property 'sPath' of undefined&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Meenakshi &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 05:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486395#M86169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T05:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486396#M86170</link>
      <description>&lt;P&gt;Hi Meenakshi , &lt;/P&gt;&lt;P&gt;If you want to get the attached data to the selected item than you can just simply get the bindingContext of the selected Item..&lt;/P&gt;&lt;P&gt;var sItem = oTable.getSelectedItem();&lt;/P&gt;&lt;P&gt;var sData = sItem.getBindingContext("this is your model name attach to the table").getProperty();&lt;/P&gt;&lt;P&gt;sData will have the data attach to the row you have selected &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Viplove&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 07:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486396#M86170</guid>
      <dc:creator>former_member340030</dc:creator>
      <dc:date>2017-05-29T07:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486397#M86171</link>
      <description>&lt;P&gt;HI Viplove,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I am getting an error - Uncaught TypeError: Cannot read property 'getProperty' of undefined&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 09:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486397#M86171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T09:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486398#M86172</link>
      <description>&lt;P&gt;Hi Meenakshi &lt;/P&gt;&lt;P&gt;Did you provide your model name in the binding context if you have mentioned while binding data to the table if not than leave it blank .. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viplove&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486398#M86172</guid>
      <dc:creator>former_member340030</dc:creator>
      <dc:date>2017-05-29T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486399#M86173</link>
      <description>&lt;P&gt;I want to access the values that are marked in RED in the screenshot  -&lt;/P&gt;&lt;P&gt;example - AProject, ATitle, AUnid.......  Please help me in this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36346-code.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486399#M86173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T10:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486400#M86174</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36348-model-name.png" /&gt;&lt;/P&gt;&lt;P&gt;what should be passed in the model name ? &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486400#M86174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T10:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486401#M86175</link>
      <description>&lt;P&gt;I want to access the values that are marked in RED in the screenshot -&lt;/P&gt;&lt;P&gt;example - AProject, ATitle, AUnid....... Please help me in this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36349-code.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486401#M86175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486402#M86176</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;As you have assigned the model to the core and without any model name , so you can access bindingContext without model name. So just try the below code. Below code give you just the one selected row data not the whole table data &lt;/P&gt;&lt;P&gt;var sItem = oTable.getSelectedItem();&lt;/P&gt;&lt;P&gt;var sData = sItem.getBindingContext().getProperty();&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viplove&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486402#M86176</guid>
      <dc:creator>former_member340030</dc:creator>
      <dc:date>2017-05-29T11:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: sap.m.table and sap.ui.commons syntax difference</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486403#M86177</link>
      <description>&lt;P&gt;Thanks Viplove, It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-m-table-and-sap-ui-commons-syntax-difference/qaa-p/486403#M86177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T11:39:03Z</dc:date>
    </item>
  </channel>
</rss>

