Class: HTML
Description
This method adds the data and columns of a resultSet into an XML document in the same format as the HTML.addProp method.
Syntax
htmlObject.addRow(String label, ResultSet resultSet)
Parameters
label |
The label named in addElement that corresponds to the data being added. |
resultSet |
A Result Set object name for which the retrieved data should be added to the XML document. |
Returns
An updated XML formatted string containing the data retrieved in a resultSet.
When Became Available
v6.4
Example
type HTML xx = Class.new("HTML")
type ResultSet rs = Db.select("CID,IRN,BAL,MDT","DEP","CID=:CID")
if 'rs.isEmpty() while rs.next() set return = xx.addRow("DEP",.rs)
____________________________________________________________
This method will add the following information to the return variable:
<DEP>
<CID>7</CID>
<IRN>17.00000</IRN>
<BAL>25.23</BAL>
<MDT>56789</MDT>
</DEP>