Nest a DataGrid within another DataGrid using ActionScript?

I am running into an interesting issue. I am trying to nest a
DataGrid in a column of another DataGrid by setting the
ItemRenderer property. But I am hitting a well that might be due to
the way setting itemRenderers are done in ActionScript or just my
ignorance.
Here's the issue -
When I set the itemRenderer property of for a grid column, it
has to be set as follows -
col.itemRenderer = new ClassFactory(DataGrid);
But if I do that, since I am dealing with the class and not
the instance of the DataGrid, how do I set the dataProvider,
columns and other properties for my nested grid? I know we can do
this in MXML but how to achieve the same in ActionScript?
Thank you.

A very interesting question. I should try this myself at some
point. If you were using a drop-in itemRenderer, it might look like
this:
<mx:DataGridColumn dataField="gridData" ... >
<mx:itemRenderer>
<mx:Component>
<mx:DataGrid dataProvider="{data.gridData}" width="100%"
height="100%" ...>
</mx:DataGrid>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
In ActionScript, this might work, but you would need to
extend DataGrid or use a container wrapper.
class DataGridItemRenderer extends DataGrid {
override public function set data(value:Object):void {
super.data = value;
dataProvider = data.
gridData;
This should do it.

Similar Messages

  • Can I nest a menu within another menu?

    Can I nest a menu within another menu?

    Hi Carol,
    Does this question have to do with iPhoto, or maybe strictly a .Mac homepage question?
    This page will give you some info on how to do it
    http://homepage.mac.com/unearthed/dotmac/custom.html
    The person who wrote that site also posts in the .Mac forums, so post your question there in the Homepage forums and I am sure you will get detailed instructions.
    Good Luck!

  • How to move multi select rows(records)from one datagrid to another datagrid completelly in flex4

    hi friends,
    I  am doing mxml flex 4 wep application i am using 2 forms, each form i am using datagrid,i am struck in this place,
    my proplem is, in first form i am having a grid with 10rows and columns,i am having 10 records and one move button. Next form also having a datagrid,
    need:
    IF i am doing multi select(2records) from the first datagrid and click move button means that records will show in the second datagrid and will also delete
    from the first data grid again it wont show the records in same datagrid.
    how to do this?
    any useful suggession or snippet code.
    thanks in advance,
    Cheers,
    B.venkatesan.

    One solution could be:
    Source to data grid is an Array collection
    1.> In first data grid extraxct the rows using, grid.selecteditem
    2.>Add it to the arraycollection attached to next grid, use arraycollection addItemat api if rows needed to ve added at particular index
    3.>Use removeitemat api to remove the items from arraycollection attached to first datagrid
    4.>call invalidate on bothe of the datagrids

  • Targeting a symbol (to show / hide) within another composition, using a trigger in a loaded composition.

    I apologize if my question is confusing. I'm still fairly new to Edge and I hope I'm correctly explaining my issue. I've been using the Edge Commons composition loader to build this interactive:
    link to interactive: http://edwin-choi.com/main_screen.html
    If you go to care provider --> intro --> 3, and then wait a bit, a purple glow will appear right below the primary navigation labeled "Bariatric Surgeries". This was coded using an invisible button with an 'onclick' state. I wanted to make it so that the purple glow appears on top of that primary navigation label instead of below. However, the primary navigation is in a separate composition. I tried pasting the following code into the "intro" composition to target the glow which is in the main_screen composition (which is where the primary navigation is). movie3 (in the main_screen composition) is the symbol in which the glow element is animated, and the folders are organized like the following: 
    mainscreen (folder) --> main_screen.html
                                    --> patient_intro (folder) --> patient_intro.html
    sym.getComposition(“mainscreen/main_screen.html”).getStage().getSymbol(“movie3").$(“glow”).play();
    What happens is that none of the areas in the "intro" composition are interactive after inserting this code.
    Any kind of feedback would be appreciated thank you in advance!

    hey Rex,
    I think I understand what you mean. This might help:
    you could try making a rectangle with opacity 0% and use it as the area the user will click. then make sure this rectangle is at the top of the elements list on the main stage.
    This should allow you to place other element over each other(e.g the full button glow over the button) and allow it to still be accessible by the user.
    you can also use the code getComposition() with blank parameter and should work the same as getComposition(“mainscreen/main_screen.html”)
    Hope this helped
    Owen

  • Targeting a symbol (to show / hide) within another composition using a trigger in the current loaded composition.

    I apologize if my question is confusing. I'm still fairly new to Edge and I hope I'm correctly explaining my issue. I've been using the Edge Commons composition loader to build this interactive:
    link to interactive: http://edwin-choi.com/main_screen.html
    If you go to care provider --> intro --> 3, and then wait a bit, a purple glow will appear right below the primary navigation labeled "Bariatric Surgeries". This was coded using an invisible button with an 'onclick' state. I wanted to make it so that the purple glow appears on top of that primary navigation label instead of below. However, the primary navigation is in a separate composition. I tried pasting the following code into the "intro" composition to target the glow which is in the main_screen composition (which is where the primary navigation is). movie3 (in the main_screen composition) is the symbol in which the glow element is animated, and the folders are organized like the following: 
    mainscreen (folder) --> main_screen.html
                                    --> patient_intro (folder) --> patient_intro.html
    sym.getComposition(“mainscreen/main_screen.html”).getStage().getSymbol(“movie3").$(“glow”).play();
    What happens is that none of the areas in the "intro" composition are interactive after inserting this code.
    Any kind of feedback would be appreciated thank you in advance!

    hey Rex,
    I think I understand what you mean. This might help:
    you could try making a rectangle with opacity 0% and use it as the area the user will click. then make sure this rectangle is at the top of the elements list on the main stage.
    This should allow you to place other element over each other(e.g the full button glow over the button) and allow it to still be accessible by the user.
    you can also use the code getComposition() with blank parameter and should work the same as getComposition(“mainscreen/main_screen.html”)
    Hope this helped
    Owen

  • Nesting reports/report within report/Recursive reports!

    Guys,
    This one's really annoying - Can I or can i not nest one report within another?? I have got a really complex report which I want to embed into another and don't want to go through the hassle of rebuilding it in the parent!! Here's what I am trying to do -
    I am trying to create a recursive report. I have got a database which has a
    table called Outlet and it has several directly or indirectly related child
    tables. I have created a report to show these details for a single Outlet.
    Now the issue I have is one Outlet can have several child outlets. Basically a
    one to many relationship on the same table. I want to display the exact same
    details which I displayed for the parent outlet - for each of the child outlet
    for the parent.
    And each of the child outlet in turn can have more child outlets. So
    essentially I want to recurse into the same data model and layout model twice.
    So conceptually I want to create a reusable report which I can call from
    another report but this report must be displayed in a frame of the parent
    report.
    Any suggestions as to how I can do this without physically creat9ing three
    levels of datamodel and layout model?
    I am running the parent from command line and need the output in a single RDF file?
    Many thanks,
    Amit

    Create a report that shows all the details you want, then group it by ModelName. In the section expert, hide the detail line. When you preview the report you will only see the group name, and when you click it a new report will open showing the details for that group.

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • DataGrid Control using ActionScript

    Hi,
    Is it possible to generate the rows of a datagrid dynamically
    using actionscript?
    I want to put information of multiple XML's on one line of my
    datagrid.
    Mark

    Ok, I found out my problem, the thing is i wanted to combine
    info in a datagrid, from 2 xml's, but since it's not directly
    possible to access a row of the grid, I created a labelfunction for
    the datagridcolumns which i wanted to populate with a different
    value.
    Source is included below, hope it will help someone.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="1120" height="300" initialize="doInit();">
    <mx:XML id="dataContacts"
    source="/data/Contactperson.xml"/>
    <mx:XML id="dataCommunication"
    source="/data/Communication.xml"/>
    <mx:Script>
    <![CDATA[
    private function doInit():void {
    trace(dataContacts.Contactperson.Firstname);
    protected function getPhonenoById(row:Object,
    column:DataGridColumn):String {
    for each(var node:XML in row.Communicationid) {
    var value:String = new String;
    if (dataCommunication.Communications.Communication.@id ==
    node.toString) {
    value = dataCommunication.Communication.(@id ==
    node.toString()).(@type == "Phone");
    if (value != "") // if the string is empty
    // return to the returning parameter.
    break;
    // returning the value to the cell
    return value;
    ]]>
    </mx:Script>
    <mx:DataGrid x="10" y="10" width="493" id="dg"
    dataProvider="{dataContacts.Contactperson}">
    <mx:columns>
    <mx:DataGridColumn id="dcFirstname" dataField="Firstname"
    headerText="Voornaam"/>
    <mx:DataGridColumn id="dcLastname" dataField="Lastname"
    headerText="Achternaam"/>
    <mx:DataGridColumn id="dcPhone"
    dataField="Communicationid" labelFunction="getPhonenoById"
    headerText="Telefoonnummer"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>

  • Datagrid within Datagrid - Rows not resizing to fit content

    Hi,
    I have a datagrid with a custom item renderer that renders another data grid... so one column will render datagrids within the outer datagrid.  The problem is that the row does not size to fit the inner datagrid.  I can't set the rowHeight on the outer datagrid because the inner datagrids have dynamic data and i don't know how many rows they will have.  Also, after the datagrid is rendered, more rows may be added to any number of inner datagrids at a later time... and I need the rows holding them to resize accordingly.   Setting variableRowHeight=true on the outer grid doesn't seem to help either.
    Any ideas on how to do this? 
    Thanks!

    Hi, Alex, thanks for the info. It turns out, I was wrong.  The way it looked made me think it was a row-resizing problem, but it turns out that the rows were resizing fine... it was the outer datagrid itself that was not resizing properly.  Apparently it has to do with the combination of variableRowHeight and rowCount.  The jira issue may look familiar to you.
    http://bugs.adobe.com/jira/browse/SDK-13507
    Anyway, I got this from the jira comments and works pretty good...
    height="{theGrid.measureHeightOfItems(-1, theGrid.dataProvider.length + 1)}"
    I also have to call similar code when the data provider of the inner grids add/remove items.
    Thanks!

  • Pass datagrid values to Another DataGrid

    Is it possible to pass values from one datagrid( lets call it A) to another Datagrid (B) without using datagrid's A dataprovider? if so how?
    The reason for this is because datagrid A data provider,  an array collection, starts out 'empty' but fills once i execute a function to add items into the array collection
    More info:
    DataGrid A is actually a shopping cart that fills with book data once i click 'add to cart' button. the book information is transferred into an arrayCollection, with is the dataProvider for the shopping cart

    You want to know if you can access the DataGrid values in other ways then by accessing its data provider collection?

  • Can I use an event structure within another event structure

    Hi
    Can use an event structure within another event structure?
    Thanks
    Yasamin
    Solved!
    Go to Solution.

    I attached my Vi from my old project (MY OLD VI). It is worked correctly.
    But I decided that use event structure instead of case structure.
    I attached my new VI as a picture and as a LabVIEW VI too (network_analyzer_8510_920527 Frequency Sweep.vi )
    My graphs show by pressing "case 5: button (Bottom of page right hand).
    Then I want to show each of graph in a large window( in a new VI) by clicking a key (for example "show 1").
    Thanks
    Yasamin
    Attachments:
    my VI.JPG ‏256 KB
    network_analyzer_8510_920527 Frequency Sweep.vi ‏72 KB
    MY OLD VI.vi ‏69 KB

  • Using Actionscript 3, how do I code a button in a parent file to load at a specific frame in another swf file?

    Using Actionscript 3, how do I code a button in a parent file to load another swf file at a specific frame?

    You can either place the loading code in the desired frame of the parent file, or continuously monitor the currentFrame proiperty of the parent file and do the loading when the value matches the desired frame number.

  • Do you need to use Actionscript 3 code in Flash player 9 and above?

    Can anyone tell me if I need to use Actionscript 3 code instead of Actionscript 2 code in the following situation:
    I am running a swf file which is contained in a browser window (all files are contained on a CD and I have a 'trust' file set up to let them play properly).  Up until now, I have been using the following Actionscript 2 code to close the browser window (the Actionscript 2 code is on an 'Exit' button within the swf):
    on (release) {
    getURL("javascript:window.close()");
    This Actionscript 2 code has always worked and still works in Flash player 8 and lower.  However, it does nothing when played using Flash player 9.  Can anyone tell me if Flash player 9 won't recognize Actionscript 2 code?  Is it essential to use ONLY Actionscript 3 code if you are using Flash player 9?
    I am having the same problem when I try to launch another html page containing a swf (popped up from the swf contained in the main html window).  I have the following code on the button to launch the popup html window.  It always worked, but suddenly no longer works with Flash player 9.  Here is the code I am using:
    on (release) {
                getURL("javascript:launchWin2('webpage2.html');");
    I have all the necessary background code to launch 'webpage2.html'.  It works everywhere except in Flash player 9.  Can anyone tell me if it is essential to use Actionscript 3 code ONLY on these buttons in Flash player 9?  I am pretty new to Actionscript 3, so any help with syntax would be appreciated. 
    Please note that I don't want to use the projector.
    Thanks!

    You can use both AS2 and AS3 based applications in both Flash 9 and 10.
    As for the issues you describe - perhaps Flash General Forum is a better bet:
    http://forums.adobe.com/community/flash/flash_general

  • Error #1009 at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()

    Hello.
    At first sorry for my english.
    I have encountered problem with DataGrid control.
    There is DataGrid control, which have custom ItemRenderer
    (MulticolorDataGridItemRenderer).
    This DataGrid control has several properties:
    1) click on a row changes it background color
    2) click on "Filter ON" button, filter DataGrid by "status"
    field
    "TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    at
    mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()"
    This error occure when filter is ON, by click on a row. It
    occures occasionally. I note that it
    occur when DataGrid's vertical scrollbar is not in top
    position.
    If I remove recovering of scroll position, this bug
    disappear.
    Sample code:
    ~~~~~~~~~~~~
    1. Application mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.List;
    private var objPrevSelectedItem:Object = null;
    private var arrList:Array = [{name: "Matt", lastname:
    "Chotin", status: "0", selected: "0"},
    {name: "Ely", lastname: "Greenfield", status: "1", selected:
    "0"},
    {name: "Christophe", lastname: "Coenraets", status: "2",
    selected: "0"},
    {name: "Sho", lastname: "Kuwamoto", status: "1", selected:
    "0"},
    {name: "Steven", lastname: "Webster", status: "4", selected:
    "0"},
    {name: "Alistair", lastname: "McLeod", status: "3",
    selected: "0"},
    {name: "Chafic", lastname: "Kazoun", status: "1", selected:
    "0"},
    {name: "Manish", lastname: "Jethani", status: "2", selected:
    "0"},
    {name: "Mike", lastname: "Chambers", status: "4", selected:
    "0"},
    {name: "Ted", lastname: "Patrick", status: "0", selected:
    "0"},
    {name: "Roger", lastname: "Gonzales", status: "1", selected:
    "0"},
    {name: "David", lastname: "Zuckerman", status: "3",
    selected: "0"},
    {name: "Alex", lastname: "Uhlmann", status: "3", selected:
    "0"},
    {name: "Peter", lastname: "Ent", status: "3", selected:
    "0"},
    {name: "Adobe", lastname: "Consulting", status: "2",
    selected: "0"},
    {name: "Marcel", lastname: "Boucher", status: "4", selected:
    "0"},
    {name: "Andrew", lastname: "Trice", status: "1", selected:
    "0"},
    {name: "Mike", lastname: "Morearty", status: "1", selected:
    "0"},
    {name: "Everything", lastname: "Flex", status: "0",
    selected: "0"},
    {name: "Jesse", lastname: "Warden", status: "3", selected:
    "0"},
    {name: "Richinternet", lastname: "Blog", status: "2",
    selected: "0"},
    {name: "Flex", lastname: "Daddy", status: "2", selected:
    "0"},
    {name: "Keun", lastname: "Lee", status: "0", selected: "0"},
    {name: "David", lastname: "Koletta", status: "4", selected:
    "0"},
    {name: "Brian", lastname: "Deitte", status: "1", selected:
    "0"},
    {name: "Darron", lastname: "Schal", status: "2", selected:
    "0"},
    {name: "Narciso", lastname: "Jaramillo", status: "3",
    selected: "0"},
    {name: "Kiwi", lastname: "Teamblog", status: "4", selected:
    "0"},
    {name: "Anthony", lastname: "Rumsey", status: "0", selected:
    "0"}];
    [Bindable]
    private var arrcollDP:ArrayCollection = new
    ArrayCollection(arrList);
    private function fnSelectRow(event:Event):void
    if (objPrevSelectedItem != null)
    objPrevSelectedItem["selected"] = new String("0");
    ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(objPrevSelectedItem);
    var numScrolPos:Number =
    DataGrid(event.target).verticalScrollPosition;
    Object(DataGrid(event.target).selectedItem)["selected"] =
    new String("1");
    ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(DataGrid(event.target).s electedItem);
    objPrevSelectedItem =
    Object(DataGrid(event.target).selectedItem);
    if (arrcollDP.filterFunction != null)
    arrcollDP.filterFunction = fnFilter;
    arrcollDP.refresh();
    DataGrid(event.target).verticalScrollPosition = numScrolPos;
    private function fnFilter(item:Object):Boolean
    var bResult:Boolean = new Boolean(false);
    if (String(item["status"]) == "0")
    bResult = true;
    return bResult;
    ]]>
    </mx:Script>
    <mx:DataGrid
    width="100%"
    height="100"
    dataProvider="{arrcollDP}"
    itemRenderer="MulticolorDataGridItemRenderer"
    draggableColumns="false"
    rowHeight="17"
    paddingTop="1"
    paddingBottom="1"
    horizontalGridLineColor="#a0a0a0"
    horizontalGridLines="true"
    change="fnSelectRow(event)">
    <mx:columns>
    <mx:DataGridColumn headerText="Name" dataField="name"
    width="250" textAlign="left" sortable="false"/>
    <mx:DataGridColumn headerText="Last Name"
    dataField="lastname" width="250" textAlign="left"
    sortable="false"/>
    <mx:DataGridColumn headerText="Status" dataField="status"
    width="80" textAlign="center" sortable="false"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Button label="Filter ON" y="110" x="5"
    click="arrcollDP.filterFunction = fnFilter;
    arrcollDP.refresh();"/>
    <mx:Button label="Filter OFF" y="110" x="105"
    click="arrcollDP.filterFunction = null; arrcollDP.refresh();"/>
    </mx:Application>
    2. MulticolorDataGridItemRenderer component mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:DataGridItemRenderer xmlns:mx="
    http://www.adobe.com/2006/mxml"
    background="true" dataChange="fnChangeColor(event);">
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.events.FlexEvent;
    import mx.controls.Alert;
    private function fnChangeColor(event:FlexEvent):void
    if (Object(this.data) != null)
    if (!(this.data is DataGridColumn))
    var strTmp:String = String(Object(this.data)["status"]);
    if (strTmp == "0")
    this.backgroundColor = 0xccffcc;
    else if (strTmp == "1")
    this.backgroundColor = 0xffff99;
    else if (strTmp == "2")
    this.backgroundColor = 0x99ccff;
    else if (strTmp == "3")
    this.backgroundColor = 0xffcc99;
    else if (strTmp == "4")
    this.backgroundColor = 0xcc66ff;
    if (String(Object(this.data)["selected"]) == "1")
    this.backgroundColor = 0xff9933;
    ]]>
    </mx:Script>
    </mx:DataGridItemRenderer>
    And one another question: why did disappear standard DataGrid
    control selection mechanism, when I used custom
    DataGridItemRenderer? Try to use the sample code above withou
    fnSelectRow function.
    TIA

    Hi, I will try to explain what i have undestood about this issue.
    I have an application that loads at runtime some modules, and in my project configuration (Flex Modules), i specified some modules to compile optimizing to main application. Besides that, my project uses RSL to the framework linkage, and i perceived that the compiler output reports some warning messages just like "The CSS type selector 'DataGrid' was not processed, because the type was not used in the application." or others similars "The CSS type selector 'TextArea' was not processed, because the type was not used in the application.".
    When i run the application, and click the first time in some grid column, the error "Type Coercion failed: cannot convert ......@abcda2 to ........." happens.
    It happens because, these controls or components has not been linked in the main application compilation, and so, when you use the first module that uses one of these components, only the module loads an instance of these components and maintain on its part of memory.
    Dispite of being loaded in the main application, each module and main application has its SystemManager instance to register and load components, and because of it, when the application try to cast instances of the same component, but at differents SystemManager's singleton implementations, the above error occurs.
    So my solution was to add some reference of the controls or components that appears at the warning messages that was not compiled, to force the main application compilation to add these components at its SystemManager singletons first than any module.
    Only add the name of the component and import its package. Do not have to add to the stage. See below.
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ....>
    <mx:Script>
            <![CDATA[
                        DataGrid;
                        TextArea;
            ]]>
        </mx:Script>
    </mx:Application>

  • DataGrid in a DataGrid - Flash Builder 4 Beta 2

    My dear friends, hi...
    There is a problem here:
    I have a Flex and WCF webservice project...
    One part of my project is look like this:
    I wonder what kind of controls should I use for this part? Something like Grids, Lists or something like Repeater in .Net projects!
    What is your Idea?!
    And if I must use DataGarid, I think I have to use nested DataGrids. How could I do this?
    U know? I have 2 DataGrid:
         <mx:DataGrid x="10" y="10" id="DG1"
                     creationComplete="dataGrid_creationCompleteHandler(event)"
                     dataProvider="{GetSingleClassResult.lastResult}">
            <mx:columns>
                <mx:DataGridColumn headerText="Childs">
                    <mx:itemRenderer>
                        <fx:Component>                       
                            //something here
                        </fx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="FirstName" dataField="FirstName"/>
                <mx:DataGridColumn headerText="ImageUrl" dataField="ImageUrl"/>
                <mx:DataGridColumn headerText="LastName" dataField="LastName"/>
            </mx:columns>
        </mx:DataGrid>
    and
         <mx:DataGrid   id="DG2"
                     dataProvider="{GetSingleClassResult.lastResult.Childs}">
            <mx:columns>
                <mx:DataGridColumn dataField="ChileName" />           
            </mx:columns>
        </mx:DataGrid>
    But if I take my DG2 DataGrid and put it in first DataGridColumn of DG1, between  <fx:Component> Tag, I'll have this error:
    1120: Access of undefined property GetSingleClassResult.
    What should I do?!

    Hello,
    Data Mangement expects unique values for id property.This issue may occur when you select 'Identity' property in Data Mangement wizard which is not unique in the Table.For eg:, you have selected 'name' field as identity property. And your MySQL database table has multiple rows with identical values for 'name' column.
    Can you verify if you have similar setup?
    Thanks,
    Radhakrishna

Maybe you are looking for

  • Is it OK to re-use 1 instance of editors and renderers?

    Hi, The simple version of the question, is can I make 1 instance of my custom cell editor and cell renderer classes and safely use it in all my JTable instances? For example, I have a DateRenderer class, and instantiate it in a static member, and use

  • INSTEAD OF trigger on view to update a table. error in 4.2apex tabular rpt

    I have created a view (LANDINGS_VIEW') that I am hoping to use to add/modify data over several tables. I am using INSTEAD OF trigger to update/insert into the underlying tables. I am receiving the error: •ORA-01858: a non-numeric character was found

  • TVARVC table not getting updated properly

    Hi, We are facing a strange problem... First job runs to update TVARVC variable to a new value...let say 6 to 7.... Second job which runs immediatly after first job uses this variable in TVARVC to read the value picks up old value instead of new valu

  • How do I send instance for manual recovery at run time.

    Hi I have a BPEL process within which I am trying to handle a business error. I understand using the default-policies on the application server I can send a message for manual recovery. But is it possible to force an instance into the manual recovery

  • Black out screen when editing

    Has anyone had problems where the screen blacks out and directs me to my iPads app menu? This happens whenever I try to edit a document , highlight , or even flip pages. I've tried to restore my purchases, I have all my programs updated... I am confu