Class actuate.parameter.ParameterData
Description
The ParameterData class is a high-level wrapper for an actuate.parameter.ParameterDefinition object.
Constructor
Syntax
Constructs a new ParameterData object.
Parameters
String. The name of the report where the parameter definition originates.
actuate.parameter.ParameterDefinition object. The parameter definition set for this parameter data object.
Function summary
Table 4-22 lists the actuate.parameter.ParameterData functions.
Table 4-22 actuate.parameter.ParameterData functions Returns the default value for this ParameterData object. Returns the list of name-value pairs for this ParameterData object Returns the parameter name for this ParameterData object. Returns the filter-based suggestion list for this ParameterData object. isAdhoc( )actuate.parameter.ParameterData.getCascading
ParentValuesSyntax
actuate.parameter.ParameterValue[ ] ParameterData.getCascadingParentValues( actuate.parameter.ParameterValue[ ] parentValues)Returns the cascading parent value.
Parameters
An array of actuate.parameter.ParameterValue objects. This array is the one to be populated.
Returns
An array of actuate.parameter.ParameterValue objects. This is the input array populated with the cascading parent values
Example
This sample code returns a storage array of actuate.parameter.ParameterValue objects representing the cascading parent values.
actuate.parameter.ParameterData.getChildData
Syntax
Returns the child ParameterData object.
Returns
actuate.parameter.ParameterData object.
Example
This sample code calls getChildData( ) to assign the child ParameterData object to the myChildData variable.
actuate.parameter.ParameterData.getControlType
Syntax
Returns the controlType UI value for this ParameterData object.
Returns
String. The controlType UI value. Legal controlType UI values are:
nExample
This sample code displays the controlType UI value for the myParamData object in an alert box.
actuate.parameter.ParameterData.getCurrentValue
Syntax
Returns the current UI value set by the UI control.
Returns
actuate.parameter.ParameterValue. This function returns null when the UI control has not set a value.
Example
This sample code calls getCurrentValue( ) to assign the current UI value to the myCurrVal variable.
actuate.parameter.ParameterData.getDefaultValue
Syntax
Returns the default value for this ParameterData object. Returns null when the default value is null.
Returns
Example
This sample code displays the default value for the myParamData object in an alert box.
actuate.parameter.ParameterData.getHelpText
Syntax
Returns the help text for this ParameterData object.
Returns
Example
This sample code displays the help text for the myParamData object in an alert box.
actuate.parameter.ParameterData.getNameValueList
Syntax
actuate.parameter.NameValuePair[ ] ParameterData.getNameValueList( )Returns the list of name-value pairs for this ParameterData object.
Returns
Array of actuate.parameter.NameValuePair objects.
Example
This example stores the array of NameValuePair objects for the myParamValues object in a variable called myNVList.
actuate.parameter.ParameterData.getParameterName
Syntax
Returns the parameter name for this ParameterData object.
Returns
Example
This sample code displays the parameter name for the myParamData object in an alert box.
actuate.parameter.ParameterData.getParentData
Syntax
Returns the parent ParameterData object.
Returns
actuate.parameter.ParameterData object.
Example
This sample code calls getParentData( ) to assign this ParameterData object’s parent ParameterData object to the myParentData variable.
actuate.parameter.ParameterData.getPickList
Syntax
actuate.parameter.ParameterValue[ ] ParameterData.getPickList(function callback)Parameters
Function. An optional function to call when this function completes. This function receives the following parameters:
Returns
An array of actuate.parameter.ParameterValue objects.
Example
This sample code uses the callback function runNext( ) to display the pick list’s total left over count in an alert box and assigns the array of NameValuePair objects to the pickListNVPairs variable.
actuate.parameter.ParameterData.getPromptText
Syntax
Returns the prompt text for this ParameterData object.
Returns
Example
This sample code displays the prompt text for the myParamData object in an alert box.
actuate.parameter.ParameterData.getSuggestionList
Syntax
string[ ] ParameterData.getSuggestionList(function callback, string)Returns the filter-based suggestion list for this ParameterData object.
Parameters
Function. An optional function to call when this function completes. This function receives an array of actuate.parameter.NameValuePair objects as a parameter.
String. The filter for the suggestion list.
Example
This sample code uses the string "Trucks" to callback function runNext( ) to filter the suggestion list and assigns the filtered NameValuePair objects to the mySuggestions variable.
actuate.parameter.ParameterData.isAdhoc
Syntax
Returns true when this parameter is ad-hoc.
Returns
Boolean. True when this parameter is ad-hoc.
Example
This example displays the ad-hoc status of a parameter in an alert box.
actuate.parameter.ParameterData.isCascading
ParameterSyntax
Returns true when this parameter is a cascading parameter.
Returns
Boolean. True when this parameter is a cascading parameter.
Example
This example displays the cascading parameter status of a parameter in an alert box.
actuate.parameter.ParameterData.isDynamicFilter
Syntax
Returns true when this parameter is a dynamic filter.
Returns
Boolean. True when this parameter is a dynamic filter.
Example
This example displays the dynamic filter status of a parameter in an alert box.
actuate.parameter.ParameterData.isMultiList
Syntax
Returns true when this parameter is shown as a multi-list UI element.
Returns
Boolean. True when this parameter is shown as a multi-list UI element.
Example
This example displays the multi-list UI element status of a parameter in an alert box.
actuate.parameter.ParameterData.isRequired
Syntax
Returns true when this parameter is required.
Returns
Boolean. True when this parameter is required.
Example
This example displays the required status of a parameter in an alert box.
actuate.parameter.ParameterData.setChildData
Syntax
Indicates that the parameter data contains a child.
Parameters
An actuate.parameter.ParameterData object that contains the child for this ParameterData object.
Example
This sample code sets the ParameterData object myChildData as the child of the ParameterData object myParamData.
actuate.parameter.ParameterData.setCurrentValue
Syntax
Sets the UI value of the UI control. When a UI value changes, UIControl calls this method to update the ParameterData object.
Parameters
An actuate.parameter.ParameterValue object set by the UI.
Example
This sample code sets the ParameterValue object myValue as the value of the ParameterData object myParamData.
actuate.parameter.ParameterData.setParentData
Syntax
Indicates that the parameter data contains a parent.
Parameters
An actuate.parameter.ParameterData object that contains the parent for this ParameterData object.
Example
This sample code sets the ParameterData object myParentData as the parent of the ParameterData object myParamData.
actuate.parameter.ParameterData.setWebService
Syntax
Defines a web service to send SOAP messages.
Parameters
(c) Copyright Actuate Corporation 2011 |
![]() |