CopyRowset method: XmlDoc class
Syntax
CopyRowset(&InRowset[, MessageName ][, MessageVersion])
Description
Use the CopyRowset method to copy rowset data to an XmlDoc object.
WARNING:
If the XmlDoc is not empty, the existing structure and data are replaced with the data and structure from InRowset . If MessageName is not specified, this function makes the best possible XML structure given the passed rowset. Not passing the message name should only occur when using a nonrowset-based message or when using a standalone rowset. For best performance, PeopleSoft recommends to always specify the message name.
Parameters
| Parameter | Description |
|---|---|
|
&InRowset |
Specify the variable of an already instantiated and populated rowset to copy data from. |
|
MessageName |
Specify the name of the message that the rowset belongs to, as a string. If the message name is not specified, the best possible XML structure is created. |
|
MessageVersion |
Specify the message version, as a string. If you do not specify a message version, the default message version is used. |
Returns
A Boolean value: True, the rowset data copied successfully, False otherwise.
Example
Local XmlDoc &inXMLDoc;
Local boolean &ret;
&inXMLDoc = CreateXmlDoc("");
&ret = &inXMLDoc.CopyRowset(&rs, "<insert message name>", "<insert message⇒
version");
Related Topics