User Guide

640 Chapter 6: Components Dictionary
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
//...
RDBMSResolver.beforeApplyUpdates
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
resolveData.beforeApplyUpdates(eventObject)
Parameters
eventObject
Resolver event object; describes the customizations to the XML packet before the
update is sent though the connector to the database. This event object should contain the
following properties:
Property Description
target
Object; the resolver producing this event.