<?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 - oData Simple Form Binding in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800043#M246722</link>
    <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/96115/ysharma1981.html"&gt;Yogesh Sharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes oData V2 is asynchronous. So you need to read like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;oModel.read("/EntitySetName('Key')",{
   success: function(mData){
        console.log(mData);
        // Here check the mData and below set the bind element
        this.getView().byId("SimpleForm").bindElement("/UserSets('SHARM2')")
      }.bind(this)
}); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are lot's of blogs &amp;amp; answers outthere which answers your query..&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
    <pubDate>Mon, 04 Feb 2019 07:22:21 GMT</pubDate>
    <dc:creator>maheshpalavalli</dc:creator>
    <dc:date>2019-02-04T07:22:21Z</dc:date>
    <item>
      <title>SAPUI5 - oData Simple Form Binding</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaq-p/800041</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I'm trying to retrieve an OData model from inside onInit function of controller in SAPUI5 to access a property into a local variable.&lt;/P&gt;
  &lt;P&gt;I need “UserID” to define the sPath("/UserSets('SHARM2')")in order to bind it to Simple Form control using the following statement. &lt;/P&gt;
  &lt;P&gt;this.getView().byId("SimpleForm").bindElement("/UserSets('SHARM2')")&lt;/P&gt;
  &lt;P&gt;It’s a simple UI5 Update data form for current user logged in. I have tried to use “oModel.read” and “oModel.attachrequestcompleted” but since data loading is asynchronous, “UserID” is not available for form binding.&lt;/P&gt;
  &lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 22:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaq-p/800041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-03T22:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 - oData Simple Form Binding</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800042#M246721</link>
      <description>&lt;P&gt;Have you tried binding the userid to the form control in the controller's onBeforeRendering function?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 05:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800042#M246721</guid>
      <dc:creator>saurabh_vakil</dc:creator>
      <dc:date>2019-02-04T05:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 - oData Simple Form Binding</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800043#M246722</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/96115/ysharma1981.html"&gt;Yogesh Sharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes oData V2 is asynchronous. So you need to read like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;oModel.read("/EntitySetName('Key')",{
   success: function(mData){
        console.log(mData);
        // Here check the mData and below set the bind element
        this.getView().byId("SimpleForm").bindElement("/UserSets('SHARM2')")
      }.bind(this)
}); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are lot's of blogs &amp;amp; answers outthere which answers your query..&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 07:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800043#M246722</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-02-04T07:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 - oData Simple Form Binding</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800044#M246723</link>
      <description>&lt;P&gt;Thank you Mahesh. That worked !&lt;/P&gt;&lt;P&gt;Appreciate your response guys.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 14:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800044#M246723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-04T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 - oData Simple Form Binding</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800045#M246724</link>
      <description>&lt;P&gt;Thanks a lot Mahesh Bhai. &lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 18:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-odata-simple-form-binding/qaa-p/800045#M246724</guid>
      <dc:creator>former_member811618</dc:creator>
      <dc:date>2022-08-30T18:15:47Z</dc:date>
    </item>
  </channel>
</rss>

