DataProvider.getEditingData()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myDP.getEditingData(index, fieldName)

Parameters

index A number greater than or equal to 0 and less than DataProvider.length. This number is the index of the item to retrieve.

fieldName A string indicating the name of the field being edited.

Returns

The editable formatted data to be used.

Description

Method; retrieves data for editing from a data provider. This lets the data model provide different formats of data for editing and displaying.

Example

The following code gets an editable string for the price field:

trace(myDP.getEditingData(4, "price");