SetRowSetData method: PSEvent class

Syntax

SetRowSetData(&rowset)

Description

Use the SetRowSetData method to set a Rowset object as the data for the notification.

Note:

Notification data can be represented as either key-value pairs or as a rowset, not both. The event definition on the Define Server Side Events page determines the type of data for the notification and therefore the Setxxx method to be used.

Parameters

Parameter Description

&rowset

An already instantiated Rowset object, which acts as the notification data.

Returns

A Boolean value: True if the method completes successfully, False otherwise.

Example

The following example sets rowset data from the QE_CHART_RECORD record.

Local Rowset &oRowset;
&oRowset = CreateRowset(Record.QE_CHART_RECORD);
&oRowset.Fill("where QE_CHART_REGION= :1", "MIDWEST");
&EventObject.SetRowSetData(&oRowset);