Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-512

14.5.14: add example for specifying a value for a navigation property in a <Record> expression

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CS01
    • Fix Version/s: V4.0_CSD03
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Applied]

    • Proposal:
      Hide

      Explicitly state that the <PropertyValue> element can be used for both navigation and structural properties.

      Add example using the <PropertyValue> element for specifying a value for a navigation property using the Path attribute:

      <PropertyValue Property="CostCenter" Path="CurrentOrgUnit/CostCenter" />

      Add second example using the <UrlRef> expression:

      <PropertyValue Property="CostCenter">
      <UrlRef>
      <Apply Function="odata.fillUriTemplate">
      <String>http://host/anotherService/CostCenters('

      {CostCenterID}

      ')</String>
      <LabeledElement Name="CostCenterID" Path="CCID" />
      </Apply>
      </UrlRef>
      </PropertyValue>

      Show
      Explicitly state that the <PropertyValue> element can be used for both navigation and structural properties. Add example using the <PropertyValue> element for specifying a value for a navigation property using the Path attribute: <PropertyValue Property="CostCenter" Path="CurrentOrgUnit/CostCenter" /> Add second example using the <UrlRef> expression: <PropertyValue Property="CostCenter"> <UrlRef> <Apply Function="odata.fillUriTemplate"> <String> http://host/anotherService/CostCenters( ' {CostCenterID} ')</String> <LabeledElement Name="CostCenterID" Path="CCID" /> </Apply> </UrlRef> </PropertyValue>
    • Resolution:
      Show
      https://www.oasis-open.org/committees/download.php/50767/odata-v4.0-wd04-part3-csdl-2013-09-20.docx Applied: https://www.oasis-open.org/committees/download.php/50877/odata-meeting-54_on-20131001-minutes.html#ga_01

      Description

      We allow terms to be of any entity type or complex type, and both can have navigation properties, but we don't have an example of how to specify a value for a navigation property.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: