proxySession

Overview

This object gives you the ability to control interactions with the proxy session. It is only for use in scripts that associated with proxy sessions.

getVariable

Object proxySession.getVariable ( String identifier )

Description

Retrieve the value of the proxy session variable.

Parameters

  • identifier Name of the session variable, as a string.

Return Values

Returns the value of the session variable.

Change Log

Version Description
4.5 Available for all editions.

Examples

Retrieve Session Variable

 // Places the proxy variable "CITY_CODE" in
 // the local variable "cityCode"

 cityCode = proxySession.getVariable( "CITY_CODE" );

See Also

  • setVariable() [proxySession] - Sets the value of a proxy session variable

log

void proxySession.log ( String message )

Description

Write to the log.

Parameters

  • message Message to be written to the log, as a string.

Return Values

Returns void.

Change Log

Version Description
4.5 Available for all editions.

Examples

Write to Log

 // Writes "Inserting request parameters into the database."
 // to the proxy session log

 proxySession.log( "Inserting request parameters into the database." );

setVariable

void proxySession.setVariable ( String identifier, Object value )

Description

Set the value of a proxy session variable.

Parameters

  • identifier Name of the session variable, as a string.
  • value The value to be assigned to the session variable.

Return Values

Returns void.

Change Log

Version Description
4.5 Available for all editions.

Examples

Set Session Variable

 // Sets the variable "CITY_CODE" in the proxySession
 // to be equal to the value of the get method of the dataSet
 proxySession.setVariable( "CITY_CODE", dataSet.get( 0, "CITY_CODE" ) );

See Also

  • getVariable() [proxySession] - Gets the value of a proxy session variable