DataGrid header functionality to manipulate column data

I have been displaying information for individual series in a chart via a datagrid so that the user can edit it (change color, series style, etc.) And it works fine, but now I need to add in some functionality in the header of the series style column.  Basically the user needs to be able to "override" each entry to make all of the series types lines or area or plot or whatever he chooses in the header.  In my research on the net, it looks like I may have to use AdvancedDataGrid to do this.  Does anyone know how I would do this.
Here's what I have so far.  I've left out most of the other columns for simplicity.
<mx:DataGrid id="seriesTable" color="black" fontSize="9" rowHeight="30" editable="true" resizeEffect="slow" rollOverColor="#CCCCCC"
selectionColor="#999999" dataProvider="{axis.seriesList}" width="100%"
rowCount="{axis.seriesList.length > 2 ? axis.seriesList.length : 2}" >
  <mx:columns>
         <mx:DataGridColumn width="40" dataField="color" headerText="Color" id="colorColumn"
                    rendererIsEditor="true"  editorDataField="result" itemRenderer="renderer.ColorPickerRenderer"/>
         <mx:DataGridColumn dataField="plotType" width="220" id="plotColumn"
                   rendererIsEditor="true"  editorDataField="result" itemRenderer="renderer.TypeBoxRenderer"/>
      </mx:columns>
</mx:DataGrid>
(I could also include TypeBoxRender code but I don't think it's really needed to understand what is going on here.)

I have been displaying information for individual series in a chart via a datagrid so that the user can edit it (change color, series style, etc.) And it works fine, but now I need to add in some functionality in the header of the series style column.  Basically the user needs to be able to "override" each entry to make all of the series types lines or area or plot or whatever he chooses in the header.  In my research on the net, it looks like I may have to use AdvancedDataGrid to do this.  Does anyone know how I would do this.
Here's what I have so far.  I've left out most of the other columns for simplicity.
<mx:DataGrid id="seriesTable" color="black" fontSize="9" rowHeight="30" editable="true" resizeEffect="slow" rollOverColor="#CCCCCC"
selectionColor="#999999" dataProvider="{axis.seriesList}" width="100%"
rowCount="{axis.seriesList.length > 2 ? axis.seriesList.length : 2}" >
  <mx:columns>
         <mx:DataGridColumn width="40" dataField="color" headerText="Color" id="colorColumn"
                    rendererIsEditor="true"  editorDataField="result" itemRenderer="renderer.ColorPickerRenderer"/>
         <mx:DataGridColumn dataField="plotType" width="220" id="plotColumn"
                   rendererIsEditor="true"  editorDataField="result" itemRenderer="renderer.TypeBoxRenderer"/>
      </mx:columns>
</mx:DataGrid>
(I could also include TypeBoxRender code but I don't think it's really needed to understand what is going on here.)

Similar Messages

  • Fetching column data for clicked DataGrid cell

    I am using a DataGrid and the number of columns are based on the data thus dynamic; columns are added at runtime.  I am trying to use the same ItemRenderer for all columns.  The one piece I can not seem to get to work is knowing which datafield to use to populate each column.  I have tried getting the column.dataField from the current datacolumn to no avail; sample code listed below.  This is my first Flex project so my approach to the problem may not be the best; please alert me if this is the case.  I would appreciate any help you could lend.
                    var dgListData:DataGridListData = listData as DataGridListData;
                    var dataGrid:DataGrid = dgListData.owner as DataGrid;
                    var column:DataGridColumn = dataGrid.columns[dgListData.columnIndex];
                    var dataField = column.dataField;
                    var lbl:Label = new Label();
                    lbl.text = value[dataField];    // must add based on previously named source field; dataField
    ce

    Update:
         A few more details...
    I am trying to do this inside of override public function set data(value:Object):void {}

  • We want to view header reference as column data wonu2019t appear in any Refaren

    Dear Experts,
    we want to view header reference as column data wonu2019t appear in any of the reference filed.
    Please tell me the soluation How can I give the soluation bilow issue.
    Currently user are facing one problem with respect of Line item report.
    In any of the line item report (i.e. FBL1N, FBL3N, FBL5N) we want to view header reference as column data wonu2019t appear in any of the reference filed.
    For Example in Bank G/L Cheque number was enter in reference field but same is not apear
    In Sales G/L or tax G/L invoice number is to be appear which is again invoice number as reference in document.
    Regards
    Devendra.
    Moderator: Please, search SDN before posting

    Hi,
    To add Reference field in line item report do below.
    From FBL1N output screen.
    Click change layout / (clr + F8)
    Now add Hidden field u2018Referenceu201D to column content and push copy button.
    Now you should be able to view reference field (BKPF- XBLNR) in line item report.
    Best Regards,
    Raju

  • How to swap column-data along with Table header

    Hi All!
    I found a smple JTableDemo.java class. When I run it it provided sorting on the table as well as Dragging Column-data along with Table header while swaping two columns-headers.
    I designed my own table and apply some changes to TableModel. Afterwords it swaps Table-Headers only, but not their respective columns.
    Can someone give me a clue for that, where the logical error may be?
    Thanx in Advance

    surprised.. since you have asked, it must have some more tricky issue. Any way what i thought of it
    in before insert on table2
    simply insert into table1 (cr_id) values (:new.cr_id_id);
    i assume that table1 pk does not generated through sequence
    proposed insertion will not violate the uniqueness and create another record only in table1
    what is thehidden agenda for not using simple before insert trigger as above.
    yours
    dr.s.r.bhattachar

  • Sort Column Date - DataGrid - Flex 4.5.1

    Hi
    I made download the function (below)  to sort column date in DateGrid, but is not working
    private function date_sortCompareFunc(itemA:
    Object, itemB:Object):int
       var dateA:Date=new Date(Date.parse(itemA.dob));
        var dateB:Date=new Date(Date.parse(itemB.dob));
       return ObjectUtil.dateCompare(dateA, dateB);
    <s:GridColumn dataField="DATA_VENCIMENTO_ID"
        width="115"
        headerText="Data Vencimento"
         dataTipFunction="date_sortCompareFunc">
    someone can help me?
    Marcos

    Hi Marcos,
    This forum here is for questions related to the LiveCycle Collaboration Service product.
    You might want to post your question to the Flex forum:
    http://forums.adobe.com/community/flex/flex_general_discussion
    Hope this helps.
    Good luck,
    Julien
    LCCS Quality Engineering

  • How to ensure header and column data are aligned using JTable

    We have a JTable but it looks like header cells are a bit misaligned from table column data. How can this be fixed?

    I asked you a question in your previous posting on the exact same subject and you never replied. Why should i bother again?

  • Manipulate BLOB column data

    Hi,
    I've database Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    I need help on manipulating BLOB column data. It is storing .msg file. I want to modify its 'Subject:' line. Below query gives me position of Subject line but when I'm trying to read its content before modifying it then it is giving me error as ORA-06502: PL/SQL: numeric or value error: raw variable length too long:
    SELECT dbms_lob.substr(case_content, dbms_lob.instr( blob_column, utl_raw.cast_to_raw('Subject')),50)
    FROM my_table
    But below query gives me position properly:
    SELECT dbms_lob.instr( blob_column,utl_raw.cast_to_raw('Subject'))
    FROM my_table
    Thanks in advance.
    Regards,
    Chintan

    Firstly I would be wary of doing any string manipulation of binary data (.msg file). Secondly are you sure you have the parameters in dbms_lob.substr the correct way round: http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_lob.htm#i999349 You are getting the substring of case_content, starting with an offset of 50 and taking n bytes/chars where n is the postion of hte first occurence of "Subject" in case_content.
    Ben

  • I want to customise the printed header to show the date but not the time. Is there a list of control words available to the custom header function?

    The Date/Time option for header set-up shows both date and time. I only want to show the date

    Not related to your question, but you are running an extremely old and out of date version of Firefox that is no longer supported or maintained and thus is vulnerable to many security holes. You should update to Firefox 14 immediately. [[Update Firefox to the latest version]]

  • In Pivot table how to show folder heading of a Measures column

    Hi gurus
    I am using 11.1.1.6.6 version
    Any idea how to show column heading of a measure column in Pivot table view.
    for Dimension its working fine
    I have 3 dimension column and 12 measure column in my report

    Hi Santosh Sutar,
    Did you mean that you want to hide/show the rows in an worksheet? If I understood correctly, there is no such API in apps for Office at present. Most of functions are used interop with data.
    If you want apps for Office to support this function, I suggest that you submit the feedback from link below:
    Customer Feedback for the Office Developer Platform
    And you get learn more about apps for developing from link below:
    Build apps for Office
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make the navigation tree icon in an advanced datagrid to expand in different columns

    Hi All ,
    I am using an application built using Flex 3 .
    In my application I am using an AdvancedDataGrid for datadisplay.
    And the hierachy is like this
    Tree structure in advanced datagrid at present :
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Parent Tree
       Expanded1
          Expanded2
              Expanded3
                     ParentTree
    Expanded1
    Expanded2
    Expanded3
    value
    Expected tree structure in advanced datagrid :
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    ParentTree
    Expanded1
    Expanded2
    Expanded3
    value
    can someone tell me if this is possible in advanced data grid and if possible please let me know how do i expand the tree icons in seperate columns ...
    Thanks ,
    Ajantha

    Hi,
    you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
    Thanks,
    Jaydip Bosamiya
    +91-76000 23053
    http://jbosamiya.blogspot.com

  • Remove Flex DataGrid Heading Rollover Color

    Hi,
    How can i stop rollover color change in Flex 3 DataGrid heading ?
    Can i override the following mehtod if yes how can i do this ?
     drawHeaderIndicator(s, r.x, 0, visibleColumns[i].width, cachedHeaderHeight - 0.5, getStyle("rollOverColor"), r);
    Thanks,
    -Shrban

    To do what you want to do requires a fair amount of work as the rollover color is set as a style, you can change the color but it seems the rollover can't be disabled(not without a custom datagrid).
    A quick fix is to try and at least reduce the difference in the rollover color, this could be done as per below, which basically makes the rollover color the same as the lighter shade of the header gradient.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" creationComplete="appHandler(event)">
    <mx:Script>
    <![CDATA[
    import mx.controls.Label;
    import mx.events.FlexEvent;
    protected function appHandler(event:FlexEvent):void
    var colors:Array = dg.getStyle("headerColors");
    dg.setStyle("rollOverColor",colors[0]);
    ]]>
    </mx:Script>
    <mx:DataGrid id="dg" x="234" y="198" width="619" height="360">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1" dataField="col1" />
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>

  • Add categories to DataGrid header

    Is there a simple way to add categories to the DataGrid header? Basically, instead of just a single row with headers, I want an additional row that sits above that row and describes sections of the grid (rather than individual columns). E.g., in html, I could do something like this:
      <table>
        <tr><th colspan="2">Name</th><th colspan="2">Data</th></tr>
        <tr><th>first</th><th>last</th><th>age</th><th>gender</th></tr>
        <tr><td>john</td><td>doe</td><td>26</td><td>male</td></tr>
      </table>
    Is there a reasonable way to do something like that in Flex? I've looked at Alex Harui's DataGrid footer, but after playing around with it a bit, it doesn't seem that it would be easily adapated.

    So I'm trying to generalize this to more than two subcolumns. I got the item renderer working fine, but when I include the modified SplitDataGridHeader as a custom header renderer, it fubars the whole grid (even the other columns). I assume something I'm doing is making the Player very unhappy, but I don't see any errors when debugging in FlexBuilder: the entire Grid just shows up as plain white, with no styles applied and no data at all (even for the columns using standard renderers). Any idea what could be causing issues like this?

  • HOW TO: Add /manipulate columns for a GridControl

    HOW TO: Add /manipulate columns for a GridControl when the columns (attributes) are from different entity objects.
    This HOWTO describes the basic steps of using attributes from different entity objects for a GridControl.
    One way you can create a GridControl which contain attributes from different entity objects is to create a view object and base it on the entity objects which contain
    the desired attributes.
    Here are the basic steps:
    1.Create a new view object (or use an existing view object) by selecting File>New from the menu, clicking the Business Components tab and double-clicking
    on the View Object icon.
    2.In the View Object wizard change the name to something meaningful.
    3.Select the entity objects you will base your view object on.
    4.Nivigate to the attribute screen and select the attributes you would like to include in your view object from each entity object. At this point you can also create
    a new attribute by clicking the "New" button. The new attribute can be a concatenation of other attributes, derived from a calculation etc.
    5.In the query panel of the View Object wizard, click "Expert mode" and enter a query statement. You write complex queries such as decoding a set of attribute
    values.
    6.Add your newly to your newly created view object to the application module by double-clicking on the application module in the navigation pane and selecting
    your view object from the list.
    7.Create a new row set.
    8.Bind row set to a query by editing their queryinfo property and selecting your view object and its attributes from the queryInfo pane.
    9.Create a GridControl and bind it to the row set by editing the dataItemName property of the GridControl. Since the GridControl is bound at the row set level
    all of the related attributes are automatically added.
    null

    Michael,
    Are you intending this as a commercial solution or a work around?
    To take an existing equivalent, one would build a view in the database tailored for each grid in an Oracle Forms application. Or a separate query layered over tables for each form/grid in a Delphi or Access application? Even if it is ninety nine percent the same over half a dozen forms/grids?
    And now you've added a whole slew of "slightly different" rowSetInfos to maintain.
    So if you wanted to add a column that needs to appear everywhere... you've just increased the workload multi-fold?
    That would be a management nightmare, wouldn't it? Not to mention yet more performance cost and a slower system?
    Hmmmm..... I'm not sure I like where this is headed... someone needs to do some convincing...
    null

  • How to copy complete column data of a table control similar to ALV

    Hi All,
    I have a senario where i need to select one column of a Table control and press Ctrlc then the complete column details should be copied and be able to paste it in another colum using ctrlv.
    please suggest me how can i copy the complete column data similar to ALV .
    Thanks in advance .
    Edited by: ravi kumar on Sep 13, 2011 2:53 PM

    Dear Ravi
    I'm afraid there is no standard functionality for copy paste in ALV.
    You would need to develop something to achieve that - a button for example.
    Kind Regards
    /Ricardo Quintas

  • Function in Formula column

    Hi,
    I wrote the function in formula column, the return value should show in the separate column.
    Thx,
    BalajiV

    908509 wrote:
    Hi,
    I wrote the function in formula column, the return value should show in the separate column.Please provide details when make any question.
    What is your report version ?
    Choose this formula column as source of item, which display the data on layout view.
    Hope understand.

Maybe you are looking for

  • Multicast between zones in Solaris 10 3/05

    Hi We have a Solaris 10 3/05 installation, with different zones. We have written a pair of test programs to test multicast traffic between zones: one of them joins a given IP/port, and the other sends datagrams with dummy text to a given IP/port. We

  • Apache and PHP not working together

    Hey all, Ok, I reinstalled my server yesterday and followed the LAMP wiki to set up Apache, MySQL, and PHP. Now, I got Apache and MySql working great, but when I go to directory that has a .php file to open, my brower is asking me what application I

  • Account Issues w/ Sync issues

    Not sure if this is the best place to put this. Back in 2002, I made an apple account, made purchases though the years. I shared the account with my mother. In 2006, I made my own new account and switched over the old account to her email and made it

  • What formats does oracle bpm exports to

    Hi, can you please suggest me the formats exported by Oracle BPM for BPMN diagrams? ...does it export to XPDL? Visio? etc.. Thanks for the help kalyan Edited by: 915561 on Feb 19, 2012 8:59 PM Edited by: 915561 on Feb 19, 2012 8:59 PM

  • Upgrade Plan - Web Shop - NWDI

    Hi Experts, My customer has planned to upgrade their portal from version 7.01 to 7.02 SPS4. They have four environments namely Dev, Quality, Acceptance & Production. They plan to upgrade Dev first, followed by Acceptance & then Production. (Quality i