Export (0) Print
Expand All
Expand Minimize

masterDetail Element

Office 2007

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

Type

xsd:complexType

Child Elements

None.

Attributes

AttributeTypeRequiredDescriptionPossible Values
master
xsd:string
NoContains the XPath of the XML fragment that is bound to a master table or section.string
xsd:string
masterViewContext
xsd:string
NoSpecifies a string that identifies an HTML element in the view.string
xsd:string
masterKey
xsd:string
NoContains the XPath of the field in the master XML fragment that forms the relationship to the detail XML fragment.string
xsd:string
detailKey
xsd:string
NoContains the XPath of the field in the detail XML fragment that forms the relationship to the master XML fragment.string
xsd:string

Definition

<xsd:element name="masterDetail" >
  <xsd:complexType>
    <xsd:attribute name="master" type="xsd:string"></xsd:attribute>
    <xsd:attribute name="masterViewContext" type="xsd:string"></xsd:attribute>
    <xsd:attribute name="masterKey" type="xsd:string"></xsd:attribute>
    <xsd:attribute name="detailKey" type="xsd:string"></xsd:attribute>
  </xsd:complexType>
</xsd:element>

Remarks

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will prevent the form template from being deployed to the server as a browser-compatible form.

Example

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


Community Additions

ADD
Show:
© 2014 Microsoft