
Inserting a formula, summary, parameter or a WHERE portion
The following methods are used to insert a summary, formula, or parameter into a catalog and to return true if the specified object is inserted successfully, otherwise false if there is a failure:
- set(String handle, SummaryInfo info)
- set(String handle, FormulaInfo info)
- set(String handle, ParameterInfo info)
Parameters
- handle - The handle of the specified object, which is obtained from the method for inserting an object.
- info - The object information. For a summary, it includes the summary name, description, function type, the field name calculated on and the field name grouped by. For a formula, it includes the formula name, description and expression. For a parameter, it includes the parameter name, description, prompt information, the parameter data type and the default value.
The following methods can also be used to insert a formula, summary, parameter or a WHERE portion, but they are now deprecated.
- insert(String formulaName, String desc, String expression)
Inserts a new formula into a catalog and returns the handle of the newly inserted formula.
- insert(String summaryName, String desc, int functionType, String fieldName, String groupByFld)
Inserts a new summary into a catalog and returns the handle of the newly inserted summary.
- insert(String parameterName, String desc, String prompt, String type, String default Value)
Inserts a new parameter into a catalog and returns the handle of the newly inserted parameter.
- insert(String wherePortionName, String desc, WherePortionInfo whereportionInfo)
Inserts a WHERE portion into a catalog and returns the handle of the newly inserted WHERE portion.
Parameters
- formulaName - The name of the formula.
- desc - The description of the object.
- expression - The expression.
- summaryName - The name of the summary.
- functionType - The type of the function.
- fieldName - The field name calculated on.
- groupByFld - The field name grouped by.
- parameterName - The parameter Name.
- prompt - The input text prompt.
- type - The parameter data type.
- defaultValue - The defaultValue of the parameter.
- wherePortionName - The WHERE portion name.
- whereportionInfo - The WHERE portion information.
