addList Method

Class: HTML

Description

This method is used to append multiple column and data lines to an XML document.

Syntax

htmlObject.addList(String label, String columnList,

String dataList, String delimiter)

Parameters

label

The label to append to the record to indicate that the data following is consistent with a particular element type.

columnList

A comma-separated list of columns (attributes) for which data is being sent.

dataList

A variable representing the data that corresponds with the column list. This data is separated by the delimiter field in parameter 4, if that is not provided, the default is the tab character.

delimiter

The ASCII code for the delimiter separating individual columns in the data string. Only specify this parameter value to use a delimiter other than the default tab character.

As of Profile v7.0, this parameter is no longer supported.

Returns

An updated XML formatted string. The updated record contains information retrieved from the database for a particular record.

When Became Available

v6.4

Example

type HTML xx = Class.new(“HTML”)

set list = ”CID,IRN,BAL,BNDT”

set DATA = Db.getOne(list,“LN”,“CID”)

set return = xx.addList(“LN”,list,DATA)

____________________________________________________________

This will append the following information to the XML document:

<LN>

<CID>3</CID>

<IRN>15</IRN>

<BAL>0</BAL>

<BNDT></BNDT>

</LN>