EventBuildValidAlertFields Class [AX 2012]
The EventBuildValidAlertFields class is used to build a temporary TmpEventAlertField table that holds a record for each valid control in the specified FormRun on the dataset specified by the FormDataSource.
| Method | Description | |
|---|---|---|
| addEntireTableEntry | |
| build | This is the central method of the class holding the bulk of the run method. This includes initialization, traversing formRun controls, and post treatment of the inserted records. |
| buildRecursive | Recursively traverses all FormControls in the FormRun. For each control that is hosting an actual database field, the method will insert a record in the TmpEventAlertField table if the control is valid and refers to the specified FormDataSource. |
| buildTypes | |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| containerHasValidLabel | Decides whether the specified FormControl has an appropriate label for context-qualifying a field control. |
| controlId2TmpEventAlertField | Converts the ID of a FormControl into its corresponding TmpEventAlertField record. |
| entireTable2TmpEventAlertField | |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| first2TmpEventAlertField | |
| formDataSourceMap | |
| getFieldLabel | Gets the field label for the specified form control. |
| getFormControlArrIdx | Retrieves the field array index from a FormControl. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| init | Initializes the class instance and allocates the internal storage structures. |
| insertField | Inserts a record in the TmpEventAlertField table. |
| isControlBasedOnValidRecord | Tests whether a FormControl is displaying data from a valid record. |
| isControlDateEffective | Checks whether the FormControl object is date-effective. |
| isControlInCurDataset | Tests whether the FormControl is in the current dataset. |
| isControlValid | Checks whether a FormControl must be represented by using a record in the TmpEventAlertField table. |
| isControlValidDatabaseBound | Checks whether the FormControl is bound to an actual and valid database field. |
| isControlVisible | Checks whether the FormControl is visible to the user. |
| isDimensionCheckBoxField | |
| isDimensionComboBoxField | |
| isDimensionDefaultField | |
| isDimensionField | |
| isPseudoCursor | |
| label2TmpEventAlertField | Use this method to convert a field label, a UI-hosted name for a FormControl, to its corresponding TmpEventAlertField. |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| nonFieldRelatedTmpEventAlertField | |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parmFindFirstOnly | Gets or sets the FindFirstOnly parameter. |
| parmFormDataSource | Gets or sets the FormDataSource parameter. |
| parmFormRun | Gets or sets the FormRun parameter. |
| parmTmpEventAlertField | Gets or sets the TmpEventAlertField parameter. |
| run | Contains the actual updating processing of the class. The only exception from the standard implementation is that this method will not throw an error if validate returns false. |
| setAggFieldsMap | Builds a Map Class where each of the FormDataSources of the current dataset are mapped to a Set class that contains all aggregated fields in the corresponding database pointer. |
| setDataSourceMap | Collects all FormDataSources from a dataset in a Map. The ID of the FormDataSource is mapped to the actual instance. |
| setInvalidTableSet | |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| setUniquePostfix | Adds a post-fix to duplicate field labels so that users can distinguish between them. |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| validate | |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::buildTypesServer | |
| ::construct | Initializes a new instance of the EventBuildValidAlertFields class. |
| ::description | Gets the description of the class. |
| ::isControlTypeValid | |
| ::newFormDataSource |
The result of the Run method; that is, the temporary table can be retrieved by calling the EventBuildValidAlertFields.parmTmpEventAlertField method.
Only controls that are valid for creating Rules qualify.
The class contains the logic to determine whether a control is valid for creating Rules.
Community Additions
ADD
Show: