Returns an object containing the names and values of the user-defined properties defined in the current JSDO instance.

Return type: Object

Applies to: progress.data.JSDO class

Syntax

getProperties ( )

Example

The following code fragment replaces any existing user-defined properties in jsdoCustOrders with the two user-defined properties, "prop1" and "prop2". It then calls getProperties( ) to return an object containing all the JSDO's user-defined properties ("prop1" and "prop2") and writes their values to the console log:

jsdoCustOrders = new progress.data.JSDO(. . .);

jsdoCustOrders.setProperties({"prop1", 100, "prop2", 500});
var props = jsdoCustOrders.getProperties();
console.log("prop1: " + props.prop1);
console.log("prop2: " + props.prop2);

The output from the console.log statements in this example appear as follows:

prop1: 100
prop2: 500

See also:

getProperty( ) method, setProperties( ) method