Hi All,
This is my sample code:
<grids:dataProvider>
                <mx:GroupingCollection2 id="gc">
                    <mx:grouping>
                        <mx:Grouping label="YEAR">
                            <mx:GroupingField name="FY"
groupingFunction="formFieldGroup" compareFunction="stringCompareFunction">
                                <mx:summaries>
                                    <mx:SummaryRow summaryPlacement="group"
summaryObjectFunction="summObjFuncTitle">
                                        <mx:fields>
                                            <mx:SummaryField2 dataField="FY"
/>
                                        </mx:fields>
                                    </mx:SummaryRow>
                                </mx:summaries>
                            </mx:GroupingField>
                        </mx:Grouping>
                    </mx:grouping>
                </mx:GroupingCollection2>
            </grids:dataProvider>

private function summObjFuncTitle():SummaryObject {
                // Define the object containing the summary data.
                var obj:SummaryObject = new SummaryObject();
                // Add a field containing a value for the Territory_Rep
column.
                obj.COLUMN_01 = "OCT"; //Here I want to include the year in
the label as OCT 2014
                return obj;
            }
I am setting the label with summObjFuncTitle function. 
The year show as the root name for each tree.
How can i get the value of my FY field (year) in the summaryObjectFunction?
Is this possible?
Thanks





--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/ADG-label-for-Grouping-tp5848.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to