Class actuate.parameter.NameValuePair
Description
The NameValuePair object contains a display name associated with a value.
Constructor
Syntax
actuate.parameter.NameValuePair(string name, string value)
Constructs a new NameValuePair object.
Parameters
name
String. The name to display in the selection list.
value
String. The value that selecting the name sets internally.
Function summary
Table 11‑8 lists actuate.parameter.NameValuePair functions.
Table 11‑8 actuate.parameter.NameValuePair functions 
Function
Description
getName( )
Gets the name for this NameValuePair
getValue( )
Gets the value for this NameValuePair
setName( )
Sets the name for this NameValuePair
setValue( )
Sets the value for this NameValuePair
actuate.parameter.NameValuePair.getName
Syntax
string NameValuePair.getName( )
Returns the name for this NameValuePair.
Returns
String.
Example
This sample code returns the name component of the myNVPair NameValuePair object:
alert("Name component is " + myNVPair.getName( ));
actuate.parameter.NameValuePair.getValue
Syntax
string NameValuePair.getValue( )
Returns the value for this NameValuePair.
Returns
String.
Example
This sample code returns the value component of the myNVPair NameValuePair object:
alert("Value component is " + myNVPair.getValue( ));
actuate.parameter.NameValuePair.setName
Syntax
void NameValuePair.setName(string name)
Sets the name for the NameValuePair.
Parameter
name
String.
Example
This sample code sets the name component of the myNVPair NameValuePair object to "My hometown":
myNVPair.setName("My hometown");
actuate.parameter.NameValuePair.setValue
Syntax
void NameValuePair.setValue(string value)
Sets the value for the NameValuePair.
Parameter
value
String.
Example
This sample code sets the value component of the myNVPair NameValuePair object to "Cleveland":
myNVPair.setValue("Cleveland");