MACROMEDIA FLASH 8-USING FLASH Use Manual page 439

Using flash
Table of Contents

Advertisement

The XPath to uniquely identify the row node is shown in the following example:
datapacket/row[@id='xxx']
In this example, xxx represents a value for the
attribute in the XML file would be bound to the
Therefore, the
rowNodeKey
datapacket/row[@id='?id']
The question mark symbol (
specifies the name of the field in the data set. At runtime, the XUpdateResolver
component substitutes the value from the
XPath for the specified record.
In the next example, the contacts node with a category attribute of Management
represents the record(s) within the XML file, and the
value that makes the record unique:
<datapacket>
<company id="5" name="ABC tech">
<contacts category="Mgmt">
<contact>
<empId>555</employeeId>
<name>Steve Woo</name>
<email>steve.woo@abctech.com</email>
</contact>
<contact>
<empId>382</employeeId>
<name>John Phillips</name>
<email>john.phillips@abctech.com</email>
</contact>
...
...
</contacts>
<contacts category="Executives">
...
...
</contacts>
...
...
</company>
</datapacket>
The
value for this XML file would be as follows:
rowNodeKey
datapacket/company/contacts[@category='Mgmt']/contact[empId='?empId']
id
value would be as follows:
identifies that this is a field parameter. The
?)
field of the data set to generate the correct
id
attribute. In a typical case, the
field of the DataSet component.
id
subnode contains the
employeeId
Advanced topics in data integration
id
value
id
439

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF