it's possible? Tks!
On 22 jan, 13:32, Berkowitz - Fator13 <[email protected]> wrote: > This is the code that i used in app: > > private function gerarAgrupamento():void { > var myGColl:GroupingCollection = new GroupingCollection(); > var group:Grouping = new Grouping(); > var sr:SummaryRow = new SummaryRow(); > var sfA:SummaryField = new SummaryField(); > var sfB:SummaryField = new SummaryField(); > > myGColl.source = dgRelatorio.dataProvider; > sr.summaryObjectFunction = objFunc; > > sfA.dataField = "VM_BC"; > sfA.label = "mediaBC"; > sfA.summaryFunction = summFunc; > sfB.dataField = "VM_CB"; > sfB.label = "mediaCB"; > sfB.summaryFunction = summFunc; > > sr.fields = [sfA,sfB]; > sr.summaryPlacement = "group"; > > var gfDataGravacao:GroupingField = new GroupingField > ("data_gravacao"); > gfDataGravacao.summaries=[sr]; > > if(!btTodosTrechos.selected) { > var gfReferencia:GroupingField = new > GroupingField("referencia"); > gfReferencia.summaries=[sr]; > group.fields = [gfDataGravacao,gfReferencia]; > } else { > group.fields = [gfDataGravacao]; > } > > myGColl.grouping = group; > myGColl.refresh(); > dgRelatorio.dataProvider = myGColl; > //mediaDias = ""; > dgRelatorio.validateNow(); > } > > Tks! > > On 22 jan, 13:09, Berkowitz - Fator13 <[email protected]> > wrote: > > > Hello folks! > > I'm creating a ADG with groups and a column that shows the average of > > the values of that group (as the picture from left). > > How do I insert a row above bringing the average for all dates > > (picture right)? > > > Screen:http://i483.photobucket.com/albums/rr191/rafael_berkowitz/adg.gif > > > Thank you very much! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

