2 Replies Latest reply on Sep 4, 2009 9:02 AM by nikos101

    Secend level grouping field works incorrect ADG

    nikos101 Level 2

      I have a GroupingCollection like so used in a advanced datagrid. The secend level grouping field works fine where it groups of tradeOrQuote. However the last group ("older") has 2 of the same type of object in the tree grouping. There should only be deal and quote like in the tuesday and Wednesday

       

       

       

      tuesday

           deal

           quote

      Wednesday

           deal

           quote

      older

           deal

           quote

           deal

       

       

          <mx:GroupingCollection id="gcTradeDate" source="{tradesResult}">

              <mx:Grouping>
                  <mx:GroupingField groupingFunction="formDateGroup" compareFunction="date_sortCompareFuncTradeDate" name="tradeDate">
                      <mx:summaries>
                          <mx:SummaryRow summaryPlacement="group">
                              <mx:fields>
                                  <mx:SummaryField label="totalTransfers" dataField="notionalAmount" operation="COUNT"/>
                                  <mx:SummaryField label="totalNotional" dataField="notionalAmount" operation="SUM" />
                                  <mx:SummaryField label="totalUnmatched" summaryFunction="countUnmatched"/>
                              </mx:fields>
                          </mx:SummaryRow>
                      </mx:summaries>
                  </mx:GroupingField>
                  <mx:GroupingField name="TradeOrQuote">
                      <mx:summaries>
                          <mx:SummaryRow summaryPlacement="group">
                              <mx:fields>
                                  <mx:SummaryField label="totalTransfers" dataField="notionalAmount" operation="COUNT"/>
                                  <mx:SummaryField label="totalNotional" dataField="notionalAmount" operation="SUM"/>
                                          <mx:SummaryField label="totalUnmatched" summaryFunction="countUnmatched"/>
                             
                              </mx:fields>
                          </mx:SummaryRow>
                      </mx:summaries>
                  </mx:GroupingField>

              </mx:Grouping>

          </mx:GroupingCollection>

       

       

      Any ideas what he problem could be.