Global::formGetParentDatasource Method [AX 2012]

Retrieves an instance of the FormDataSource object which is a parent data source to the specified formDataSource object.

client public static FormDataSource formGetParentDatasource(FormDataSource _formDataSource, [boolean _includeSearchInQueries])

Run On

Client

Parameters

_formDataSource
Type: FormDataSource Class
An instance of the FormDataSource object for which a parent is retrieved.
_includeSearchInQueries
Type: boolean
A Boolean value that indicates whether the search for a parent is performed also in the underlying query of the specified instance of the formDataSource object.

Return Value

Type: FormDataSource Class
A FormDataSource object that is a parent data source if one can be found; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic).

The default value for the _includeSearchInQueries parameter is false. If the specified formDataSource object is from a list page, it will typically be set to true.

Show: