Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
BaliHi #1
Stuck in the AdvancedDatagrid
Hi All,
I want to access the data within the Advanced Datagrid but I cant seem to do
it. I have defined some summary data using Grouping Collections and a summary
row. Now I want to use that data to do something else.
I have found that the advancedDataGrid has a property called
HierarchicalCollectionView and HierarchicalCollectionView has a property called
treeData. Whilst treeData has the data that I want to use (summaries of my
leaf level data), unfortunately it is a protected property so I cant refer to
it using code. In the debugger you can see it with a little yellow diamond
next to it.
I am trying to figure out whether I can use inheritance or maybe composition
in Actionscript to get the contents of treeData but everything I have tried has
failed so far.
Alternatively is there another way of getting to that data?
BaliHi Guest
-
Question for AdvancedDataGrid?
Hi, I did a AdvancedDataGrid without grouping,it works fine. <mx:AdvancedDataGri d x="8" y="72" width="558" height="247" rowCount="4"... -
AdvancedDataGrid and HierarchicalData
I'm having a problem with the AdvancedDataGrid and HierachicalData. I have an HTTPService that is getting data from an XML file off the server. I... -
AdvancedDataGrid Sorting
I'm having a problem getting an AdvancedDataGrid to sort data in the proper order. I'm using a GroupingCollection as the dataprovider and I have... -
Could not resolve <mx:AdvancedDataGrid>
hi, all, I don't have much experience on Flex, and I met this problem when I try to open my mxml on Tomcat: Could not resolve... -
CFC Query - stuck, stuck, stuck
I am once again trying to use Dreamweaver. Here I want to create my first CFC. I'm following the online tutorial Building Your First Database... -
Sreenivas R #2
Re: Stuck in the AdvancedDatagrid
You can use the iterator of HierarchicalCollectionView and get to the summary nodes. (You may have to open all the nodes if you want to proces all summary nodes)
Sreenivas R Guest
-
BaliHi #3
Re: Stuck in the AdvancedDatagrid
Thanks, that looks like it will work but can you give me some more information
on how I would iterate through the HierarchicalCollectionView?
I can see that after opening all the nodes,
HierarchicalCollectionView.OpenNodes becomes an object with child objects that
contain all the information I need. I can get the length of
HierarchicalCollectionView, but how do I refer to the individual nodes below?
Here is some code that doesnt work - maybe you can provide a quick correction
or a re-write:
var myHierCollView:IHierarchicalCollectionView =
dgVwFinData.hierarchicalCollectionView;
//open all the nodes
dgVwFinData.expandAll();
//loop through the HierarchicalCollectionView
for(var i:int=0; i<myHierCollView.length; i++)
{
//how do I access the individual items in myHierCollView
//the following doesnt work
var currentNode:Object = myHierCollView[i];
}
BaliHi Guest
-
Sreenivas R #4
Re: Stuck in the AdvancedDatagrid
You need to call myHierCollView.createCursor() and use the IViewCursor returned.
while(!cursor.afterLast)
{
var node:Object = cursor.current;
cursor.moveNext();
}
Sreenivas R Guest
-
-
Rekha #6
Re: Stuck in the AdvancedDatagrid
Thanks a lot Sreenivas !!!
I have used the same logic for Export to excel functionality. It worked fine. But, I am unable to get my Group names in the excel sheet.
Any help would be great.
Thanks once again.Rekha Guest



Reply With Quote

