EventBuildValidAlertFields.isControlBasedOnValidRecord Method [AX 2012]
Tests whether a FormControl is displaying data from a valid record.
Syntax
protected boolean isControlBasedOnValidRecord(Object _formControl)
Run On
Client
Parameters
- _formControl
Type: Object Class
The FormControl to check.
Return Value
Type: boolean
true if the FormControl is displaying data from a valid record; otherwise, false.
Remarks
The following can disqualify the FormControl:
If the FormDataSource on the FormControl is not part of the current dataset. The current dataset can consist on multiple FormDataSources; this is when data sources are joined and presented as one record on the UI. See also EventBuildValidAlertFields.setDataSourceMap Method.
If the pointer does not point to a TableId.
If the pointer is a temporary record; that is, pointing to a temporary table.
If the table pointed out by the pointer is in the list of invalid tables. See also EventRule::a4aInvalidTables Method.