Rdbmsresolver.addfieldinfo() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

RDBMSResolver.addFieldInfo()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
resolveData.addFieldInfo("fieldName", "ownerName", "isKey")
Parameters
String; provides the name of the field that this information object describes.
fieldName
String; provides the name of the table that owns this field. If this name is the
ownerName
same as the RDBMSResolver instance's
blank (
).
""
Boolean; indicates whether this field is a key field.
isKey
Returns
Nothing.
Description
Method; adds a new item to the XML
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
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
//...
property, you can leave this parameter
tableName
collection in the update packet. Use this
fieldInfo
personTypeName
RDBMSResolver.addFieldInfo()
field from
1053

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents