title: How display a OData object which is inside on another OData object on xml view ? [sapui]
body: <p>I have this OData model:</p>
  
  <pre><code>&lt;EntityType Name="Request"&gt;
  &lt;Key&gt;
  &lt;PropertyRef Name="Id"/&gt;
  &lt;/Key&gt;
  &lt;Property Name="AirTicketBuyer" Type="Edm.String" Nullable="true" MaxLength="50"/&gt;
  &lt;Property Name="AirTicketBuyerEmail" Type="Edm.String" Nullable="true" MaxLength="50"/&gt;
  &lt;Property Name="BusTicketBuyer" Type="Edm.String" Nullable="true" MaxLength="50"/&gt;
  &lt;Property Name="BusTicketBuyerEmail" Type="Edm.String" Nullable="true" MaxLength="50"/&gt;
  &lt;Property Name="CostCenter" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="Created" Type="Edm.DateTime" Nullable="false"/&gt;
  &lt;Property Name="Currency" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="Department" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="DepartureDate" Type="Edm.DateTime" Nullable="false"/&gt;
  &lt;Property Name="DepartureRoute" Type="Edm.String" Nullable="false" MaxLength="100"/&gt;
  &lt;Property Name="DepartureTransportationType" Type="Edm.String" Nullable="false" MaxLength="1"/&gt;
  &lt;Property Name="Destination" Type="Edm.String" Nullable="false" MaxLength="128"/&gt;
  &lt;Property Name="DestinationType" Type="Edm.String" Nullable="false" MaxLength="1"/&gt;
  &lt;Property Name="ExpirationDate" Type="Edm.DateTime" Nullable="false"/&gt;
  &lt;Property Name="Id" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="IdApplicant" Type="Edm.Int32" Nullable="true"/&gt;
  &lt;Property Name="IdCompany" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="IdUser" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="Reason" Type="Edm.String" Nullable="false" MaxLength="200"/&gt;
  &lt;Property Name="RequestCode" Type="Edm.String" Nullable="false" MaxLength="15"/&gt;
  &lt;Property Name="RequestFatherId" Type="Edm.Int32" Nullable="true"/&gt;
  &lt;Property Name="RequestStatus" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="RequestType" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="ReturnDate" Type="Edm.DateTime" Nullable="false"/&gt;
  &lt;Property Name="ReturnRoute" Type="Edm.String" Nullable="false" MaxLength="100"/&gt;
  &lt;Property Name="ReturnTransportationType" Type="Edm.String" Nullable="false" MaxLength="1"/&gt;
  &lt;Property Name="SapCodeApplicant" Type="Edm.String" Nullable="true" MaxLength="6"/&gt;
  &lt;Property Name="SapCodeUser" Type="Edm.String" Nullable="true" MaxLength="6"/&gt;
  &lt;Property Name="StartFlowDate" Type="Edm.DateTime" Nullable="false"/&gt;
  &lt;Property Name="TipoReq" Type="Edm.String" Nullable="true" MaxLength="2"/&gt;
  &lt;Property Name="TotalAdvance" Type="Edm.Decimal" Nullable="false" Precision="12" Scale="2"/&gt;
  &lt;NavigationProperty Name="ApprovalsRequestDetails" Relationship="rva-persistence.ApprovalsRequest_Request_Many_ZeroToOne0" FromRole="Request" ToRole="ApprovalsRequest"/&gt;
  &lt;NavigationProperty Name="CostCenterDetails" Relationship="rva-persistence.Request_CostCenter_Many_ZeroToOne0" FromRole="Request" ToRole="CostCenter"/&gt;
  &lt;NavigationProperty Name="CurrencyDetails" Relationship="rva-persistence.Currency_Request_One_Many0" FromRole="Request" ToRole="Currency"/&gt;
  &lt;NavigationProperty Name="DepartmentDetails" Relationship="rva-persistence.Department_Request_One_Many0" FromRole="Request" ToRole="Department"/&gt;
  &lt;NavigationProperty Name="ExpenseAdvanceDetails" Relationship="rva-persistence.ExpenseAdvance_Request_Many_ZeroToOne0" FromRole="Request" ToRole="ExpenseAdvance"/&gt;
  &lt;NavigationProperty Name="CompanyDetails" Relationship="rva-persistence.Company_Request_One_Many0" FromRole="Request" ToRole="Company"/&gt;
  &lt;NavigationProperty Name="UsersDetails" Relationship="rva-persistence.Users_Request_One_Many0" FromRole="Request" ToRole="Users"/&gt;
  &lt;NavigationProperty Name="PassengerDetails" Relationship="rva-persistence.Passenger_Request_Many_ZeroToOne0" FromRole="Request" ToRole="Passenger"/&gt;
  &lt;NavigationProperty Name="ReportDocumentDetails" Relationship="rva-persistence.ReportDocument_Request_Many_ZeroToOne0" FromRole="Request" ToRole="ReportDocument"/&gt;
  &lt;NavigationProperty Name="RequestStatusDetails" Relationship="rva-persistence.Request_RequestStatus_Many_ZeroToOne0" FromRole="Request" ToRole="RequestStatus"/&gt;
  &lt;NavigationProperty Name="RequestTypeDetails" Relationship="rva-persistence.RequestType_Request_One_Many0" FromRole="Request" ToRole="RequestType"/&gt;
  &lt;/EntityType&gt;
  </code></pre>
  
  <p>As you can see, tis object have another OData object inside him (Users):</p>
  
  <pre><code>&lt;EntityType Name="Users"&gt;
  &lt;Key&gt;
  &lt;PropertyRef Name="Id"/&gt;
  &lt;/Key&gt;
  &lt;Property Name="Area" Type="Edm.String" Nullable="true" MaxLength="10"/&gt;
  &lt;Property Name="DocumentType" Type="Edm.Int32" Nullable="true"/&gt;
  &lt;Property Name="Email" Type="Edm.String" Nullable="false" MaxLength="100"/&gt;
  &lt;Property Name="ErpId" Type="Edm.String" Nullable="true" MaxLength="20"/&gt;
  &lt;Property Name="ExpirationDate" Type="Edm.DateTime" Nullable="true"/&gt;
  &lt;Property Name="Id" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="IdCompany" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="IdNumber" Type="Edm.String" Nullable="true" MaxLength="30"/&gt;
  &lt;Property Name="JoinDate" Type="Edm.DateTime" Nullable="false"/&gt;
  &lt;Property Name="Password" Type="Edm.String" Nullable="false" MaxLength="100"/&gt;
  &lt;Property Name="Status" Type="Edm.String" Nullable="false" MaxLength="1"/&gt;
  &lt;Property Name="UserAlias" Type="Edm.String" Nullable="false" MaxLength="60"/&gt;
  &lt;Property Name="UserName" Type="Edm.String" Nullable="false" MaxLength="100"/&gt;
  //Navigations
  &lt;/EntityType&gt;
  </code></pre>
  
  <p>I have a master-detail page. I have a list of master objects (of Request type) and on detail page where I can see their properties. I can see all properties but except propertie from "Users" object.</p>
  
  <p>First I created an JSONModel object that contains object of "Request" type:</p>
  
  <pre><code>var jsonModelObject = new JSONModel(requestObject, false);
  
  this.setModel(jsonModelObject, "detailView");
  </code></pre>
  
  <p>In my detail page I can't see properties from "Users" object.</p>
  
  <p>This works:</p>
  
  <pre><code>&lt;Input fieldGroupIds="datos_suscripcion" value="{detailView&gt;/TipoReq}"
                         placeholder="Código..." 
                         id="inTipoReq"/&gt;
  </code></pre>
  
  <p>This doesn't work:</p>
  
  <p><strong>1st way:</strong></p>
  
  <pre><code>&lt;Input fieldGroupIds="datos_suscripcion" value="{detailView&gt;/UsersDetails&gt;/UserName}"
                         placeholder="Usuario..." 
                         id="inUsuario"/&gt;
  </code></pre>
  
  <p><strong>2nd way:</strong></p>
  
  <pre><code>&lt;Input fieldGroupIds="datos_suscripcion" value="{detailView/UsersDetails&gt;/UserName}"
                         placeholder="Usuario..." 
                         id="inUsuario"/&gt;
  </code></pre>
  
  <p>Thanks for your responses :).</p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>@Alan, I'm trying this ways:</p>
  
  <p>First:</p>
  
  <pre><code>&lt;VBox items="{path : 'detailView&gt;/',  parameters: {expand: 'UsersDetails'} }"&gt;
                  &lt;Input fieldGroupIds="datos_suscripcion" value="{UserName}"
                      placeholder="Usuario..." 
                      id="inUsuario"/&gt;
              &lt;/VBox&gt;
  </code></pre>
  
  <p>Second: </p>
  
  <pre><code>&lt;VBox items="{path : 'detailView&gt;/',  parameters: {expand: 'UsersDetails'} }"&gt;
                      &lt;Input fieldGroupIds="datos_suscripcion" value="{detailView&gt;/UsersDetails/UserName}"
                          placeholder="Usuario..." 
                          id="inUsuario"/&gt;
                  &lt;/VBox&gt;
  </code></pre>
  
  <p>None of them works...Curiosly, Alan's way and my ways do that input appears multiples times in my page when I select master object.</p>
  
  <p>My page is similar to Master-Deail example. My page consists in a list of master objects. When I select master object, his properties show on detail page. I use press event for showing properties on detail page. For that, request is not triggered...<a href="https://stackoverflow.com/questions/44005806/how-use-multiples-properties-on-expand-parameter-in-list-component-sapui">Here</a> you can ver mi example with more details.</p>