This documentation is archived and is not being maintained.

masterKey Attribute

Office 2007

Contains the XPath of the field in the master XML fragment that forms the relationship to the detail XML fragment.

Type

xsd:string

Parent Elements

ElementDescription
masterDetailDefines the XML fragments that form a master and detail relationship in a view's repeating tables or repeating sections.

Definition

<xsd:attribute name="masterKey" type="xsd:string" ></xsd:attribute>

Remarks

Use a relative XPath for the masterKey attribute.

Example

The following is an example of the masterKey attribute as it is used in the masterDetail element:

<xsf:editWith caption="group2"
 xd:autogeneration="template" 
 component="xCollection">
  <xsf:masterDetail 
   masterViewContext="CTRL1_5"
   master="my:group2"
   masterKey="my:field1"
   detailKey="my:field3">
  </xsf:masterDetail>
</xsf:editWith>


Show: