Syntax
AddRow(name, row)
Description
Use this method to add a Row object to the JSON Object.
Parameters
Name | Description |
---|---|
name | Specifies the name of the row that needs to be added as a string. |
row | Specifies the row to add to the JSON Object as a Row object. |
Returns
None.
Example
Local Rowset &rsOperDefn = CreateRowset(Record.PSOPRDEFN);
&rsOperDefn.Fill("WHERE OPRID = 'PS'");
Local Row &rOperDefn = &rsOperDefn.GetRow(1);
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
&oObject.AddRow("MyRow", &rOperDefn);