<?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>topic Propagate Context Binding to SubView in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/propagate-context-binding-to-subview/m-p/12164680#M1978393</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
  &lt;P&gt;I have an AppView with several embedded subviews. For example:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;Shell&amp;gt;
  &amp;lt;App&amp;gt;
    &amp;lt;pages&amp;gt;
      &amp;lt;Page
        id="MainView" &amp;gt;
	&amp;lt;headerContent&amp;gt;
	&amp;lt;/headerContent&amp;gt;
	&amp;lt;subHeader&amp;gt;
	&amp;lt;Toolbar&amp;gt;
	&amp;lt;Button id="btnRefresh" icon="sap-icon://refresh" press="onRefresh" type="Transparent"/&amp;gt;
	&amp;lt;ToolbarSpacer/&amp;gt;
	&amp;lt;Select id="sOrgs"													width="140px"													showSecondaryValues= "true"													items="{														path: 'StatusOrg',														templateShareable: false													}"													selectedKey="{Org}"													change=".onInputChange"&amp;gt;													&amp;lt;core:ListItem key="{Objid}" text="{Short}" class="sapUiSmallMarginBegin sapUiSmallMarginTopBottom"/&amp;gt;												&amp;lt;/Select&amp;gt;
&amp;lt;DatePicker
	id="DP2"
	dateValue="{Datum}" 
        valueFormat="dd.MM.yyyy"
	change=".onInputChange"
	width="30%"/&amp;gt;
	&amp;lt;/Toolbar&amp;gt;
	&amp;lt;/subHeader&amp;gt;
&amp;lt;content&amp;gt;
&amp;lt;IconTabBar
  expanded="true"
  id="idIConTabBar"
  select="handleIconTabBarSelect"
  class="sapUIResponsivePadding"&amp;gt;
  &amp;lt;items&amp;gt;
    &amp;lt;IconTabFilter
      icon="sap-icon://home"
      design="Vertical"
      text="Start"
      key="Home" &amp;gt;
      &amp;lt;mvc:XMLView viewName="mc.view.Start"/&amp;gt;
    &amp;lt;/IconTabFilter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In AppView.controller there is some initial data loaded an bound to the AppView via &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;loadSuccess: function(oData) {
  this._oApplicationProperties.setProperty("/isDirty", false);
  var sContextPath = this._oHelper.getPathForStatus(oData.Datum,oData.Org);
  this._oView.bindElement(sContextPath);
  var oBindingContext = this._oView.getBindingContext();
  if (oBindingContext &amp;amp;&amp;amp; oBindingContext.getPath() === sContextPath) {
    this._oView.getElementBinding().refresh();
  }
},
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Data is displayed in AppView, but not in StartView.&lt;/P&gt;
  &lt;P&gt;How can I propagate the contextbinding to StartView?&lt;/P&gt;
  &lt;P&gt;thank you - Sven&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 14:39:30 GMT</pubDate>
    <dc:creator>sven_schuberth2</dc:creator>
    <dc:date>2020-04-28T14:39:30Z</dc:date>
    <item>
      <title>Propagate Context Binding to SubView</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/propagate-context-binding-to-subview/m-p/12164680#M1978393</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
  &lt;P&gt;I have an AppView with several embedded subviews. For example:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;Shell&amp;gt;
  &amp;lt;App&amp;gt;
    &amp;lt;pages&amp;gt;
      &amp;lt;Page
        id="MainView" &amp;gt;
	&amp;lt;headerContent&amp;gt;
	&amp;lt;/headerContent&amp;gt;
	&amp;lt;subHeader&amp;gt;
	&amp;lt;Toolbar&amp;gt;
	&amp;lt;Button id="btnRefresh" icon="sap-icon://refresh" press="onRefresh" type="Transparent"/&amp;gt;
	&amp;lt;ToolbarSpacer/&amp;gt;
	&amp;lt;Select id="sOrgs"													width="140px"													showSecondaryValues= "true"													items="{														path: 'StatusOrg',														templateShareable: false													}"													selectedKey="{Org}"													change=".onInputChange"&amp;gt;													&amp;lt;core:ListItem key="{Objid}" text="{Short}" class="sapUiSmallMarginBegin sapUiSmallMarginTopBottom"/&amp;gt;												&amp;lt;/Select&amp;gt;
&amp;lt;DatePicker
	id="DP2"
	dateValue="{Datum}" 
        valueFormat="dd.MM.yyyy"
	change=".onInputChange"
	width="30%"/&amp;gt;
	&amp;lt;/Toolbar&amp;gt;
	&amp;lt;/subHeader&amp;gt;
&amp;lt;content&amp;gt;
&amp;lt;IconTabBar
  expanded="true"
  id="idIConTabBar"
  select="handleIconTabBarSelect"
  class="sapUIResponsivePadding"&amp;gt;
  &amp;lt;items&amp;gt;
    &amp;lt;IconTabFilter
      icon="sap-icon://home"
      design="Vertical"
      text="Start"
      key="Home" &amp;gt;
      &amp;lt;mvc:XMLView viewName="mc.view.Start"/&amp;gt;
    &amp;lt;/IconTabFilter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In AppView.controller there is some initial data loaded an bound to the AppView via &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;loadSuccess: function(oData) {
  this._oApplicationProperties.setProperty("/isDirty", false);
  var sContextPath = this._oHelper.getPathForStatus(oData.Datum,oData.Org);
  this._oView.bindElement(sContextPath);
  var oBindingContext = this._oView.getBindingContext();
  if (oBindingContext &amp;amp;&amp;amp; oBindingContext.getPath() === sContextPath) {
    this._oView.getElementBinding().refresh();
  }
},
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Data is displayed in AppView, but not in StartView.&lt;/P&gt;
  &lt;P&gt;How can I propagate the contextbinding to StartView?&lt;/P&gt;
  &lt;P&gt;thank you - Sven&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/propagate-context-binding-to-subview/m-p/12164680#M1978393</guid>
      <dc:creator>sven_schuberth2</dc:creator>
      <dc:date>2020-04-28T14:39:30Z</dc:date>
    </item>
  </channel>
</rss>

