Wddxserialize - MACROMEDIA COLDFUSION MX 61-CFML Reference

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

Advertisement

Example
This example calls the
// create a new recordset
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);

wddxSerialize

Description
Serializes a record set.
Syntax
object.wddxSerialize( serializer )
Parameters
Parameter
object
serializer
Return value
Returns a Boolean True if serialization was successful; or False if an error occurs.
Usage
This is an internal function; you do not typically call it.
Example
This example is from the WddxSerializer
...
else if (typeof(obj) == "object")
{
if (obj == null)
{
// Null values become empty strings
this.write("<string></string>");
}
else if (typeof(obj.wddxSerialize) == "function")
{
// Object knows how to serialize itself
bSuccess = obj.wddxSerialize(this);
}
...
function:
setField
Description
Instance name of the WddxRecordset object
WddxSerializer instance
function:
serializeValue
WddxRecordset object
797

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents