SPField.RelatedField Property
Gets or sets the internal name of a field to which the current field is related.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Property Value
Type: System.StringA string that contains the name of the field to which the current field is related.
In case of a BCS / BDC field
Could someone please delete this comment?
- 6/12/2010
- René Hézser
- 6/12/2010
- René Hézser
In case of a BCS / BDC field
Could someone please delete this comment?
- 6/12/2010
- René Hézser
- 6/12/2010
- René Hézser
SPBusinessDataField.RelatedField
The SPBusinessDataField.RelatedField property stores the name of the related field where the primary key of the business data entity is stored. The value identifies the selected item, which is displayed by the field for the current SPListItem.
The identifier is in BDC form and can be converted to the identifier(s) of the external data object with:
object[] externalId = EntityInstanceIdEncoder.DecodeEntityInstanceId((string)item[field.RelatedField]);
The identifier is in BDC form and can be converted to the identifier(s) of the external data object with:
object[] externalId = EntityInstanceIdEncoder.DecodeEntityInstanceId((string)item[field.RelatedField]);
- 6/12/2010
- René Hézser
- 6/12/2010
- René Hézser