SingleElementSpec
SingleElementSpec
- Superclass
- BasicElementSpec
- Subclasses
- DatedElementSpec
- Referenced By
- GroupedElementSpec, SeparatingElementSpec
This class specifies the valid rows of the results from a query. Not all rows, but only
those that satisfy the constraint are acceptable. The result from each row is determined
by the formula given in sumFormula. Then the result of each row is summed up to return a
final numerical value. The value, however, is kept in a BlockValue.
Instance Variables
queryValueName <String> Name of the ListQueryValue that holds the results of the queyr.
sumFormula <String | Array> The formula is specified using arrays. If a string is used, then it means that just the value of the field called that string is the result. If it is an array, then perform the arithmetic operations. Ex. #(* #(+ 'a' 'b') 'c').
constraint <ConstraintSpec> The selection criterion.
fieldNames <OrderedCollection> The field names and their order of the query.
value <ValueCollection of: BlockValue> The results returned.
Spec: #(className queryName sumFormula constraint)
Example:
QueryDataManager instance save:
(ReportElementSpecs new
application: 'aurora';
editorName: #periodCostsValues;
elementName: 'xxx';
spec: '#(#SingleElementSpec ''families'' 'familyType' nil)'.
Class Variables
none
Contacts
jku@cat.ncsa.uiuc.edu
- Potential problems with this comment:
Instance variable commented but not in class definition -
value, sumFormula, queryValueName, constraint
Instance variable not commented -
queryValue