Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-07-2005, 04:54 AM   #1
Registered User
Join Date: Jan 2005
Posts: 11
Default Pulling multiple Datasets into a Datagrid...

Hey guys. I'm working on a Flash app and have run into something I'm not familar with yet, but I know is quite simple. I have 3 datasets containing rows of data, and my goal is to pull rows from all 3 datasets into one central datagrid component. Basically the 3 datasets containing inter-related records of data that will combine to form a hierarchy.

The code here is how I'm populating the Datagrid after binding it to a single dataset. I just need to figure out how to somehow pull multiple datasets into this one datagrid to have a "master grid" of data.

ActionScript Code:
on(click) {     import mx.data.binding.*     var from:Object = {component: myDataset, property: "dataProvider"};     var to:Object = {component: myDatagrid, property: "dataProvider"};     var myBinding:Binding = new Binding(from,to); }

I'm also going to be doing this with an XML-populated Tree component, which I think is rather straightforward.. but I also want to know if the Datagrid method is possible.

Any ideas? It's going to take some nested loops I'm sure, but I'm just not sure if its possible to pull from 3 differently-structured Datasets into one grid.

dwalsh9x is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:41 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.