Addrows - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

Parameters
Parameter
object
name
Return value
None.
Usage
Adds a column to every row of the WDDX record set. Initially the new column's values are set to
NULL.
Example
This example calls the
// create a new record set
rs = new WddxRecordset();
// add a new column
rs.addColumn("NewColumn");
// extend the record set by 3 rows
rs.addRows(3);
// set an element in the first row
// newValue is a previously defined variable
rs.setField(0, "NewColumn", newValue);

addRows

Description
Adds rows to all columns in a WddxRecordset instance.
Syntax
object.addRows( n )
Parameters
Parameter
object
n
Return value
None.
Usage
This function adds the specified number of rows to every column of a WDDX record set.
Initially, the row/column values are set to NULL.
Example
This example calls the
794
Chapter 6: WDDX JavaScript Objects
Description
Instance name of the WddxRecordset object
Name of the column to add
function:
addColumn
Description
Instance name of the WddxRecordset object
Integer; number of rows to add
function:
addRows

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents