< Day Day Up > |
The DocActionEvent ObjectThe DocActionEvent object is used during the handling of the OnClick event of the InfoPath button form control. The eventObj that is the argument to the OnClick event has an XDocument property that can be used to access or manipulate any part of the form's interface or data. To learn more about the OnClick event, see "The OnClick Event," p. 343 (Chapter 19). DocActionEvent Object MethodsThe DocActionEvent object has no methods. DocActionEvent Object PropertiesThe properties of the DocActionEvent object are available only during the OnClick event. The DocActionEvent object has three properties:
The DocActionEvent.xsn form template demonstrates how these properties can be used in response to the firing of the OnClick event. Figure 18.2 uses the XDocument.UI.Alert() method to display eventObj.Source.xml , which displays the XML in the data source that surrounds the field corresponding to the button form control, and eventObj.XDocument.View. Name to display the name of the current view. Figure 18.2. Using eventObj.Source.xml to display a secondary data source.
|
< Day Day Up > |