master Attribute

Microsoft Office InfoPath

Show All Show All

master Attribute

Contains the XPath of the XML fragment that is bound to a master table or section.

Type

xsd:string

Parent Elements

Element Description
masterDetail Defines the XML fragments that form a master and detail relationship in a view's repeating tables or repeating sections.

Definition

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

Remarks

Use a relative XPath for the master attribute.

Note  This item is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.

Example

The following is an example of the master 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>