SysOperationController.getOriginalQuery Method [AX 2012]
Gets the original query that can be used in the SysQuery form.
Syntax
protected container getOriginalQuery(str queryKey, QueryName _queryName)
Run On
Called
Parameters
- queryKey
Type: str
Key identifying the query control.
- _queryName
Type: QueryName Extended Data Type
Name of query.
Return Value
Type: container
Container with the packed query.
Remarks
Method caches the original query. If cache miss, then gets the query from AOT.
If AOT query does not have any data source, then it is being used as a place holder and the query data source is added in controller code. So we will then get the query from the data contract and use this as the original query.