Share via


InventSum::newQuery Method

Creates a query to find on hand for the specified parameters.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          client server public static Query newQuery(
            Query _query, 
            ItemId _itemId, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParmCriteria, 
            InventDimParm _inventDimParmGroupBy, 
           [List _dimFields, 
            boolean _onlyIncludeCWItems, 
            boolean _addSumFields])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static Query newQuery(
            Query _query, 
            ItemId _itemId, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParmCriteria, 
            InventDimParm _inventDimParmGroupBy, 
           [List _dimFields, 
            boolean _onlyIncludeCWItems, 
            boolean _addSumFields])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static Query newQuery(
            Query _query, 
            ItemId _itemId, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParmCriteria, 
            InventDimParm _inventDimParmGroupBy, 
           [List _dimFields, 
            boolean _onlyIncludeCWItems])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static Query newQuery(
            Query _query, 
            ItemId _itemId, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParmCriteria, 
            InventDimParm _inventDimParmGroupBy, 
           [List _dimFields])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static Query newQuery(
            Query _query, 
            ItemId _itemId, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParmCriteria, 
            InventDimParm _inventDimParmGroupBy, 
           [List _dimFields])

Run On

ClientOrServer

Parameters

  • _query
    Type: Query Class
    The query to extend. Can be null.
  • _inventDimCriteria
    Type: InventDim Table
    The inventory dimensions to limit to.
  • _inventDimParmCriteria
    Type: InventDimParm Table
    Identification of which dimensions to limit to.
  • _inventDimParmGroupBy
    Type: InventDimParm Table
    Identification of which dimensions to group the result by.
  • _dimFields
    Type: List Class
    The list of inventory dimension fields to be be specified for performance reasons. Optional.
  • _onlyIncludeCWItems
    Type: boolean
    true if only catch weight items should be included; otherwise false. Optional.
  • _addSumFields
    Type: boolean
    true if all quantity and value fields from InventSum should be added as summation fields; otherwise, false. Optional

Return Value

Type: Query Class
A query.

See Also

Reference

InventSum Table