Class actuate.parameter.ParameterValue
Description
ParameterValue is a container for the value of Parameter to be passed to a report for processing. When a user sets a value in the interface, the corresponding ParameterValue must change.
Because ParameterValue is much smaller that ParameterDefinition, it is the recommended means of communicating to the server that a parameter value has changed or passing a parameter value to a viewer element. Sending an entire ParameterDefinition has a larger effect on system performance.
Constructor
Syntax
Constructs a new ParameterValue object.
Function summary
Table 4-24 lists actuate.parameter.ParameterValue functions.
Table 4-24 actuate.parameter.ParameterValue functions Gets the name of the column in this ParameterValue. Gets the data type value of the column for this ParameterValue. getName( ) Gets the promptParameter value for this ParameterValue. Gets the valueIsNull value for this ParameterValue. Gets the isViewParameter value for this ParameterValue. Sets the name of the column in this ParameterValue. Sets the data type value of the column for this ParameterValue. Sets the isViewParameter value for this ParameterValue. setName( ) Sets the promptParameter value for this ParameterValue. Sets the valueIsNull value for this ParameterValue.actuate.parameter.ParameterValue.getColumnName
Syntax
Gets the column name value for this ParameterValue. Columns are supported as part of ad hoc parameters.
Returns
String. The name of the column.
Example
To store the column name for the parameter value pvalue in a variable called columnname, use code similar to the following:
actuate.parameter.ParameterValue.getColumnType
Syntax
Gets the data type value of the column for this ParameterValue. Columns are supported as part of ad hoc parameters.
Returns
String. Possible values are: "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", "Unknown"
Example
To store the column type for the parameter value pvalue in a variable called columntype, use code similar to the following:
actuate.parameter.ParameterValue.getDataType
Syntax
Gets the dataType value for this ParameterValue.
Returns
String. Possible values are: "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", "Unknown"
Example
To store the data type for the parameter value pvalue in a variable called type, use code similar to the following:
actuate.parameter.ParameterValue.getGroup
Syntax
Gets the group value for this ParameterValue.
Returns
Example
To store the group that the parameter value pvalue belongs to in a variable called group, use code similar to the following:
actuate.parameter.ParameterValue.getName
Syntax
Gets the name value for this ParameterValue.
Returns
Example
To store the name of the parameter value pvalue in a variable called name, use code similar to the following:
actuate.parameter.ParameterValue.getPosition
Syntax
Gets the position value for this ParameterValue.
Returns
Example
To save the position of the parameter value pvalue in the parameter list to a variable called pos, use code similar to the following:
actuate.parameter.ParameterValue.getPromptParameter
Syntax
Gets the promptParameter value for this ParameterValue.
Returns
Example
To store the prompt parameter of the parameter value pvalue in a variable called prompt, use code similar to the following:
actuate.parameter.ParameterValue.getValue
Syntax
string[ ] ParameterValue.getValue( )Gets the value values for this ParameterValue.
Returns
String or array of strings. The value or values of this ParameterValue object.
Example
To store the value of the parameter value pvalue in a variable called value, use code similar to the following:
actuate.parameter.ParameterValue.getValueIsNull
Syntax
Gets the valueIsNull value for this ParameterValue.
Returns
Boolean. True indicates that this ParameterValue is null.
Example
To alert the user that the value of the parameter value pvalue is null, use code similar to the following:
actuate.parameter.ParameterValue.isViewParameter
Syntax
Gets the isViewParameter value for this ParameterValue.
Returns
Boolean. True indicates that this ParameterValue is visible.
Example
To set specific help text for the parameter value pvalue if it is a view-time parameter, use code similar to the following:
actuate.parameter.ParameterValue.setColumnName
Syntax
Sets the column name value for this ParameterValue.
Parameters
Example
To set the column name for the parameter value pvalue to Year, use code similar to the following:
actuate.parameter.ParameterValue.setColumnType
Syntax
Sets the data type of the column for this ParameterValue. Used for queries.
Parameters
String. Possible values are: "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", "Unknown"
Example
To set the column type for the parameter value pvalue to Date, use code similar to the following:
actuate.parameter.ParameterValue.setDataType
Syntax
Sets the dataType value for this ParameterValue.
Parameters
String. Possible values are: "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", "Unknown"
Example
To set the data type for the parameter value pvalue to Date, use code similar to the following:
actuate.parameter.ParameterValue.setGroup
Syntax
Sets the group value for this ParameterValue.
Parameters
Example
To set the group for the parameter value pvalue to Customer Details, use code similar to the following:
actuate.parameter.ParameterValue.setIsViewParameter
Syntax
Sets the isViewParameter value for this ParameterValue.
Parameters
Example
To make the parameter value pvalue into a view-time parameter, use code similar to the following:
actuate.parameter.ParameterValue.setName
Syntax
Sets the name value for this ParameterValue.
Parameters
Example
To set the name of the parameter value pvalue to Year, use code similar to the following:
actuate.parameter.ParameterValue.setPosition
Syntax
Sets the position value for this ParameterValue.
Parameters
Example
To move the parameter value pvalue one place farther down in the parameter list, use code similar to the following:
actuate.parameter.ParameterValue.setPromptParameter
Syntax
Sets the promptParameter value for this ParameterValue.
Parameters
Example
To set the parameter value pvalue to not prompt the user, use code similar to the following:
actuate.parameter.ParameterValue.setValue
Syntax
void ParameterValue.setValue(string[ ] value)Sets the value or values for this ParameterValue.
Parameters
Example
To set the value of the parameter value pvalue to 2010, use code similar to the following:
To set the values of the ParameterValue object pvalues to 2008, 2009, and 2010, use code similar to the following:
actuate.parameter.ParameterValue.setValueIsNull
Syntax
Sets the valueIsNull value for this ParameterValue.
Parameters
Example
To set the value of parameter value pvalue to null, use code similar to the following:
(c) Copyright Actuate Corporation 2011 |
![]() |