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

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

      [Applied]

    • 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>
    • 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

      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.

            Assignee:
            handl
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: