actuate.parameter.ConvertUtility encodes multiple actuate.parameter.ParameterValue objects into an array of generic objects. For multi-clue or ad hoc parameters, use the array of generic objects as the input parameter for actuate.Viewer.setParameterValues.Table 4-20 lists actuate.parameter.ConvertUtility functions.
Table 4-20 convert( ) Converts ParameterValues into an array of generic objects. The callback function takes the array as an argument.Function. The callback function to call after converting the results. The callback function must take the generic array of objects as an argument.This example stores the name-value pair array for myParamValues in a variable called nameValueArray:Function. An optional function to call when this function completes. The callback function receives an array of actuate.parameter.ParameterValue objects as a parameter.This example converts the name-value pair array for myParamValues and stores the results in a variable called nameValueArray: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.This example stores the array of ParameterValue objects for myParamValues in a variable called paramValues:
|
|
Copyright Actuate Corporation 2012 |