JSDO properties, methods, and events reference : setProperty( ) method
  

setProperty( ) method

Note: Applies to Progress Data Objects Version 4.3 or later.
Sets the value of the specified JSDO user-defined property.
Return type: null
Applies to: progress.data.JSDO class

Syntax

setProperty ( name [ , value ] )
name
The name of a user-defined property to define in the current JSDO.
value
The value, if any, to set for the user-defined name property in the JSDO.
This method either defines a new user-defined property or updates an existing user-defined property definition in the JSDO. If value is not defined (or set to undefined), any existing name property definition is removed from the JSDO.
Note: Any user-defined property you create with name set to "server.count" has a reserved usage in JSDO plugins. For more information, see the description of the responseMapping function that you can define using the addPlugin( ) method.

Example

The following code fragment sets the "prop1" and "prop2" user-defined properties in jsdoCustOrders to the values, "12345" and 100, respectively:
jsdoCustOrders = new progress.data.JSDO(. . .);

jsdoCustOrders.setProperty("prop1", "12345");
jsdoCustOrders.setProperty("prop2", 100);

See also:

addPlugin( ) method, getProperty( ) method, setProperties( ) method