AxdPurchaseRequisition.initQueryFromQuery Method [AX 2012]
Initializes the query associated with the document based on the specified criteria values.
Syntax
public void initQueryFromQuery(AifQueryCriteria _queryCriteria, AxdXmlWriter _axdXmlWriter)
Run On
Server
Parameters
- _queryCriteria
Type: AifQueryCriteria Class
The criteria to use to initialize the query.
- _axdXmlWriter
Type: AxdXmlWriter Class
The Xml writer that contains a schema to validate the query criteria elements against.
Remarks
The values from the AifQueryCriteria class in the _queryCriteria parameter are copied as query ranges on the query that are 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 is called from the framework for documents that support the AifActionType::queryDocuments and AifActionType::QueryEntityKeys enumeration values.