Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Impossible to use navigation property

Hi expert,

I have a problem to use the navigation property. I have a table that I want to fill up with data.

I declare my table in a xml page :

<Table id="idGrappeList"
    inset="false"
    selectionChange="handleSelectionChange"
    items="{GrappeSet}">

Then my cells like that :

    <items>
      <ColumnListItem
      type="Navigation"
      press="onSelect">
        <cells>
          <ObjectIdentifier
            title="{IdentifiantG}"/>
          <Text
            text="{APourType/IdentifiantTG}" />
            <Text
            text="{StatutG}" />
        </cells>
      </ColumnListItem>
    </items>

But I have nothing that appear with the value "APourType/IdentifiantTG

one sample of my request to the odata servor is :

<title type="text">GrappeSet('D24AA018T')</title>

<updated>2015-07-16T08:13:45Z</updated>

<category term="ZGW_MGE_SRV_01.Grappe" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<link href="GrappeSet('D24AA018T')" rel="self" title="Grappe"/>

<link href="GrappeSet('D24AA018T')/ContenuDansAvanPermu" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ContenuDansAvanPermu"type="application/atom+xml;type=entry" title="ContenuDansAvanPermu"/>

<link href="GrappeSet('D24AA018T')/PeutAllerEn" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PeutAllerEn"type="application/atom+xml;type=entry" title="PeutAllerEn"/>

<link href="GrappeSet('D24AA018T')/APourType" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/APourType" type="application/atom+xml;type=entry"title="APourType"/>

<link href="GrappeSet('D24AA018T')/Demande" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Demande" type="application/atom+xml;type=entry"title="Demande"/>

<content type="application/xml">

<m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

<d:IdentifiantG>D24AA018T</d:IdentifiantG>

<d:StatutG>0</d:StatutG>

</m:properties>

</content>

</entry>


Do anyone have an idea of why is it not working ?


Do not hesitate to ask more informations, I will be please to reward you

Maxence

replied

Hi,

For people who wonder how to specify a expand parameter, here is an exemple :

<Table id="contactPickerTable"
  items="{path: 'modelPersons>/ContactSet',
  filters : [{path : 'Customer',operator : 'EQ',value1:'2035235403'}]
  parameters : {expand:'Address',
  select:'Title,PersonId,Address/Street,Address/State,Address/Country'} }" 
>

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question