QueryBuildDataSource.addRange Method [AX 2012]

Adds a range to the data source.

public QueryBuildRange addRange(
    FieldId field, 
   [int arrayIndex, 
    QueryRangeType rangeType])

Run On

Called

Parameters

field
Type: FieldId Extended Data Type
The field that is used to delineate values in the range.
arrayIndex
Type: int
rangeType
Type: QueryRangeType Enumeration

Return Value

Type: QueryBuildRange Class
A new range for the data source.

Ranges define the values that records from the data source's table must satisfy.

Several range values can exist for the same field in a particular data source. In this case, the values are included in the query if the record qualifies for any of the values that are supplied. When ranges are included for multiple fields, only records that satisfy the constraints that are supplied by both criteria are included. The constraints are specified in the value method.

Community Additions

ADD
Show: