DataSetRun.addDataSource Method [AX 2012]

Adds a new data source to the dataSetRun class.

public FormDataSource addDataSource(
    TableId tableId, 
   [str joinDataSourceName, 
    DataSourceLinkTypePropertyValues linkType, 
    FieldId joinFieldId, 
    str newDataSourceName])

Run On

Client

Parameters

tableId
Type: TableId Extended Data Type
The table ID for the new data source.
joinDataSourceName
Type: str
The name of the data source in the dataSetRun class to join the new data source to.
linkType
Type: DataSourceLinkTypePropertyValues Enumeration
The type of link for the join.
joinFieldId
Type: FieldId Extended Data Type
The field ID to join to.
newDataSourceName
Type: str
The name of the new data source.

Return Value

Type: FormDataSource Class
The new data source.

Community Additions

ADD
Show: