Syntax

AddRowset(name, rowset)

Description

Use this method to add a Rowset object to the JSON Object.

Parameters

Name Description
name Specifies the name of the rowset that needs to be added as a string.
rowset Specifies the rowset to add to the JSON Object as a Rowset object.

Returns

None.

Example

Local Rowset &rsOperDefn = CreateRowset(Record.PSOPRDEFN);
&rsOperDefn.Fill("WHERE OPRID = 'PS'");
   
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddRowset("MyRowset", &rsOperDefn);