XmlConnector, DataSet, and List trouble (v2 components)

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default XmlConnector, DataSet, and List trouble (v2 components)

    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

    RysChwith Guest

  2. Similar Questions and Discussions

    1. Datagrid - XMLConnector and Dataset.schema
      Hi all, I want to display the contents of an XML file into a datagrid component. So, I use a Datagrid component, an XMLConnector component and a...
    2. flash datagrid,dataset,xmlconnector and php
      Hi, All I want to do is to have a table load from mysql into a datagrid and display items in a list. I have found examples on the internet but...
    3. ONLY XMLconnector+DataSet
      I try to use DataSet.find(), but it can't provide inexact search. For Example 1. apple -> Apple False 2. App -> Apple False 3. Apple...
    4. XMLConnector/DataSet MUST be more ROBUST!
      In forums, many have talked about the small amount of records that the XML Connector, DataSet all components in general seem to be able to handle. ...
    5. binding datagrid to dataset to xmlconnector
      i have had success binding an xml connector to a datagrid but now i need to bind the data grid to a dataset then bind the dataset to the xml...
  3. #2

    Default Re: XmlConnector, DataSet, and List trouble (v2components)

    Anyone?
    RysChwith Guest

  4. #3

    Default Re: XmlConnector, DataSet, and List trouble (v2components)

    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

    RysChwith Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139