If you use this XML file to import a schema for the XMLConnector component's
property, it generates the following code:
results : XML
datapacket : Object
row : Array
[n] : object
@billable: String
@hours : Integer
@id : Integer
@rate : Integer
Suppose you want to treat the row node as a record within a grid, and you want the
attribute to be treated as a Boolean value and show a
@billable
grid instead of
or
ON
OFF
schema field to the
dataProvider
how to get the
@billable
value.
false
To make the @billable attribute display a true or false value:
1.
Select the XMLConnector component, click the Schema tab, and select the @billable
schema field.
2.
In the bottom pane of the Schema tab, set the
3.
Set the
property to Boolean.
encoder
4.
Select Encoder Options and enter on for strings that represent
strings that represent
The encoder now takes the XML data in its raw form (String) and converts it into an
ActionScript Boolean value. Using the encoder options, it knows how to encode the string
values correctly.
5.
Click Formatter, and select Boolean. Select Formatter Options. You now have a choice to
define how a
true
6.
Enter True for strings that mean
The formatter now takes the ActionScript Boolean value and formats it into a String.
. Getting the data into the grid is simple: You can simply bind the row
property of the grid. The following procedure describes
attribute to be treated as a Boolean value and display a
.
false
and
value should appear as a string.
false
true,
property to Boolean.
data type
and enter False for strings that mean
Advanced topics in data integration
results
or
value in the
true
false
true
and enter off for
true,
false
or
.
435
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?