How to change the data from the database and displayed in a DG

Hello, it's me again with a simple question:

I received the request of SQLi that returns multiple lines.

In this line, I have for example:

Reward-> 1

How, instead of show 1 in the data grid, change this value to 'YES '.

I followed this thread:

private void onResultStats(event:ResultEvent):void

{

ServerStatsArr = new ArrayCollection (event.result.source);

for (var i: int = 0; i < ServerStatsArr.length; i ++)

{

If (.abonnement ServerStatsArr [i] == 304) {}

ServerStatsArr [i] .abonnement = 'Premium ';

} else {}

. Subscription ServerStatsArr [i] = 'no ';

}

If (ServerStatsArr [i] .transparence == 1) {}

. Transparency ServerStatsArr [i] = 'yes ';

} else {}

. Transparency ServerStatsArr [i] = 'no ';

}

}

ServerStatsArr.refresh ();

}

Why this method works for the subscription when (.abonnement ServerStatsArr [i] == 304) he displays Premium, but it does NOT work for transparency ?

I tested (.transparence ServerStatsArr [i] == 1) and (.transparence ServerStatsArr [i] == '1')

Thank you

Hi again,

private void setLabel(item:Object,column:DataGridColumn):String

{

Switch (Column.DataField)

{

case 'transparency ':

If (item.transparence is "1")

return ('yes')

on the other

return ('no')

break;

case "subscription":

If (item.abonnement is "304")

return ("premium")

on the other

return ('none')

break;

by default:

Return("");

}

}

and your grid adjustments - add the labelfunction to the following topics
I hope we get a credit of distinction for this mission...
David.

Tags: Flex

Similar Questions

  • read data from a database and display them in a listbox

    Hello

    I want to read the data from a table in a database, so I want to display 1 column in a listbox.

    I read the data from database, but I can't display in a listbox control.

    can someone help me please?

    Your VI is way too complicated. If you get a 2D array and you want just the second column, you should only use the Array Index to take off from the second column. That's all.

    Once again, the structure of your sequence is completely useless.

    I will reiterate my statement about to spend some time with the LabVIEW tutorials.

  • I don't know how to change the size and quality of the text on the screen on Windows 7

    I just installed a new Windows 7 but I don't know how to change the size and quality of the text on the screen.  I tried all the things normal, resolution, size of icons, dpi etc but nothing gives me what I want.  The text in clear 'wonderful' thing is just terrible.  When I go through the 4 steps I see no text boxes which make the text nothing better.  All options are terrible, so the result on screen is too terrible.  When I do any huge I do not get a full screen of things - view the Start button disappears or I did not closing small cross at the top - of the suggestions to inprove the situation?  I must mention that my screen/monitor is 2006 - I need to buy a new one?  How much is this Windows 7 is going to cost me, or maybe I should go back to XP!

    I sincerely thank all you smart "technicians" for all the answers you always gave myself and all others who ask questions.  I'm not too smart with all this new technology as I fell into it very late.  I am now in my 60s and only started using a pc when I was over 50 years so...  In any case, I asked a question about the size of screen resolution and text and received much good advice from all that you guys.  I had recently changed in XP to Windows 7.  However, the bit of advice that I was given in 'Cyberking' here at the Portugal had set the resolution of the screen, the advanced settings, 75 to 60 Hertz Monitor tab.  Very basic, and the first question asked the technician (Lady) was "what size is your screen?  Naturally as a smaller screen that any 'techno' would be considered dead aid, solving the problem was simple and straightforward without me having to stretch my knowledge and my skills by downloading all programes weird (to me) or do the funny stuff in the bios or something else.  I send this comment to you for you to realize that the simple solution is not always bad and maybe we should go for the easiest first and then work up to the more difficult ones.

    Just for you all to see - now my screen resolution is perfect, the text on the screen is clear and legible without difficulty, even though the size of text and icon is small.  Clarity is all!

    Thank you all once again!   Best regards, Blondie blue.

  • How to change the typo and misspelled faults in my PDF?

    How to change the typo and misspelled faults in my PDF?

    Hi Gerald,

    You can download a free trial of 30 days from the following link: https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html

    Regarding the pdf edition is concerned, you can click on the "Edit pdf" option on the right pane and easily edit the text in the pdf file. For more details, please visit: https://helpx.adobe.com/acrobat/using/edit-text-pdfs.html

    Kind regards
    Rahul Tyagi

  • How to change the SGA and PGA in 10g r2 RAC

    Hello

    How to change the SGA and PGA in 10g r2 RAC, its Linux.

    Hello

    Here's the way I followed to change the SGA and PGA in CARS.
    --------------------------------------------------------------------------------
    Action plan to change the parameter memory in the environment(5/21/2010) of production

    Note:
    =====
    Practice must be done in the DEV/TST environment before going to Production.
    Although the procedure can be applied in the testing environment the evolution of values
    used in the test environment should be amended since number of RAM are not the
    even between the production and test servers.

    1 changes to these two parameters in one of
    the prod instance, e.g. PROD1
    ====================================================
    Connect as sysdba on sqlplus
    --------------------------

    Change:

    ALTER system set sga_target = 28G scope = spfile sid ='* ';

    Change:

    ALTER system set pga_aggregate_target = 4G scope = spfile sid ='* ';

    SQL > alter system set pga_aggregate_target = 4G scope = both;
    SQL > show parameter pga_aggregate_target;
    -should see the number altered on both instances

    Change:

    SQL > alter system set sga_max_size = 28G scope = spfile sid ='* ';

    SQL > alter system set sga_max_size = 28G scope = spfile;

    SQL > alter system set sga_target = 28G scope = spfile;

    3 stop PROD database (two instances must stop)

    $> srvctl stop database d PROD
    $>. / $ ORA_CRS_HOME/bin/crs_stat - to check the status of the database

    4. establish the PROD database (two Forum should be high)

    $> srvctl START database-d PROD
    $>. / $ ORA_CRS_HOME/bin/crs_stat - to check the status of the database

    connection in both cases as sysdba to check
    --------------------------------------------

    SQL > show parameter pga_aggregate_target
              
    SQL > show parameter sga_max_size
    -should see the number of change always there in both cases
    -According to step 1

    -After confirmation above two parameters are changed on both instances.
    -then make the syntax below in a case

    (5) check that everything is ok

  • How I change the fonts and colors of default return?

    I changed the font and the color of the text through the Tools button and the button options and the tab content. I can't find anything tell me how to change the fonts and colors to the colors and fonts by default. Can you advise me? I use Windows 7 Home Premium OS. Thank you.

    Hi Brenda19605,

    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a & s = do & r = 0 & s = as

    The default settings for the police are in this article:
    https://support.Mozilla.org/en-us/KB/some%20text%20shows%20up%20bold%20after%20upgrade

    Unfortunately for the default color has no good reference. For the text, but it is black (most lower-left), the background is white (color above left). Unvisited links is blue (column 8, line 5) and the visited link is purple (column 9, line 5).

    Let me know if you need help more!

    Lordfreak

  • How to change the search fields displayed on the homepage of UCM 11g?

    Hello

    How to change the search fields displayed on the homepage of UCM 11g?

    Another option for you.

    Follow the links below.

    How to: Customize the home page of Oracle UCM with configuration manager. -Blog of BlueStudios Johns

    Example of a custom component.

    bluestudios.co.uk/blog/wp-content/uploads/2009/02/ether_homepage1.zip

    -Prashant

  • How to change the size and color of 'staticText '?

    Can anyone share please how to change the size and color of the object "staticText"?

    function buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('pallet', 'Gear of Stress', undefined, {resizable: true});

    var txt is myPanel.add ("staticText", [0,0,100,20], "txt");.

    txt. newFont, fontSize, color?

    Return myPanel;

    }

    var myToolsPanel = buildUI (this);

    I did a quick test on a PC at the office and it seems that Gill without isn't a stock PC police. You could comment on these out or change them to a police stock as Helvetica or something. Once I removed that it has launched on PC very well.

  • How to change the database metadata after OIM/OAM installed?

    Hello world

    To change the database/schema of metadata for our installation OIM/OAM.

    What I intend to do is:

    1. create the new db

    2. run the RCU for the OID and OAM utility.

    3. change the connection pool data source in the Weblogic OAM console.

    Is there anything else I need to do?

    I know, there was a connection to the database when I created the home field of the OID (via config.sh). I tried to run this script config again, but could not find a way to change the domain, nor I see how do in one of the consoles (much).

    Any help appreciated!
    D

    for OID, updated if necessary tnsnames.ora and data sources

    OAM, update data sources.

    For IOM, consult this section docID 1359656.1: configuration of JDBC connection of IOM in metalink demand side.

  • How to change the width and height of the title?

    Program: First Pro CC

    Recently I create da title for my video. I noticed that when I had looked at the preview of the title and the video, the title is so blurry. My settings at first:

    SAve.PNG

    How am I able to change the width and height parameters (to make the title more high definition) , without having to create another title in replacement from that Fuzzy? I don't ask if I have to create another title and insert it in the video, and then having to erase those blurry I had to replace. How are you able to change settings of the original title, without having to make a new title? Should I go to the 'Properties' tab when there is nothing at all (as in there is no option to change the w + h title quality) to change the current settings of the title?

  • How to change the rows and columns of newtabs?

    I can't change the rows and columns to mozilla version 33

    From topic: config browser.newtabpage.columns shows 5 by default, but these 5 columns appear not only 3 as before. Don't know why, but I use generally not even the default new tab page in my profile daily.

    Still works this - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - extension to change the page of newTab via a user accessible interface name in the Addons, rather than routing autour Manager inside Firefox. I use this add-on in a second profile that I use for my favorite sites

  • How to change the subject and message body of a message alert foglight?

    Hello

    I would like to change the subject and the message body of the foglight e-mail alert that is triggered from the different alarms. We run Foglight 5.6.4. Can you please direct me to a documentation or suggest the way?

    Kind regards

    Murali

    I got this job with the help of Tim. Thank you very much Tim.

  • How to change the fonts and font size in sticky notes

    Original title: reminder

    How can I change the font and font size in sticky notes?

    Hi Jerry,

    Thanks for posting the question in the Microsoft Community!

    See the article to format the text in a sticky note in the site:

    Use reminders

    http://Windows.Microsoft.com/en-us/Windows7/using-sticky-notes

    If the problem persists, or in the future if you face problems of Windows let us know and we would be happy to help you.

  • How to start the database and servers after the installation of the Webcenter JSK Portal

    Hello

    I finally installed the portal WebCenter using JSK, after it turned off the machine, I don't know how to start the database or server, I need to set the environment variables? create the oracletab file? or is it a file .sh to start the database and servers?

    Any help will be great!

    Best regards!

    Thanks Françoise-Oracle for your response

    As you say, I need to go to /WCPortal_JSK_Linux.x 86-64/linux64, I found all the scripts that I needed to start or stop a server or database. But more especially if you run evertything, (I did) you just need to run the de./startup.sh script and wait, he'll run, but take some time.

    Best regards!

  • How to change the vibrance and clarity during editing

    Hello

    I wonder how do I change the clarity and vibrance imporing RAW PE file.

    Concerning

    Lightroom is essentially just the dialog box Camera Raw with additional features. So, when you change in the develop module, you are always within Camera Raw. Adjustments Vibrance and clarity are the Raw settings and can not be performed outside the Camera Raw dialog box.

  • How to change the IRQ and address of some of the COM ports

    Original title: jcertain

    No, I loaded 7 a window in one of our systems.  I want to change the IRQ and address some of the COM ports and were not too.  In the pasted, you can enter the Device Manager and click on the device, then go to the "resources" tab.  There, you can find a box that allows users to disable "USE AUTOMATIC ADJUSTMENT", which would allow you to change the IRQ and address.  But for some reason any box is not highlighted so you can not.

    Please post your request here:

Maybe you are looking for