Target namespace: http://schemas.microsoft.com/office/word/2010/wordml
A CT_EMPTY element (as specified in [ISO/IEC29500-1:2011] section A.1) that specifies that the parent structured document tag (as specified in [ISO/IEC29500-1:2011] section 17.5.2) allows the user to select an instance of an external content type when displayed in the document. See section 2.2.3 for how the entityPicker element integrates with ISO/IEC-29500-1.
The parent structured document tag MUST contain content that is valid within a text element (as specified in [ISO/IEC29500-1:2011] section 126.96.36.199), and MUST contain a dataBinding element (as specified in [ISO/IEC29500-1:2011] section 188.8.131.52).
The WordprocessingML document MUST contain a custom XML data part whose root namespace is "http://schemas.microsoft.com/office/2006/metadata/properties", and whose identifier (as specified by [ISO/IEC29500-1:2011] section 184.108.40.206) matches the value specified by the storeItemID attribute on the dataBinding element of the structured document tag containing the entityPicker element. The xpath attribute on the dataBinding element MUST specify the path to an element within that custom XML data part.
The document MUST also contain a custom XML data part whose root namespace is "http://schemas.microsoft.com/office/2006/metadata/contentType". This custom XML data part contains a schema element (in the "http://www.w3.org/2001/XMLSchema" namespace) that specifies an XML Schema for the element specified by the xpath attribute of the dataBinding element of the entityPicker. The rest of this section refers to this schema as the element schema.
The element schema specifies four attributes, each with a fixed value:
SystemInstance: Specifies the LobSystemInstance name.
EntityNamespace: Specifies the Entity namespace.
EntityName: Specifies the Entity name.
BdcField: Specifies the name of the Field within the EntityInstance.
Together with the location of the document, these values specify the external content type that the user is selecting one or more instances of.
The element schema further specifies three more attributes, each with a fixed value, which collectively specify where to place the EntityInstanceId, and the Field values resulting from the user’s selection:
RelatedFieldWssStaticName: Specifies a sibling of the XML element specified by the xpath attribute of the dataBinding element mentioned earlier. The text of this element MUST be set to the EntityInstance Identifier obtained from user choosing an instance of the external content type.
SecondaryFieldBdcNames: Specifies a list of names of Fields within the EntityInstance (the fields whose values resulted from user’s choice). The list MUST contain the same number of names as the SecondaryFieldsWssStaticNames attribute.
SecondaryFieldsWssStaticNames: Specifies a corresponding list of names of XML elements that are siblings of the XML element specified by the xpath attribute of the dataBinding element mentioned earlier. The list MUST contain the same number of names as the SecondaryFieldBdcNames attribute.
The value (resulting from the user’s choice) of each one of the Fields within the EntityInstance specified by SecondaryFieldBdcNames MUST be set as the text of the XML element whose name appears at the same index in SecondaryFieldsWssStaticNames.
The list of names specified by SecondaryFieldBdcNames and SecondaryFieldsWssStaticNames MUST be encoded as follows:
Start with an empty string.
For each name, append the length of the name, plus one, as a base-10 integer, each value followed by a single space character.
The names are then appended to the string, in the same order in which their lengths were added in step 2, followed by a single space character.
The zero-based character position of where the first name begins in the string is then appended to the string.
Finally, the resulting string is escaped as specified by [RFC3986].
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.
<xsd:element name="entityPicker" type="w:CT_Empty"/>