Data grid component converter

Hello

I have a data grid and I would create a point converter that color cells based on the contents of the cell. For example, all the cells that contain the letter 'E' will be green, the letter 'L' will be red, the letter "C" will be yellow, etc.

I dynamically create the grid in my script file:

I LOOP

new column = new DataGridColumn();
newColumn.dataField = addDaysToDate (i, _firstDay);
newColumn.headerText (_firstDay.date + i) = m:System.NET.SocketAddress.ToString () + "/" + (_firstDay.month + 1) m:System.NET.SocketAddress.ToString ();
newColumn.itemRenderer = new ClassFactory (itemRenderers.component.gridItemRenderer);

Add series to series column: columnSeries
columnSeries = grid.columns;
columnSeries.push (newColumn);
Grid.Columns = columnSeries;

END OF LOOP

My dataProvider is an object that contains (umong other attributes) an array of key/value pairs: [date] [letter]

In my gridItemRenderer I want to enter what data must be defined in the cell and change the background color of the cell as a result.

Is this possible?

Many thanks in advance,

Janie

Also remember that backgroundColor is a style, so in your renderer, you can use setStyle()

I think that there is a cell coloring example renderer on www.cflex.net
Tracy

Tags: Flex

Similar Questions

  • Fixing images on a data grid

    The code below does two things. The data grid displays images and text. The class is used to generate the 3 small circles that are placed next to the data grid. My problem is I want to locate the small circles in the grid of data rather than the graphics. Can someone explain how I could do this? Thank you!

    "SiHoop" wrote in message
    News:gbbgt5$77F$1@forums. Macromedia.com...
    > The code below allows me to use a point rendering engine to achieve my goal. I have
    > would be
    > want to write this code as a class instead of using it as a custom
    > component.
    > I suppose that this is not particularly difficult, but I get an error why
    > I
    > try to convert it to a class. If it's a relatively simple
    > task
    > to complete?

    A MXML component is still a class, you're here.

  • Advanced data grid move to Java

    Hi, guys.

    I think passing an Advanced data grid as ArrayList to a Java program where the Arraylist is processed.

    is it feasible? If this isn't when I pass the data grid advanced Java, what kind are in Java?

    Thank you!

    Alex

    Alex,

    What you try to do, is spend component AdvancedDataGrid to Java. You only pass the data in the grid. One of the most powerful features of Flex is required. You can use it to update your collection ArrayCollection and pass in Java. Here's what it will look like.

    
         
              
         
         
         
         
    
    
    

    Hope this helps you solve the problem. If so, mark the post correctly.

  • Help data grid!

    I need assistance with my data grid control. It displays all the data when it gets data. There is data in this format:

    < images >
    < image > < nom_image > < / nom_image > < image_url > < image_url > < keywords > < / keywords > < / image >
    < / images >

    and the component is as follows:
    < mx:DataGrid x = "10" y = "10" width = "640" height = "140" dataProvider = "{imageReturn.lastResult.images}" id = "communityImages" > "
    < mx:columns >
    < mx:DataGridColumn headerText = "Image" dataField = "{image.image_url}" >
    < / mx:DataGridColumn >
    < mx:DataGridColumn headerText = "Name" dataField = "{image.image_name}" / >
    < mx:DataGridColumn headerText = "Key words" dataField = "{image.keywords}" visible = "false" / > "
    < / mx:columns >
    < / mx:DataGrid >

    What's wrong? Help please

    Thanks for your help amy! but I had to work in the median between my post and your post. I realized that I was delerious and not actually sending the HTTP service which received images.

  • Data grid: in Smart mode

    Hello Experts,

    I created a data grid for one of the HFM application. We have an option to display the grid of data in Smart mode 'Open In Smart View', I think I know by clicking this button, the grid must be open in the smart view.

    It throws the following error when opening using Firefox:

    "The address has not been heard."

    Firefox doesn't know how to open this address, because one of the following protocols (oraclesv) is not associated with any program or is not allowed in this context.

    You may need to install additional software to open this address. »

    If I open the same with internet explore it opens.

    But I'm not able to open the gate by using this option. Whereas if I go to smart see connect to the application, I am able to open the grid of data even in Smart mode.

    We are not able to understand what the individual, the error is all about, is it a complement should be updated I have firefox or some configurations needed to be done to the EMPA. Please help us to unravel it.

    Thanks in advance.

    Problem solved.

    Pls follow this:

    Check that the Smart View Extension for Firefox is indicated as being activated in the browser:

    1. Open Firefox.
    2. Go to the menu 'tools '.
    3. Select 'Addons '.
    4. Select "Extensions."
    5. Find the Smart View Extension for FireFox and make sure that it is activated.
  • Smart View - Essbase: connection clear the data grid

    Hi all

    I use Oracle Hyperion Smart View 11.1.2.3.000 and Essbase 11.1.2.3.000.4415 in Excel 2010.

    My spreadsheet contains data that I need to load into Essbase, but when I try to connect, the data grid is disabled...

    I have a workaround: duplicate the sheet, connection, and then copy - paste the data in the sheet of "new".

    It's very frustrating, is someone can help me please?

    See you soon,.

    When you refresh this worksheet for the first time, connecting to Essbase, going to go ahead and automatically retrieve the data of the cube - it is a normal behavior.

    Your solution - make a copy of the grid, refreshment and copy in the back, is the best workaround.

    Thank you!

  • Missing values data grid column filter

    To apply a filter on a table in the data grid column, right-click the column header to bring up a context submenu.  Select the filter column.  A list of available values to filter on should appear.  However, the list can be limited to less than a few dozen thousand or more distinct column values may show as available to filter.  This unexpected limitations on the result set is returned in versions 3 and 4.  Anyone know why the majority, but not all, the available filter values can be absent from the display of column filter?

    We know only what's been recovered - when you click on it - to show us the separate list of values already read, we don't question separate from the server on this column

  • Hand-made backup of data and forms of data grids

    Hi guys,.

    Is it possible to make a backup of the data grids and forms of data manually (that is, without the use of LCM)? I work with a classic application, and I have files for all of the artifacts that were created (.alternance, .app, .rle, etc.).

    Thank you!

    See you soon!

    Easily through the U / I? Nope.

    Plan a.
    ------
    "Easier" option would be to use the hfmCopyApplication utility. (c:\hyperion\financialmanagement\server\HfmCopyApplication.exe). [NOTE: If you have 9 system, don't forget to download/get the system 11 version]

    The system 11 copy app gives you a healthy dose of flexibility in what you actually copy. For example, using the utility you can "copy" just forms/grids to another application. As with all versions of the utility, the application does not have to be in the same database as the source application. The utility works at the database level; Therefore, you don't need the application registered or same HFM running anywhere. All you need is available for utility data bases.

    If it was me, I create a new database file, use the 'copy' schedules or forms in the source application. Can I use the database connection and place the files in your folder structure for the storage. If you need to restore, all you need to do is Mount the database and use the copy utility to push them to an application.

    The major drawback here is that if you really want to look at forms / railings, you will need to register for this request and enter. A little annoying if you need to refer to the actual "source" forms and grids. If you simply need for a 'just in case' backup, it's probably a decent option.

    Plan B
    -----

    Write a script to extract all in the database tables. Excuse me, but I won't go into detail here because I have another post on this somewhere. Here are the important details.

    Tables of importance:

    _RPTS
    _BINARYFILES

    Navigate records in RPT for each record with the appropriate file type value. (3 = shape, 5 = grid)
    -For each matching record, take the EncodedLabel and get BinaryFiles lines where Label = EncodedLabel.
    -The BINARYFILE field has the text of the grid/form. I think it is in Unicode, but I don't remember off the top of my head.
    (NOTE: there may be several rows for an encodedlabel!) The field has a maximum length and if you have a grid or a big enough form, it will be more important and will require several lines. Remember to add together)

    NOTE: For bonus points, look at the ParentEncodedLabel. If you wrote your script well enough, you can use that is automatically create the folder hierarchy as well for you. It would be better than grids/forms spill in a folder on your computer/network.

    Plan C
    --------

    Review the U / I and click on about ten thousand times... Not recommended. Probably easier to curl up in the fetal position and cry yourself to sleep. :)

    Plan D
    --------
    Use the API to script a solution for this. The disadvantage of going directly through the database is that if they ever change the page layout, you have to adjust your scripts. If you use APIs published, in THEORY, these types of changes are extracted from your share as long as the ENTRY and EXIT of the API do not change, utility no matter what you do will work just as well. Sometimes the change in the API to the point where you have to adjust your program anyway, although...

    It's probably the more correct way to this address, SQL scripting is quite simple and is probably easier knock out.

  • data grid view

    I was wondering is ColdFusion has conscious control of data as the data grid view, detailed data view controls to display multiple records on the same control.

    Your information and your help is much appreciated,

    Kind regards

    Iccsi

    Hello

    You can check the CFGRID tags

  • The data grid view control

    I want to show the number of records in the data on the web form.

    Dreamweave was similar or any data view data grid control abreast of controls to display the data?

    All conscious control of data in the text box or a label that I can link to the data source or I have to use my code to assign the value of my questions?

    Your information and your help is much appreciated,

    Kind regards

    Iccsi,

    At its core, DW is all just a text editor. All the available controls would be based on the server model you are using. I'm not at all familiar with CF, but I don't think he uses complex types "control". It is a scripting language and DW can generate scripts that can create a grid of output.

    There is usually not much CF knowledge in this forum. Specific questions about Cold Fusion could be better managed in the:

    forums.adobe.com/Community/ColdFusion/

  • Data grid sweater

    I want my data to populate a data grid

    but I'm a grid of delimmited comma with only one record and all the data in the first record in the form of data delimited by commas.

    what I'm doing wrong here?

    Thanks in advance.

    --------------------------------------

    <? XML version = "1.0" encoding = "utf-8"? >

    < 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 =" " 760 "height =" 398 "xmlns:mx1 =" Library://NS.adobe.com/Flex/MX "xmlns:functiondata =" . services.functiondata * " " > ""

    < fx:Script >

    <! [CDATA]

    Import mx.controls.Alert;

    Import mx.events.FlexEvent;

    protected function dataGrid_creationCompleteHandler(event:FlexEvent):Sub

    {

    getDataResult.token = functionData.getData ();

    getDataResult2.token = functionData.getData ();

    }

    []] >

    < / fx:Script >

    < fx:Declarations >

    < s:CallResponder id=" getDataResult " />

    < functiondata:FunctionData id=" functionData "" "fault =" Alert.show (event.fault.faultString + '\n' + event.fault.faultDetail) "showBusyCursor =" true " />

    < s:CallResponder id=" getDataResult2 " />

    < / fx:Declarations >

    < s:Label x=" 0 "y =" 0 "text =" Operating Procedures "fontWeight =" "BOLD" "fontSize =" 15 "textDecoration =" underline '' / > "" "

    < s:Label x=" 0 "y =" 23 "text =" numeric KEYPAD DAGR "fontStyle =" italic "fontWeight =" "BOLD" " " / > ""

    < mx1:VRule x=" 392 " y=" 0 "height = » 100% " />

    < s:RichText x=" 401 "y =" 44 "text =" * the DAGR Gets the current position by simply turning the DAGR with an unobstructed view of the sky. " "width =" " 45% "fontStyle =" " italic " />

    < s:Label x=" 408 "y =" 0 "text =" POWER ON "fontSize =" 15 "fontWeight =" "BOLD" "textDecoration =" underline '' / > "" "

    < s:Label x=" 405 "y =" 77 "text =" ( a) press and release the PWR/QUIT button to turn on the DAGR. " " />

    < s:RichText x=" 406 "y =" 91 "text =" ( b) POWER STATUS WE message appears for two seconds (if a touch of CV, GUV'NOR key, code SV, internal compass condition exists, recognize the message accordingly), then the sky SV display Page is displayed automatically if what follows is filled. " (1) self-test is passed; (2) DAGR didn't need initialization. "width =" " 45% " />

    < s:RichText x=" 427 "y =" 179 "text =" ( c) the SV Sky View, the DAGR page automatically this page to position after the acquisition of the current position. " "width =" 45% " />

    < s:Label x=" 409 "y =" 211 "text =" POWER OFF "fontSize =" 15 "fontWeight =" "BOLD" "textDecoration =" underline '' / > ""

    < s:Label x=" ( 403 "y =" 233 "text =" a) press and hold the PWR/QUIT button for 2 seconds. " />

    < s:Label x=" ( 403 "y =" 246 "text =" b) poster DAGR WARNING recognize the need"""/ >

    < s:Label x=" 400 "y =" 264 "text =" DISPLAY LIGHT "fontSize =" 15 "fontWeight =" "BOLD" "textDecoration =" underline '' / > ""

    < s:Label x=" 397 "y =" 287 "text =" ( a) lighting of keyboard/screen, if necessary, turn display light switch by pressing the BRIGHTNESS/MENY. " "width =" " 45% " />

    < s:Label x=" 398 "y =" 341 "text =" ( b) display light on / off State can be checked by observing the status light display indicator. " "width =" " 45% " />

    < s:TextArea x=" 10 " y=" 40 "width = » 374 "editable = » vrai "fontSize = » 13 " >

    < s:text > <! [CDATA [* all keys keyboard DAGR are duel function (primary/secondary) except for the cursor (arrow) keys.]] Each duel function key is labeled with two sets of letters. All the main function keys are labeled with letters and all the secondary functions are labeled with smaller characters. Press and release to turn the primary function of the key. Press and hold (for 2 seconds) to activate the secondary function of the key. Use the arrows to scroll up and down as well as left and right into the pages. [[Press and release key QUIT/PWR and POS/PAGE key to move from one page to another.]] >< / s:text >

    < / s:TextArea >

    < mx1:DataGrid x=" {" 47 "y =" 211 "id =" dataGrid "creationComplete = "dataGrid_creationCompleteHandler (event)" dataProvider = " {}getDataResult2.lastResult.category} " " > "

    < mx1:columns >

    < mx1:DataGridColumn " headerText =" category "dataField =" " category " />

    < mx1:DataGridColumn " headerText =" stuff "dataField =" " stuff " />

    < mx1:DataGridColumn " headerText =" categoryName "dataField =" " categoryName " />

    < / mx1:columns >

    < / mx1:DataGrid >

    < / s:Group >

    -------------------------------------

    You xml document is formatted as a line

    Dan Prid3

  • Preloader in data grid

    Can't seem to get my preloader for a data grid to work.

    This is my error msg:

    1119: access of possibly undefined property contentLoaderInfo via a reference with flash .net: URLLoader of static type.

    Here's the code so far...

    var dp:DataProvider;

    var products_xml:XML;

    var xmlLength:Number;

    var xmlReq:URLRequest = new URLRequest ("products.xml");

    var xml_loader:URLLoader = new URLLoader();

    function goSection(event:Event):void {}

    xxx

    function gridLoad(event:Event):void {}

    load the data for data grid

    var instanceName:String = event.target.name;

    LDR:URLLoader = event.currentTarget as URLLoader var;

    var xmlDP:XML = new XML (ldr.data);

    var data: XML = < DATA / >;

    data.setChildren (xmlDP.DATA. () @SECTION is instanceName));

    DP = new DataProvider (data);

    xmlLength = xmlDP.length ();

    data_grid.DataProvider = dp;

    preloader in data grid

    preloader_txt.Visible = true;

    function Preloader(event:ProgressEvent):void {}

    var percent:Number=Math.round(event.bytesLoaded/event.bytesTotal*100);

    preloader_txt.Text = String (percent) + "%";

    If (p == 100) {}

    preloader_txt.visible = false;

    xml_loader.contentLoaderInfo.removeEventListener (ProgressEvent.PROGRESS, Preloader);

                   }

              }

    xml_loader.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, Preloader);

         }

    xml_loader.load (xmlReq);

    xml_loader.addEventListener (Event.COMPLETE, gridLoad);

    }

    var PButtons:Array = [b1, b2, b3, b4, b5, b6, b7];

    function addPListeners (): void {}

    for (var j: uint = 0; j < PButtons.length; j ++) {}

    PButtons [j] .addEventListener (MouseEvent.CLICK, goSection);

         }

    }

    addPListeners();

    Nothing... you just add the listener to the URLLoader directly.

    xml_loader.addEventListener (ProgressEvent.PROGRESS, Preloader);

  • Sort data grid...

    I worked on a project that returns the numbers of the database I want to display in the data grid. I want that they appear formatted as price. If I make them price with the $ and the. Then, they are considered as strings and will not sort correctly. If I let the numbers I can use digital sorting and they work fine but the terrible look, what is the solution. I can't find it anywhere like for AS 2.0.

    Thank you

    I'd be inclined to address this problem in a slightly different way, to keep the values of price in the form of numbers and display only as formatting of values.

    Like this:

  • Disable the sql and data grid when the queue

    I want to find the function to turn off the data to return to the screen of data grid I'm the cable rewind a file.
    I use sql more make the queue.

    Thank you.
    Ricard

    SQL > set termout off

  • Select several entire rows in the data grid does not work

    SQL Dev 2.1.1.64 on Windows XP.
    I can select an entire row in the data grid (or the result of the query) by clicking on the left with the line number column. I expect to select several lines by clicking and dragging, but it won't work. He worked in v1.5.
    Thank you
    MVr.

    Still 3 other ways I see:
    * Click the line number of the first row, then shift + click on the line number of the last row
    * Click on the first cell in the first row, and then drag to the last cell of the last row
    * Click the line number of the second line, and then click the first cell in the first row and drag until the last line (most like what you want)

    Have fun
    K.

Maybe you are looking for