<?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: UI5: Reading XML View Binding in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/ui5-reading-xml-view-binding/qaa-p/12767452#M4793018</link>
    <description>&lt;OL&gt;&lt;LI&gt;Do you mean the return value of `bindingContext.getObject()` does not contain `Request_id`?&lt;/LI&gt;&lt;LI&gt;What is the type of the `bindingContext`? Is it `sap.ui.model.odata.v2.Context`, `sap.ui.model.odata.v4.Context`, or the plain `sap.ui.model.Context`? When the corresponding GET request is sent for the specific entity in the detail page, does the URI contain $select that is missing `Request_id`?&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 26 Oct 2023 16:11:37 GMT</pubDate>
    <dc:creator>boghyon</dc:creator>
    <dc:date>2023-10-26T16:11:37Z</dc:date>
    <item>
      <title>UI5: Reading XML View Binding</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-reading-xml-view-binding/qaq-p/12767451</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
  &lt;P&gt;I want to read default binding data of an XML View, when opens first time.&lt;/P&gt;
  &lt;P&gt;I am trying to read binding of XML View at a point of time 'valueHelpRequest' to pass the value of a property Request_id which not bind to any field in XML View but representing the unique number of selected record in Master Detail Split App.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;	&amp;lt;Label text="Self/Subordinates" required="true" wrapping="true"/&amp;gt;
	&amp;lt;Input name="Pernr" width="50%" id="subordinates_id" enabled="true" visible="true" value="{path: 'Pernr'}" valueHelpRequest="handleValueHelp"
	liveChange="validation" valueLiveUpdate="true" showValueHelp="true"/&amp;gt;&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I have tried to use below code within valueHelpRequest event "handleValueHelp" but its not working here. Otherwise getBindingContext working perfectly fine in other event like change.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;	handleValueHelp: function(oEvent) {

			this._valueHelpDialog = "";
			var bindingContext = this.getView().getBindingContext();
			var object = bindingContext.getObject();

                        var reqid = object.RequestId;

                            

}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Oct 2023 08:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-reading-xml-view-binding/qaq-p/12767451</guid>
      <dc:creator>adnanmaqbool</dc:creator>
      <dc:date>2023-10-07T08:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: UI5: Reading XML View Binding</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-reading-xml-view-binding/qaa-p/12767452#M4793018</link>
      <description>&lt;OL&gt;&lt;LI&gt;Do you mean the return value of `bindingContext.getObject()` does not contain `Request_id`?&lt;/LI&gt;&lt;LI&gt;What is the type of the `bindingContext`? Is it `sap.ui.model.odata.v2.Context`, `sap.ui.model.odata.v4.Context`, or the plain `sap.ui.model.Context`? When the corresponding GET request is sent for the specific entity in the detail page, does the URI contain $select that is missing `Request_id`?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 26 Oct 2023 16:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-reading-xml-view-binding/qaa-p/12767452#M4793018</guid>
      <dc:creator>boghyon</dc:creator>
      <dc:date>2023-10-26T16:11:37Z</dc:date>
    </item>
  </channel>
</rss>

