Share via


InventOnHandQuery::newFromSysQuery Method [AX 2012]

Creates a new instance of the InventOnHandQuery class based on the specified query.

Syntax

client server public static InventOnHandQuery newFromSysQuery(Query _onHandQuery)

Run On

Called

Parameters

Return Value

Type: InventOnHandQuery Class
A new instance of the InventOnHandQuery class based on the specified query.

Exceptions

Exception Condition
Error

Throws an error if the query is not specified.

-or-

Throws an error if the specified query is not recognized as an on hand query.

See Also

Reference

InventOnHandQuery Class