User Guide

RDBMSResolver.addFieldInfo() 1053
RDBMSResolver.addFieldInfo()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
resolveData.addFieldInfo("fieldName", "ownerName", "isKey")
Parameters
fieldName String; provides the name of the field that this information object describes.
ownerName String; provides the name of the table that owns this field. If this name is the
same as the RDBMSResolver instances
tableName property, you can leave this parameter
blank (
"").
isKey Boolean; indicates whether this field is a key field.
Returns
Nothing.
Description
Method; adds a new item to the XML fieldInfo collection in the update packet. Use this
method if you must set up an RDBMSResolver component
dynamically at runtime, rather
than using the Component inspector in the authoring environment.
Example
The following example creates an RDBMSResolver component and provides the name of the
table, provides the name of the key field, and prevents the
personTypeName field from
being updated:
var myResolver:RDBMSResolver = new RDBMSResolver();
myResolver.tableName = "Customers";
// Sets up the id field as a key field
// and the personTypeName field so it won't be updated.
myResolver.addFieldInfo("id", "", true);
myResolver.addFieldInfo("personTypeName", "JoinedField", false);
// Sets up the data bindings
//...