Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33393

Support for nested xml data in datagrid datafield

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Apache Flex 4.9.0
    • None
    • Spark: DataGrid

    Description

      Quite often xml datasource isn't neatly in one level, but contains nested nodes. Spark datagrid partially supports using e4x-queries in gridcolumn-dataField, but it fails if you try to filter by an attribute (@) of a nested node. For convinience and consistancy this could also be supported.

      This works: @something
      This works: child
      This works: child.grandchild
      This does not work: child.(@id == 'something') and will also clear the headerText of that column for some reason.

      Workarounds:

      • preprocess the xml to easier form before using it as dataprovider.
      • extend the gridcolumn to pass custom data and use the labelfunction or itemrendererfunction instead.

      Attachments

        1. Main.air
          746 kB
          Mikko Torniainen
        2. Main-app.xml
          10 kB
          Mikko Torniainen
        3. Main.mxml
          2 kB
          Mikko Torniainen

        Activity

          People

            Unassigned Unassigned
            mtorniai Mikko Torniainen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: