Representing qualifications with structures
Structures that represent any qualification - ARQualifierStruct
Structures that represent any qualification - ARFieldValueOrArithStruct
You can also use the following functions to manipulate ARQualifierStruct:
- ARDecodeARQualifierStruct - Converts information in a serialized qualification string into an ARQualifierStruct structure.
- AREncodeARQualifierStruct - Converts an ARQualifierStruct structure into a serialized qualifier string.
The ARQualifierStruct structure has the following elements:
If a query has no qualification criteria, you can either set the operation type to zero (AR_COND_OP_NONE) or pass NULL for the qualifier parameter.
Dynamic qualifications
Dynamic qualifications take part of the qualification condition from a field whose contents can change. The part of the qualification in a field uses the AR_COND_OP_FROM_FIELD tag. The value supplied is the ID of the field that contains the qualification.
Qualifications that use conditional operators
Qualifications that use the AND or OR operators require two operands. Qualifications that use the NOT operator require one operand. In both cases, the operands consist of pointers to nested ARQualifierStruct structures.
Qualifications that use relational operators
Qualifications that use a relational operator require one operand consisting of a pointer to an ARRelOpStruct structure. The ARRelOpStruct structure has a tag specifying the operation type and the following operands, which specify the values to compare:
Defining operands for a relational operation
The ARFieldValueOrArithStruct structure represents the values to compare in a relational operation. This structure has the following elements:
Defining an arithmetic result value
ARArithOpStruct represents the result value from an arithmetic operation. Similar to ARRelOpStruct (see Qualifications that use relational operators), this structure has a tag specifying the operation type and two operands specifying the values:
Defining a status history value
The Status History core field is a special selection field that stores user and time stamp information for each of the defined status values. To specify a value for this field, use the ARStatHistoryValue structure. This structure has the following elements:
Defining a currency field part
Currency fields consist of several parts that combine to represent a complete currency value. To specify an individual part from this field type or to reference the entire field, use the ARCurrencyPartStruct structure. This structure has the following elements: