Share via


AxdBase.initQueryFromQuery Method [AX 2012]

Initializes the query associated with the document based on the criteria values supplied.

Syntax

public void initQueryFromQuery(AifQueryCriteria _queryCriteria, AxdXmlWriter _axdXmlWriter)

Run On

Server

Parameters

Remarks

The values from the AifQueryCriteria Class used as a parameter are copied as query ranges on the query associated with the document. Ranges may only be specified on the root data source or any data source with inner join relations to the root data source.

This method can be overridden to provide document-specific query initialization, such as the disabling of data sources or population of the query with specific values for query ranges. This method is called from the framework for documents that support the AifActionType EnumerationqueryDocuments and QueryEntityKeys values.

See Also

Reference

AxdBase Class