2.2.4.3 ST_DataObjectEvent

Target namespace: http://schemas.microsoft.com/office/accessservices/2009/11/application

Referenced by: CT_DataMacro

A string ([XMLSCHEMA2/2] section 3.2.1) that specifies the type of event that causes a DataMacro to be called.

MUST be one of the following values.

Value

Meaning

AfterInsert

Call the macro after a new record has been added.

AfterUpdate

Call the macro after an existing record has been updated.

AfterDelete

Call the macro after an existing record has been removed.

BeforeChange

Call the macro before a new record is added or an existing record is updated.

BeforeDelete

Call the macro before an existing record is removed.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this simple type.

 <xsd:simpleType name="ST_DataObjectEvent">
   <xsd:restriction base="xsd:string">
     <xsd:minLength value="1"/>
     <xsd:maxLength value="64"/>
     <xsd:enumeration value="AfterInsert" wbld:cname="AfterInsert"/>
     <xsd:enumeration value="AfterUpdate" wbld:cname="AfterUpdate"/>
     <xsd:enumeration value="AfterDelete" wbld:cname="AfterDelete"/>
     <xsd:enumeration value="BeforeChange" wbld:cname="BeforeChange"/>
     <xsd:enumeration value="BeforeDelete" wbld:cname="BeforeDelete"/>
   </xsd:restriction>
 </xsd:simpleType>

See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).