<?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: oDATA Model - getData() - null in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaa-p/10362611#M3754536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try &lt;STRONG&gt;model.oData&lt;/STRONG&gt; ? It'd list out the entire data in the model. getData() takes an argument sPath &amp;amp; anyhow getData() is deprecated. try model.getProperty(sPath);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 15:19:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-05-29T15:19:06Z</dc:date>
    <item>
      <title>oDATA Model - getData() - null</title>
      <link>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaq-p/10362610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have big troubles with calling oModel.getData() - I'm always getting null - but the view from which I'm getting the model shows the data, and also in chrome debugger I can see data inside oModel, this is screenshot from my application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/463219" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I've tried also debug SAP demo application for purchase approval and there is only one little difference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/463241" width="450" /&gt;&lt;/P&gt;&lt;P&gt;sPath shows PurchaseOrderID for my code - which is first column in my collection, but SAP model shows /PurchaseOrder collection - the name of the collection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then If I call oModel.getData() - I got null.....my model is connected to GW service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 12:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaq-p/10362610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-29T12:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: oDATA Model - getData() - null</title>
      <link>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaa-p/10362611#M3754536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try &lt;STRONG&gt;model.oData&lt;/STRONG&gt; ? It'd list out the entire data in the model. getData() takes an argument sPath &amp;amp; anyhow getData() is deprecated. try model.getProperty(sPath);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 15:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaa-p/10362611#M3754536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-29T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: oDATA Model - getData() - null</title>
      <link>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaa-p/10362612#M3754537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sakthivel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am puzzled by this. I would expect that getData will work to be consistent with JSONModel to get all data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaa-p/10362612#M3754537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-29T17:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: oDATA Model - getData() - null</title>
      <link>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaa-p/10362613#M3754538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the api reference, &lt;A href="https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.ui.model.odata.ODataModel.html#getData" title="https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.ui.model.odata.ODataModel.html#getData"&gt;JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.odata.ODataModel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sakthivel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 18:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/odata-model-getdata-null/qaa-p/10362613#M3754538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-29T18:08:11Z</dc:date>
    </item>
  </channel>
</rss>

