XmlConnector, DataSet, and List trouble (v2 components)

Posted: 02-16-2005, 01:59 PM
I'm working with components in MX Pro 2004, and I've hit a snag that absolutely
refuses to untangle. I'm attempting to use an XMLConnector to read data into a
dataset, and then display that in a list box. The only thing displaying in the
list box is 'undefined.' These are the steps I've followed: 1. Drag
XMLConnector onto stage and name xmlConnect. 2. Switch to schema tag, select
the 'results : XML' object, and import the schema from the XML file. The schema
looks like this: results : XML + beneFacts : Object __+ list_item : Array ____+
[n] : Object ______name : String ______+ coverage : <empty> ________@type :
String ______keywords : String ______+ text : Object ________+ p : Array
__________[n] : String 3. Drag a DataSet component onto the stage and name
xmlDataSet. 4. Create a binding between xmlConnect.beneFacts.list_item and
xmlDataSet.dataProvider. The direction is set to 'in' from the dataset. 5. Drag
a List component onto the stage and name it ListBox. 6. Create a binding
between xmlDataSet.dataProvider and ListBox.dataProvider. The direction is set
to 'in' from the list. 7. Set the formatter on the binding between the dataset
and list to 'Rearrange Fields.' Set the formatter options to:
'label=name;data=.'. The XML used looks something like this: <?xml version =
'1.0'?> <benefacts> <list_item> <name>Other Random Disease</name>
<coverage type = 'partial' /> <keywords>alternate unknown
illness</keywords> <text> <p>This is a somewhat less generic unknown
illness.</p> <p>One might almost go so far as to call is specific.</p>
</text> </list_item> ... </benefacts> According to every tutorial I've
found on the Web, this should work just fine. Any ideas? Rys

Reply With Quote

Responses to "XmlConnector, DataSet, and List trouble (v2 components)"

RysChwith
Guest
Posts: n/a
 
Re: XmlConnector, DataSet, and List trouble (v2components)
Posted: 02-18-2005, 03:12 PM
Anyone?
Reply With Quote
RysChwith
Guest
Posts: n/a
 
Re: XmlConnector, DataSet, and List trouble (v2components)
Posted: 02-28-2005, 03:01 PM
This what I'm getting from the data log: 2/28 11:0:3 xmlConnect: XMLConnector
Triggered, benefacts.xml 2/28 11:0:3 xmlConnect: Invoking XMLConnector
benefacts.xml() 2/28 11:0:3 Executing binding from xmlDataSet:dataProvider:- to
ListBox:dataProvider:- 2/28 11:0:3 Assigning new value '-' (-) 2/28 11:0:3
xmlConnect: Data of property 'results' has changed. true. 2/28 11:0:3 Executing
binding from xmlConnect:results:benefacts.list_item to
xmlDataSet:dataProvider:- 2/28 11:0:3 Assigning new value
'[<list_item><name>Random Disease</name><coverage t...' (Array) It looks to me
like the XML connector is executing the binding to the dataset before it
finishes loading. The dataset then executes the binding to the list, but it
doesn't have any data. The connector finishes loading and executes the binding
to the dataset again, but it doesn't execute the binding to the list again.
Any thoughts on how I can force the binding to fire again? Rys

Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PPD files are not in list Michelle Adobe Indesign Macintosh 0 03-29-2005 12:28 AM
ActionScript Control - Accordion/Tab components pnacelli Coldfusion Flash Integration 0 03-03-2005 10:41 PM
Trouble with Drill Down documents Slowtroll Coldfusion Database Access 1 02-21-2005 09:52 PM
Import MX DataSet Class Crashes Flash jjdNick Macromedia Flash Data Integration 0 02-15-2005 11:51 PM
trouble converting PM6.5 documents to CS InDesign KR@adobeforums.com Adobe Indesign Windows 10 04-09-2004 04:45 PM