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.Table 4-25 lists actuate.parameter.ParameterValue functions.
Table 4-25 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 ParameterValueGets the column name value for this ParameterValue. Columns are supported as part of ad hoc parameters.To store the column name for the parameter value pvalue in a variable called columnname, use code similar to the following:Gets the data type value of the column for this ParameterValue. Columns are supported as part of ad hoc parameters.String. Possible values are null, "", "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", and "Unknown".To store the column type for the parameter value pvalue in a variable called columntype, use code similar to the following:String. Possible values are null, "", "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", and "Unknown".To store the data type for the parameter value pvalue in a variable called type, use code similar to the following:To store the displayed name of the parameter value pvalue in a variable called displayedName, use code similar to the following:To store the group that the parameter value pvalue belongs to in a variable called group, use code similar to the following:To store the name of the parameter value pvalue in a variable called name, use code similar to the following: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.getPromptParameterTo store the prompt parameter of the parameter value pvalue in a variable called prompt, use code similar to the following:string[ ] ParameterValue.getValue( )To store the value of the parameter value pvalue in a variable called value, use code similar to the following:To alert the user that the value of the parameter value pvalue is null, use code similar to the following:To set specific help text for the parameter value pvalue if it is a view-time parameter, use code similar to the following:String. Possible values are "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", and "Unknown".String. Possible values are "Currency", "Date", "DateOnly", "Time", "Double", "Integer", "String", "Boolean", "Structure", "Table", and "Unknown".To set the group for the parameter value pvalue to Customer Details, use code similar to the following:actuate.parameter.ParameterValue.setIsViewParameterTo move the parameter value pvalue one place farther down in the parameter list, use code similar to the following:actuate.parameter.ParameterValue.setPromptParametervoid ParameterValue.setValue(string[ ] value)To set the values of the ParameterValue object pvalues to 2008, 2009, and 2010, use code similar to the following:
|
|
Copyright Actuate Corporation 2012 |