actuate.parameter.ConvertUtility encodes multiple actuate.parameter.ParameterValue objects into an array of generic objects. For multi-clue or dynamic filter parameters, use the array of generic objects as the input parameter for actuate.Viewer.setParameterValues.
Converts locale-neutral parameter values to the user’s login locale.
Parameter
callback
Function. An optional function to call when this function completes. The callback function receives an array of actuate.parameter.ParameterValue objects as a parameter.
Example
This example converts the name-value pair array for myParamValues and stores the results in a variable called nameValueArray:
var nameValueArray = new Array( );
var converter = new actuate.ConvertUtility(myParamValues)
converter.convertDate(callback);
function callback (values){
nameValueArray = values;
}
getParameterMap
Syntax
object ConvertUtility.getParameterMap( )
Returns the parameters as an associative array. This function makes the name of each parameter an object property and sets the value of that property to the associated parameter value.
Returns
Object.
Example
This example stores the associative array for myParamValues in a variable called nameValueArray:
var paramMap = new Object( );
var converter = new actuate.ConvertUtility(myParamValues)