Share via


EventBuildValidAlertFields.setDataSourceMap Method [AX 2012]

Collects all FormDataSources from a dataset in a Map. The ID of the FormDataSource is mapped to the actual instance.

Syntax

protected void setDataSourceMap()

Run On

Client

Remarks

The input to this method is the class variable formDataSource.

In Microsoft Dynamics AX, several records can be presented as one record in a form. This is accomplished by joining multiple tables into one dataset. From a user's perspective, it all resembles one record, even though data is retrieved from several FormDataSources. This also means that the final list of valid fields must be found among the fields on all FormDataSources in the dataset.

The Map Class (formDataSourceMap) is established during initialization of the class and is used later during processing.

See Also

EventBuildValidAlertFields Class

FormDataSource Class

Map Class