/** * Adds a calculated field to the output of this group clause using a static value * @param outputFieldName The name of the output field * @param op The operator to apply to the selected variable field * @param value A value to be used with the operator */ public void AddGroupFormulaForValue(string outputFieldName, CBDataAggregationGroupOperator op, string value) { Dictionary<string, string> newOperator = new Dictionary<string, string>(); newOperator.Add(CBDataAggregationGroupOperator_ToString[(int)op], value); this.groupFields.Add(outputFieldName, newOperator); }
/** * Adds a calculated field to the output of this group clause using the value of another field * @param outputFieldName The name of the output field * @param operator The operator to apply to the selected variable field * @param fieldName The name of the variable field to be used with the operator */ public void AddGroupFormulaForField(string outputFieldName, CBDataAggregationGroupOperator op, string fieldName) { this.AddGroupFormulaForValue(outputFieldName, op, "$" + fieldName); }