AdvancedDatagrid grouping

I would lik to give the grouping field in the advanceddatagrid a custom predefined  order.
For instance , assume that i am grouping the data based on the department which could have "Management, Finance and sales", the group by default sorts in the alphabetical order having the data of finance group displayed first and then Manangement and then sales ..But i would like to give a custom order in which Management group is displayed first and then Finance and then sales..Any ides as how to do it?

"Stef_Dev" <[email protected]> wrote in
message
news:g9giii$2ss$[email protected]..
>I have troubles understanding how to use the grouping
feature of an
> advancedDatagrid.
>
> How do you group on field1 BUT display field2 as the
label of the group ?
>
> Here's my code :
> var grpField:GroupingField = new GroupingField;
> grpField.name = "field1"; // group on field1
> grpField.groupingFunction = groupFunc;
>
> private function groupFunc(item:Object,
field:GroupingField):String
> {
> // display field2 as the label of the group
> return item.field2;
> }
>
> Result : He actually groups on field2, ignoring totally
field1.
> the documentation says that groupingFunction is "A
function that
> determines the label for this group", and not a function
who is
> supposed to influence the grouping.
>
> Help me, I'm kind of lost :)
I think that for purposes of grouping, the label of the group
determines the
grouping. You can probably display a different label with a
separate label
function.
HTH;
Amy

Similar Messages

  • AdvancedDatagrid Grouping question

    Getting the hang of this AdvancedDataGrid control. I think it has a lot of potential but I just cant figure out how to do one thing. As you can see from the picture I am grouping by Section and then SubSection. The problem is when there is no subsection data value the items are grouped into a blank folder. Kind of tacky. I wrote this groupLabelingFunction:
    private function groupLabelHandler(data:Object, depth:int):String {
                    var grp:IGroupingCollection = diagnosesGrid.dataProvider.source as GroupingCollection;
                    var grpLabelProperty:String = grp.grouping.label;
                    return (data[grpLabelProperty] == null || data[grpLabelProperty] == "") ? "(No Subsection)" : data[grpLabelProperty];
    And that works great. Instead of a blank folder the folder is titled (No Subsection) however, my boss would instead like those items in that folder to appear in the root of the Section folder. Is there a way to pull them out or get it to ignore the subgrouping when the value is blank?
    Thanks,
    KC

    Hi Guys
    Thanks for your help
    Panda - I think I know what you are meaning but having the lastname in the group header will provide the formatting for the report we require. We really want to show the format as follows
    Client Firstname  Client Lastname    Hour Total
    Jim                     Smith                        8
    Steven                Black                        10
    Would having the lastname in the group header still allow me to keep the above format?
    Travis - I have created the formula you have said however I'm not sure what you mean by "create a group from this formula" can you explain a bit more, sorry I am quite new to crystal reports.
    Thanks

  • AdvancedDataGrid grouping doesn't work for single row

    Hi All,
    I have an AdvancedDataGrid on my application dashbaord with grouping and summary, recently I came across this problem while testing.
    If I have only one row data, then ADG doesn't display the record. What could be the error?
    Thanks,
    Shankar.

    I don't know why but I tried playing some movies in the new Quicktime and then the very same ones in Front Row and they played just as well. But before this little experiment I tried those movies in Front Row only and what I got was horrible. Very rough motions and a very pronounced raster type (jagged) edges visible in many pics, especially when people were moving and when the color of their clothing contrasted sharply against the background, ie, yellow clothes against a black shadow.
    Weird stuff.
    BTW, for the Mira users, you have to DISABLE Mira in order for your remote to work correctly in Front Row, otherwise you will have selection problems, etc...

  • Advanceddatagrid grouped row background color

    Hi All,
    How to create a grouped row background color in advancedatagrid eg:
    Features
    Product 1
    Product 2
    Group1
       aa
    copy
    copy
       aa
    copy
    copy
    Group 2
       bb
    copy
    copy
       bb
    copy
    copy
    Thanks,
    srinath

    The solution I found was to extend the data grid class, add override to the draw background and add a rowcolorfunction. When using item renderers you must use the style function with the alternatingItemColors so the renderer gets the color correct and not opaque.
    Thanks looking saisri2k2.

  • How to hide itemRenderers in the Grouped rows of an AdvancedDataGrid?

    I am using an AdvancedDataGrid and showing a comboBox as the itemRenderer and also the editRenderer. However I am seeing the combobox in the grouped rows also. Below is the code I am using and also attached the screenshot of the app. Please help.
    TestAdvGridGrpRen.mxml
    ===================
    <?xml version="1.0"?>
    <!-- dpcontrols/adg/SummaryGroupADGCustomSummary.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
                import mx.collections.IViewCursor;   
                import mx.collections.SummaryObject;
    [Bindable]
    private var dpFlat:ArrayCollection = new ArrayCollection([
      {Region:"Southwest", Territory:"Arizona",
          Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000},
      {Region:"Southwest", Territory:"Arizona",
          Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000},
      {Region:"Southwest", Territory:"Central California",
          Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000},
      {Region:"Southwest", Territory:"Nevada",
          Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000},
      {Region:"Southwest", Territory:"Northern California",
          Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000},
      {Region:"Southwest", Territory:"Northern California",
          Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000},
      {Region:"Southwest", Territory:"Southern California",
          Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000},
      {Region:"Southwest", Territory:"Southern California",
          Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}
                // Callback function to create
                // the SummaryObject used to hold the summary data.
                private function summObjFunc():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.Territory_Rep = "Alternating Reps";
                    return obj;
                // Callback function to summarizes
                // every other row of the Actual sales revenue for the territory.
                private function summFunc(cursor:IViewCursor, dataField:String,
                    operation:String):Number {
                    var oddCount:Number = 0;
                    var count:int = 1;
                    while (!cursor.afterLast)
                        if (count % 2 != 0)
                            oddCount += cursor.current["Actual"];
                        cursor.moveNext();
                        count++;
                    return oddCount;
          ]]>
        </mx:Script>
        <mx:AdvancedDataGrid id="myADG"
            width="100%" height="100%"
            initialize="gc.refresh();">      
            <mx:dataProvider>
                <mx:GroupingCollection id="gc" source="{dpFlat}">
                    <mx:Grouping>
                       <mx:GroupingField name="Region"/>
                       <mx:GroupingField name="Territory">
                          <mx:summaries>
                             <mx:SummaryRow summaryObjectFunction="summObjFunc"
                                summaryPlacement="first">
                                <mx:fields>
                                   <mx:SummaryField dataField="Actual" summaryFunction="summFunc"/>
                                </mx:fields>
                             </mx:SummaryRow>
                          </mx:summaries>
                       </mx:GroupingField>
                    </mx:Grouping>
                </mx:GroupingCollection>
            </mx:dataProvider>      
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="Region"/>
                <mx:AdvancedDataGridColumn dataField="Territory_Rep"
                    headerText="Territory Rep"/>
                <mx:AdvancedDataGridColumn headerText="Actual" dataField="Actual"
                rendererIsEditor="true"
                itemRenderer="TestStatusTypeEditor"
                editorDataField="type"/>
                <mx:AdvancedDataGridColumn dataField="Estimate"/>
            </mx:columns>
       </mx:AdvancedDataGrid>
    </mx:Application>
    TestStatusTypeEditor.mxml
    ====================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="OnInit()" >
    <!-- This is the content of the ComboBox.
    <mx:dataProvider>
    <mx:Object label="Cog" />
    <mx:Object label="Sproket" />
    </mx:dataProvider>
    -->
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
            [Bindable]
            public var cards:ArrayCollection = new ArrayCollection(
                [ {label:"38865", data:1},
                  {label:"29885", data:2},
                  {label:"29134", data:3},
                  {label:"52888", data:4},
                  {label:"38805", data:5},
                  {label:"55498", data:6},
                  {label:"44985", data:7},
                  {label:"44913", data:8}]);
    private function OnInit():void
    dataProvider = cards;
    * This override of set data compares the data.label against the label property
    * of each item in the dataProvider (above). This code is written a bit more
    * generically than necessary, but it would allow you to have a long list
    * in the dataProvider and not have to change this code.
    override public function set data(value:Object):void
    super.data = value;
    var list:ArrayCollection = dataProvider as ArrayCollection;
    for(var i:int=0; i < list.length; i++)
    if( String(value.statusName) == list[i].label ) {
    selectedIndex = i;
    * This getter is the one identified as the editorDataField in the list for
    * the itemEditor.
    public function get type() : String
    if( selectedItem ) {
    return selectedItem.label;
    else {
    return null;
    ]]>
    </mx:Script>
    </mx:ComboBox>

    Solved this issue by using mx:rendererProviders element for my AdvancedGrid. Using the depth parameter gives me the ability to hide the itemRenderer for the Grouped rows.
        <mx:AdvancedDataGrid id="myADG"
            width="100%" height="100%"
            initialize="gc.refresh();">       
            <mx:dataProvider>
                <mx:GroupingCollection id="gc" source="{dpFlat}">
                    <mx:Grouping>
                       <mx:GroupingField name="Region"/>
                       <mx:GroupingField name="Territory">
                          <mx:summaries>
                             <mx:SummaryRow summaryObjectFunction="summObjFunc"
                                summaryPlacement="first">
                                <mx:fields>
                                   <mx:SummaryField dataField="Actual" summaryFunction="summFunc"/>
                                </mx:fields>
                             </mx:SummaryRow>
                          </mx:summaries>
                       </mx:GroupingField>
                    </mx:Grouping>
                </mx:GroupingCollection>
            </mx:dataProvider>       
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="Region"/>
                <mx:AdvancedDataGridColumn dataField="Territory_Rep"
                    headerText="Territory Rep"/>
                <mx:AdvancedDataGridColumn headerText="Actual" dataField="Actual"
                rendererIsEditor="true"
                editorDataField="type"/>
                <mx:AdvancedDataGridColumn dataField="Estimate"/>
            </mx:columns>
    <mx:rendererProviders>
        <mx:AdvancedDataGridRendererProvider
            columnIndex="2"
            columnSpan="1"
            depth="3"
            renderer="TestStatusTypeEditor"/>
    </mx:rendererProviders>
       </mx:AdvancedDataGrid>

  • How to change the order of groups in AdvancedDataGrid

    Hello,
    I have a dataset similar to the following:
    Region   Sales
    ======   ======
    North     10
    North     15
    South     5
    East      20
    West      5
    West      4
    West      3
    I'd like to group by Region and sort the groups by the Sales subtotal for each group. I already have the data grouped correctly using GroupingCollection2. How can I sort the groups by the sales subtotal (it sorts by region name by default)? I've seen some posts that talk about creating a custom groupingObjectFunction and applying a group sort. But I'm still confused. Can someone give me some pointers on how to achieve this?
    So ideally, the AdvancedDataGrid would end up looking like this with the regions sorted by sales subtotal;
    Region    Sales
    ======    ======
    North
              10
              15
    subtotal 45
    East
              20
    subtotal 20
    West
              5
              4
              3
    subtotal 12
    South
              5
    subtotal 5

    Thanks, I looked at that earlier but it doesn't contain the solution I was hoping to find.
    I ended up not using GroupingCollection. I think GroupingCollection is cool, but it isn't really customizable to the extent I need.
    I just ended up transforming my data into a hierarchical form that could be used directly by AdvancedDataGrid. At the top level of my hierarchy, I have the detail txn groups, subtotal groups, and grand total groups. To sort the groups, I use custom SortFields. So, for example, if I want to sort by group name, I add a SortField for the groupName attribute. Both the Detail Group and the Subtotal Group share the same group name. Then I add a SortField for a summaryRow attribute. Only the subtotal group has that attribute. This ensures that the Detail Group is always followed by the associated Subtotal Group after sorting. I store my groups in an XMLListCollection and then set the sort attribute, then call refresh().
    Not ideal, but it works. If my requirements were more complex, perhaps my approach wouldn't have worked as well. But as it stands it works well and has good performance.
    I was hoping that ADG could handle this kind of sorting for me, but after looking at the source code, it seems like this is not possible without implementing my own custom GroupingCollection class and possibly other supporting classes.
    One key thing to note is that clicking the column header to sort within groups works fine. However, if you then attempt to sort at the group level, ADG hangs while trying to refresh itself. The trick is to assign the dataProvider.sort attribute to a temporary variable, then set it to null (this sort variable contains the ADG column sorts that the user clicked). Apply your group level sort and then reapply the dataProvider.sort attribute.

  • How to add a button to the grouped data in an AdvancedDataGrid?

    Hi,
    Can anyone please suggest how to add a button to the grouped data in the AdvancedDataGrid?
    I have tried extending the AdvancedDataGridGroupItemRenderer and using it as the groupItemRenderer but its not reflecting.
    For the leaf node the itemRenderer property works just fine.
    Please help!

    HI ,
    I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
    I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list  but still I am unable to get any additional button on the output ALV popup.
    Please help.
    Regards,
    Kavya.

  • Flash Islands, AdvancedDataGrid, problem with grouping

    Hello,
    I am trying to show a table from SAP into an AdvancedDataGrid:
         <mx:AdvancedDataGrid dataProvider="" width="100%" rowCount="13" >
              <mx:columns>
                 <mx:AdvancedDataGridColumn dataField=""
                  headerText="Monat" />
    This works very well. Now I am trying to build a tree with grouping in the same grid:
    <mx:AdvancedDataGrid width="100%"      rowCount="13">
         <mx:dataProvider>
              <mx:GroupingCollection source=""/>
              <mx:Grouping>
                   <mx:GroupingField name=""/>
                   <mx:GroupingField name=""/>
              </mx:Grouping>
         </mx:dataProvider>
         <mx:columns>
              <mx:AdvancedDataGridColumn dataField="" headerText="Monat"/>
    Unfortunatly I get an empty table. Does anybody know my mistake?
    regards
    stefan

    Thx for reply. I understand what you mean. I was a littlebit to hasty. I should have waited until finishing everything. Point 3.c in the chapter mentioned above states it clearly.
    Sorry 4 that.

  • Showing Grouped Data /Hierarical in AdvancedDataGrid.

    Hi ,
    I am using AdvancedDataGrid, I want to show only two columns as grouped data.
    Say, I have Grid having columns for Employees Details.
    My Coulmns are: Employee Id,Employee Name, Department ,Project Name & Project Description.
    and one Employee could be working in different projects.
    I want to show data on my grid with deatils of employee hierarically in one row & all the details of projects he/she is working in.
    How could I do that?
    TIA

    Hi ,
    I am using AdvancedDataGrid, I want to show only two columns as grouped data.
    Say, I have Grid having columns for Employees Details.
    My Coulmns are: Employee Id,Employee Name, Department ,Project Name & Project Description.
    and one Employee could be working in different projects.
    I want to show data on my grid with deatils of employee hierarically in one row & all the details of projects he/she is working in.
    How could I do that?
    TIA

  • Refresh Grouped AdvancedDataGrid

    I've been fiddling with the new AdvancedDataGrid for Flex 3
    and it does wonders. One of its features most beneficial to me is
    the ability to group rows of data based on some field (column)
    value. If you don't understand what I'm talking about check out the
    example at:
    http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions#Advanced_DataGrid
    The problem is that if you update the field value for any of
    the records and try to do a refresh so that the record with the new
    field value gets moved to the correct group, you get an error or
    the record does not get regrouped. In simple terms, how do you
    refresh the grouping on an AdvancedDataGrid when some of the
    grouping field values have changed?

    Can you please log a bug at
    http://bugs.adobe.com/flex/
    with the steps and sample data to reproduce it? Thanks.

  • AdvancedDataGrid.styleFunction not applies for hierarchical group label

    Hi
    I have hierarchical data in advanced data grid.
    I am using AdvancedDataGrid.styleFunction to set font style to the rows.
    The style is getting applied only to the child rows.
    Its not getting applied to group label.
    Please help me to style group labels.
    Thanks
    Niyazar. 

    AdvancedDataGrid.styleFunction itself working for group label also.
    Problem was with my if conditions inside the styleFunction.
    Thanks Sathyamoorthi. But I didnt tried rendererProvider.

  • AdvancedDatagrid and Grouped Columns scroller issue.

    Dear Friends,
    I have one issue. when use the AdvancedDataGridColumnGroup in AdvancedDataGrid.
    Description:
    In the AdvancedDataGridColumnGroup created renderer with (+/-) icon. when clicking the icon hide/show the columns in the group column. function code
    * This function shows/hides the child columns
    * @param event:MouseEvent
    private function showHideColumn(event:MouseEvent):void
    try
    var index:int;
    for (index=1; index < this._columnGroup.children.length; index++)
    if (this._columnGroup.children[index])
    this._columnGroup.children[index].visible=this._hideFlag;
    imgShowHideColumn.source=this._hideFlag ? collapseColumn : expandColumn;
    this._hideFlag=!this._hideFlag;
    catch (err:Error)
    Alert.show(err.message + "\n" + err.getStackTrace());
    I have 25 columns, but only 8 columns visible, other hidden with the scrollbar. when click the (+/-) icon in the group column to hide/show the child columns then throws error in the AdvancedDataGridBaseEx.as:983.
    I think this issue is because of invisible columns. if i removed invisible columns and click (+/-) then it work well. hide the sub columns and show.
    can you give any suggestions for this issue.

    any help ????????? I found OLAPDataGrid .....   I was thinking to send all the data into a bidimensional Array , then pass the data of my bidimensionalArray to  OLAPDataGrid ...  but I'n not sure if Flex is able to do it  .... 
    the really serious problem is the special ROW I must use ...
    regards
    JS

  • How to add an item object as a child for a specified parent node in AdvancedDataGrid in Flex?

    Hi all,
              This is the code, to add a object as a child into a specified parent node in AdvancedDataGrid in flex.
    <?xml version="1.0" encoding="utf-8"?><mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()" width="100%" height="100%">
    <mx:Script><![CDATA[
    importmx.controls.Alert; 
    importmx.collections.IHierarchicalCollectionViewCursor; 
    importmx.collections.IHierarchicalCollectionView;  
    importmx.collections.ArrayCollection; [
    Bindable]private var objectAC:ArrayCollection = newArrayCollection(); 
    //This method is used to construct the ArrayCollection 'flatData' 
    private function onCreationComplete():void{
    var objOne:Object = newObject(); objOne.name =
    "Rani"; objOne.city =
    "Chennai";objectAC.addItem(objOne);
    var objTwo:Object = newObject(); objTwo.name =
    "Rani"objTwo.city =
    "Bangalore";objectAC.addItem(objTwo);
    var objThree:Object = newObject(); objThree.name =
    "Raja"; objThree.city =
    "Mumbai";objectAC.addItem(objThree);
    //This method is used to add one object as a child item for the parent node 'Rani' 
    private function addChildItem():void{
    var dp:IHierarchicalCollectionView = groupedADG.dataProvider asIHierarchicalCollectionView;  
    varcurent:IHierarchicalCollectionViewCursor = groupedADG.dataProvider.createCursor();  
    var dummyParentNode:Object = {name:"Rani", city:"New Delhi"};  
    var obj:Object = null; 
    while(curent.current){
    // To get the current node objectobj = curent.current;
    // Add Child item, when depth = 1 and Node name should be "Rani" 
    if (curent.currentDepth == 1 && obj["GroupLabel"] == "Rani"){
    dp.addChild(curent.current, dummyParentNode);
    curent.moveNext();
    groupedADG.dataProvider = dp;
    groupedADG.validateNow();
    groupedADG.dataProvider.refresh();
    ]]>
    </mx:Script> 
    <mx:AdvancedDataGrid id="groupedADG" x="10" y="15" designViewDataType="tree" defaultLeafIcon="{null}" sortExpertMode="true" width="305" > 
    <mx:dataProvider> 
    <mx:GroupingCollection id="gc" source="{objectAC}"> 
    <mx:grouping> 
    <mx:Grouping> 
    <mx:GroupingField name="name"/> 
    </mx:Grouping> 
    </mx:grouping> 
    </mx:GroupingCollection> 
    </mx:dataProvider> 
    <mx:columns> 
    <mx:AdvancedDataGridColumn headerText="Name" dataField="name"/> 
    <mx:AdvancedDataGridColumn headerText="City" dataField="city"/> 
    </mx:columns> 
    </mx:AdvancedDataGrid> 
    <mx:Button x="10" y="179" label="Open the folder 'Rani'. Then Click this Button" width="305" click="addChildItem()" /> 
    </mx:Application> 

    Hi,
    It's not possible to 'append' a StringItem or a TextField (or any other lcdui.Item object) to a Canvas or GameCanvas. You can only draw lines, draw images, draw text, etc etc, on a Canvas screen. So, you can only 'simulate' the look and feel of a TextField (on a Canvas) by painting it and adding source code for command handling (like key presses). However, this will be quite some work!!
    lcdui.Item objects can only be 'appended' to a Form-like Displayable.
    Cheers for now,
    Jasper

  • Editable AdvancedDataGrid / Read-only SummaryRow

    tl;dr - How do I have read-only SummaryFields for an editable column in the AdvancedDataGrid?
    I have an AdvancedDataGrid based on flat data in a GroupingCollection that groups on one field (named "day"). There are 2 known read-only columns, and N additional columns (N is equal for all rows in the grid). My goal is to have the N additional columns editable (numeric) with a read-only SummaryRow at the group level for those columns.
    I can display everything properly, but I cannot figure out how to make the SummaryRow read-only.
    AdvancedDataGrid and AdvancedDataGridColumn seems to the be only classes that allow you to toggle an "editable" flag.
    When I use an AdvancedDataGridRendererProvider, my custom Label-based renderer is called, but I do not know which column it is being called for, so even though I have access to the child data, I do not know which fields in the children to summarize and display in the text field of the label.
    Data is in an ArrayCollection where each item (row) has the following format:
         "day": 1,
         "hour": "Shift 1",
         "Skill0": 4,
         "Skill1": 8,
         "Skill2": 15,
         "Skill3": 16,
         "Skill4": 23,
         "Skill5": 42
    where "day" is the column the grouping occurs on, "day" and "hour" are displayed as read-only fixed columns, and the "SkillN" fields are displayed as editable columns.
    I hope I am missing some simple bit of information here. I have spent many hours on this!
    Am I approaching the solution wrong? Hints and advice are appreciated!
    Thanks,
    Matt

    Thank you so much, Sameer. Unfortunately, I have not been able to get this working. I am using SDK 3.5 in Flex Builder 3.
    Below is a sample app that shows the "editable" property not working properly. Here is a screenshot of the result showing that the summary row is editable:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:AdvancedDataGrid initialize="gc.refresh()" editable="item">
        <mx:dataProvider>
          <mx:GroupingCollection id="gc">
            <mx:source>
              <mx:ArrayCollection>
                <mx:Object day="1" hour="1" Skill0="1"/>
                <mx:Object day="1" hour="2" Skill0="1.5"/>
                <mx:Object day="1" hour="3" Skill0=".25"/>
              </mx:ArrayCollection>
            </mx:source>
            <mx:grouping>
              <mx:Grouping>
                <mx:GroupingField name="day">
                  <mx:summaries>
                    <mx:SummaryRow summaryPlacement="group">
                      <mx:fields>
                        <mx:SummaryField dataField="Skill0"/>
                      </mx:fields>
                    </mx:SummaryRow>
                  </mx:summaries>
                </mx:GroupingField>
              </mx:Grouping>
            </mx:grouping>
          </mx:GroupingCollection>
        </mx:dataProvider>
        <mx:columns>
          <mx:AdvancedDataGridColumn dataField="day"/>
          <mx:AdvancedDataGridColumn dataField="hour"/>
          <mx:AdvancedDataGridColumn dataField="Skill0"/>
        </mx:columns>
      </mx:AdvancedDataGrid>
    </mx:Application>

  • Could not resolve mx:AdvancedDataGrid to a component implimentation

       im trying to get this facebook application to work but i keep getting this error
    when i run the application: could not resolve <mx:AdvancedDataGrid> to a component implimentation
    it seems the namespaces are correct, what does this mean?
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/halo" width="100%"
             height="100%" currentState="CONNECTING">
    <mx:AdvancedDataGrid id="adgFriends" dataProvider="{userFriends}"
                             designViewDataType="flat" horizontalCenter="0"
                             verticalCenter="19" includeIn="CONNECTED">
            <mx:columns>
                <mx:AdvancedDataGridColumn headerText="Name"
                                           dataField="first_name"/>
                <mx:AdvancedDataGridColumn headerText="Last Name"
                                           dataField="last_name"/>
            </mx:columns>
        </mx:AdvancedDataGrid>
    </s:Group>

    if i change the  xmlns:mx="library://ns.adobe.com/flex/halo" namespace to
    xmlns:mx="library://ns.adobe.com/flex/mx" i get 2 sets of these errors
    "access of undefined property AIR" and
    "access of undefined property FLEX" referring to these pieces of code.
    i am referencing the Facebook_library_with_AIRConnect_v3.4_flex.swc
               CONFIG::AIR
                    // DesktopSessionHelper import required for AIR and Facebook Connect
                    import com.facebook.utils.DesktopSessionHelper;
                    import com.facebook.session.DesktopSession;
                    // Session variable when running as AIR app
                    protected var session:DesktopSessionHelper;
                CONFIG::FLEX
                    // FacebookSessionUtil import required for Flex (browser) app
                    import com.facebook.utils.FacebookSessionUtil;
                    // Session variable when running as Flex (browser) app
                    protected var session:FacebookSessionUtil;

Maybe you are looking for

  • Stock on posting date -storage location and batch wise

    Dear All I need to developa report exactly same as MB5B but with storage location and batch wise. We need  storage location wise opening stock, total receipts, total issues and closing stock, and values for given time period. I have gone through some

  • Sequence settings advanced tab

    I'm working on PAL DVCAM 16:9 in FCP 7. Looking at the advanced tab in compresson settings (within sequence settings) does anyone know if it matters whether 4:3 or 16:9 is selected. I've been working foir a while always in 16:9 and have only recently

  • Excel files become distorted

    Hi, I have w-7 64 bit os at my office and w-7 32 bit at my home. when ever i open some excel files they become distorted in layout. every time i need to rearrange their lay out. how to avoid this ? please help. thanks,

  • How I fixed the "can't send e-mail after upgrade to 10.5.6" problem

    Like many of you I couldn't send e-mail after the upgrade. After trying everything including re-install combo update, delete and resetting profile, etc. the thing that made it work was: 1. custom set the outgoing server port number to 25 (for Verizon

  • How can i get use of Webdings?

    I wanner to draw some webdings char on Graphics. But it displays only these "������" to me. How can I get over it? Thx.