2.2.4.12 ST_UserInterfaceObjectEvent
Target namespace: http://schemas.microsoft.com/office/accessservices/2010/12/application
Referenced by: CT_UserInterfaceMacro
A string ([XMLSCHEMA2] section 3.2.1) that specifies the type of event that causes a macro (section 2.1.2) to be called.
The value MUST be one of the events that is supported by the form or by the type of control that is specified by the For attribute of the CT_UserInterfaceMacro (section 2.2.3.43) element.
The following table lists the valid events for form and control types. Any control types not listed have no valid events.
Control type |
Valid events |
---|---|
Form |
OnLoad, OnCurrent |
Text Box / Multiline Textbox |
OnClick, AfterUpdate |
Button |
OnClick |
Combo Box |
AfterUpdate |
Label |
OnClick |
Image |
OnClick |
Autocomplete Control |
OnClick, AfterUpdate |
Check Box |
AfterUpdate |
Hyperlink Control |
OnClick, AfterUpdate |
The following table lists the meaning of each event.
Value |
Meaning |
---|---|
OnClick |
|
onclick |
|
AfterUpdate |
|
afterupdate |
|
OnCurrent |
|
oncurrent |
|
OnLoad |
|
onload |
The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this simple type.
-
<xsd:simpleType name="ST_UserInterfaceObjectEvent"> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="64"/> <xsd:enumeration value="OnClick" wbld:cname="OnClick"/> <xsd:enumeration value="onclick" wbld:cname="onclick"/> <xsd:enumeration value="AfterUpdate" wbld:cname="AfterUpdate"/> <xsd:enumeration value="afterupdate" wbld:cname="afterupdate"/> <xsd:enumeration value="OnCurrent" wbld:cname="OnCurrent"/> <xsd:enumeration value="oncurrent" wbld:cname="oncurrent"/> <xsd:enumeration value="OnLoad" wbld:cname="OnLoad"/> <xsd:enumeration value="onload" wbld:cname="onload"/> </xsd:restriction> </xsd:simpleType>
See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).