How can I get the value of a comboBox element in a grid?

Hi all

I have a DataGrid with some comboBoxes in two of its columns.

What I need to do, is get these boxes of bombo values when a user highlights the line of the grid NOT when user use the comboBox control. I understand how to extract the values once the change handler is called on the drop-down list, but I don't see a way to get to the comboBoxes that belong to the gridRow highlighted.

I'm sure it's really simple, but I'm not able to find a reference on how it's done. Any help much appreciated.

Copy the following code shows how you can do it if you know the dataProvider for ComboBox data fields.

If this post has answered your question or helped, please mark it as such.


http://www.Adobe.com/2006/mxml '.
Initialize = "initData ()" > "
  
   Import mx.events.ListEvent;
Import mx.collections. *;
private var DGArray:Array =]
{Artist: 'Pavement', Album: 'Slanted and Enchanted' price: 11.99, combo1: [1,2,3], combo2: [100,200,300]},
[{Artist: 'Pavement', Album: 'Brighten the corners', price: 11.99, combo1: [2,4,6] combo2: [200,400,600]}] ;
        
[Bindable] public var initDG:ArrayCollection;
public function initData (): void {}
initDG = new ArrayCollection (DGArray);
}
     
private void dgChangeHandler(event:ListEvent):void {}
var ac:ArrayCollection = event.currentTarget.dataProvider;
txt. Text = "";
txt. Text += ac.getItemAt (event.rowIndex) .combo1 + "\n";
txt. Text += ac.getItemAt (event.rowIndex) .combo2;
}
]]>
  


dataProvider = "{initDG}" change = "dgChangeHandler (event); » >
     
        
        
        
        
         
          
           
            
           

          

         

        

        
         
          
           
            
           

          

         

        

     

  
  

Tags: Flex

Similar Questions

  • ICF custom connector; How can I get the values of the parameters of the recon calendar task?

    I'm trying to create a custom connector icf with progressive reconciliation. My recon schedule a task, I have the settings "attribute of Date additional Recon ' and 'last token" that should be used for gradual reconciliation.

    How can I get the values of the parameters ' attribute of Date additional Recon ' and 'last token "?

    ICF should handle this for you.

    The value of "attribute of Date additional Recon ' must be filled in the OperationOption (e.g. executeQuery() and PROCESSES of FilterTranslator has this as a method parameter).

    For the "last counter", you need to implement ' createGreaterThanExpression (GreaterThanFilter, filter, is not Boolean) ' in your filter translator class. You can get the attribute of the filter object. Look for a description here: http://docs.oracle.com/cd/E37472_01/apirefs.1112/e28159/oracle/iam/connectors/icfcommon/recon/SearchReconTask.html

  • How can I get the value of the element checked a box to tick LOV?

    Hi all

    I need to insert rows into a table when a checkbox element is checked.
    The checkbox element is a LOV in a form.
    -----------------------
    Select the DESCRIPCIÓN display_value, ID_DOCUMENTO return_value
    of DOCUMENT
    order by 1
    ------------------------------

    Source
    ------------------------------
    DECLARE
    CURSOR C_REG_DOC IS SELECT ID_DOCUMENTO FROM REGISTRO_DOCUMENTO WHERE ID_REGISTRO =: P6_ID_REGISTRO;
    v_id_documento documento.id_documento%TYPE;
    v_results VARCHAR2 (50);
    Boolean v_first_loop: = true;
    BEGIN
    for this loop C_REG_DOC
    If v_first_loop then
    v_results: = it.ID_DOCUMENTO;
    v_first_loop: = false;
    on the other
    v_results: = v_results |': ' | it.ID_DOCUMENTO;
    end if;
    end loop;
    Return v_results;
    END;
    --------------------------

    I need to create a process to insert rows in a relational table, but I do not know how...
    ------------------
    FOR *? *
    LOOP
    INSERT INTO registro_documento (id_reg_documento, id_registro, id_documento)
    VALUES(null,:P4_ID_REGISTRO,???);
    END LOOP;
    ---------------

    How can I get the value of the active element (id_documento) to insert it?

    Thank you!

    Alex

    Hello:

    You can use the apex_util.string_to_table function to retrieve the values of the LOV as shown in the example

    declare
    arr wwv_flow_global.vc_arr2;
    begin
    arr:= apex_util.string_to_table(:P_CHECKBOX_LOV_ITEM)
    for x in arr.first..arr.last loop
    // insert statement
    iNSERT INTO registro_documento( arr(i) ,.........id_reg_documento,id_registro,id_documento)
    end loop;
    end;
    

    CITY

  • Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the value of "Off" to all of the other boxes as well. Any help is greatly appreciated.

    Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the 'Off' the value assigned to all the other boxes as well. Any help is greatly appreciated.

    'Off' is the default value of any box when it is not checked. It can not

    be changed.

  • How can I get the value of the element with the namespace?

    I tried to get an element of value in xml a namespace, but I can't.
    I removed the namespace, I get a value of the element.

    How can I get a value of the element with the namespace?

    -1. Error ----------- xml ------------------------------
    <? XML version = "1.0" encoding = "UTF-8"? >

    * < TaxInvoice xmlns = "" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi: schemaLocation =" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 http://www.kec.or.kr/standard/Tax/TaxInvoiceSchemaModule_1.0.xsd "> *"
    < ExchangedDocument >
    < IssueDateTime > 20110810133213 < / IssueDateTime >
    < ReferencedDocument >
    < ID > 318701 - 0002 / < ID >
    < / ReferencedDocument >
    < / ExchangedDocument >
    < TaxInvoiceDocument >
    < IssueID > 201106294100 < / IssueID >
    < > 0101 TypeCode < / TypeCode >
    < IssueDateTime > 20110810 < / IssueDateTime >
    < PurposeCode > 02 < / PurposeCode >
    < / TaxInvoiceDocument >
    < TaxInvoiceTradeLineItem >
    < SequenceNumeric > 1 < / SequenceNumeric >
    < > 200000000 InvoiceAmount < / InvoiceAmount >
    < TotalTax >
    < CalculatedAmount > 20000000 < / CalculatedAmount >
    < / TotalTax >
    < / TaxInvoiceTradeLineItem >
    < / TaxInvoice >


    -2. success - xml - remove namespace.
    <? XML version = "1.0" encoding = "UTF-8"? >
    < TaxInvoice >
    < ExchangedDocument >
    < IssueDateTime > 20110810133213 < / IssueDateTime >
    < ReferencedDocument >
    < ID > 318701 - 0002 / < ID >
    < / ReferencedDocument >
    < / ExchangedDocument >
    < TaxInvoiceDocument >
    < IssueID > 201106294100 < / IssueID >
    < > 0101 TypeCode < / TypeCode >
    < IssueDateTime > 20110810 < / IssueDateTime >
    < PurposeCode > 02 < / PurposeCode >
    < / TaxInvoiceDocument >
    < TaxInvoiceTradeLineItem >
    < SequenceNumeric > 1 < / SequenceNumeric >
    < > 200000000 InvoiceAmount < / InvoiceAmount >
    < TotalTax >
    < CalculatedAmount > 20000000 < / CalculatedAmount >
    < / TotalTax >
    < / TaxInvoiceTradeLineItem >
    < / TaxInvoice >




    -program-
    procedure insert_table
    (
    l_clob clob,
    OK, Boolean.
    Error out varchar2
    )
    is
    l_parser dbms_xmlparser. Analyzer;
    xmlDoc xmldom.domdocument;

    l_doc dbms_xmldom. DOMDocument;
    l_nl dbms_xmldom. DOMNodeList;
    l_n dbms_xmldom. DOMNode;
    l_root DBMS_XMLDOM.domelement;
    l_node DBMS_XMLDOM.domnode;
    l_node2 DBMS_XMLDOM.domnode;
    l_text DBMS_XMLDOM. DOMTEXT;

    buf VARCHAR2 (30000);

    XMLParseError exception;

    TYPE tab_type is Table of xml_upload % ROWTYPE;
    t_tab tab_type: = tab_type();
    pragma exception_init (xmlparseerror,-20100);
    l_node_name varchar2 (300);

    Start
    l_parser: = dbms_xmlparser.newParser;
    l_doc: = DBMS_XMLDOM.newdomdocument;
    dbms_xmlparser.parseClob (l_parser, l_clob);
    l_doc: = dbms_xmlparser.getDocument (l_parser);
    l_n: = dbms_xmldom.makeNode (l_doc);

    l_nl: = dbms_xslprocessor.selectNodes (l_n, ' / TaxInvoice/TaxInvoiceDocument ');

    FOR cur_tax in 0.dbms_xmldom.getLength (l_nl) - 1 LOOP
    l_n: = dbms_xmldom.item (l_nl, cur_tax);

    t_tab.extend;

    t_tab (t_tab.last) .ed_id: = '5000000';

    dbms_xslprocessor.valueOf (l_n, ' IssueID / text () ', t_tab (t_tab.last) .tid_issue_id);
    dbms_xslprocessor.valueOf (l_n, ' TypeCode / text () ', t_tab (t_tab.last) .tid_type_code);

    END LOOP;

    FORALL i IN t_tab.first... t_tab. Last
    INSERT INTO xml_upload VALUES t_tab (i);

    COMMIT;

    dbms_xmldom.freeDocument (l_doc);
    correct: = true;

    exception
    When xmlparseerror then
    -xmlparser.freeparser (l_parser);
    correct: = false;
    error: = sqlerrm;

    end insert_table;
    l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');
    

    try to change as follows

    l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');
    

    Published by: Alexandr on August 17, 2011 12:36 AM

  • How can I get the value of the attribute LogFileSize of C application

    Hi all!
    Now I have implemented monitoring of enforcement. I want to calculate the diff between the replication LSN and current LSN. For this calculation, I need to know LogFileSize attribute of sys.odbc.ini. How can I get a real value inside the C application? Now I analyze output form of connection string SQLDriverConnect, but this not very good method.

    Discover the "ttConfiguration", built in the procedure described in the reference Guide TimesTen. This should give you what you want.

    Chris

  • How can I get the value of list of multiple selection in javascript?

    Hello

    If I want to show the list of colon delimited in an alert box JS what I'd do?
    or if not, how do you show it?

    There are several SelectedIndexes?

    Type = select-multiple

    Bill

    Bill,

    Watch more closely the example I've provided earlierly:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:166

    I use this code:

    for (i = 0; i < $x (pShuttle2) .length; i ++)
    {
    If (p_array == ")
    {
    p_array is $x (pShuttle2).value;.
    }
    on the other
    {
    p_array = p_array + ":" + $x (pShuttle2) [i] .value;
    }
    }

    Get.Add ('SHUTTLE_ITEM_VALUE', p_array);

    to concatenate the values in the table in a colon delimited string by some. It is later used to define the session state of the element of the shuttle to this value.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How can I get the actual size of an element in a photo?

    HI -.

    I was responsible for providing the actual measurements of the elements in the photographs. (There are 300 different photos, so I hope we find a pretty direct solution).

    My thought process was to open a photo, drag a bounding box around the document with the tool of the mark and read the precautions in the Info Panel.  But it does not work too well.


    In the sake of discussion, let's say I have a picture of a simple, plastic, badge/toy type 'happy meal '.  The insignia is actually 1 "squares.

    When I drag the box around it the Panel Info tells me that it measures W:3.37 "X H:3.37".

    ' ' I can't figure out how to get l: 1 "x H:1" to appear in the Info Panel.

    Dimensions of the photo show a massive 66 "x 44" at 72 dpi, and it seems that all 300 of these photos have the same dimensions, so one solution it should all.

    So the question is - using Photoshop, how to learn the physical measures of an element in a photo?

    I thought that this should be simple, but it turns out to be a real headache.

    Any expert TIA of entry.

    Josh

    You open the dialog box Image size (Ctrl Alt i or Cmd Opt i on a Mac).  Make sure that resampling is _not_ checked and the width is defined in inches.  Now do a little math:

    Size of your choice as 3.37 in. is indicated in your case, but you know that the actual size is 1 inch, multiply all that is in the field of the resolution of 3.37

    So if it's 72 resolution must be 242.64

    Make this change and OK it

    Drag another sample around the badge to check that the right size now.

    Don't forget: Re-sample must be disabled in the Image Size dialog box.

  • How can I display the value of an XML element in my dynamic textbox?

    I followed the instructions of the forum here. When I examined the record/document, the result did not 100% accurate.

    Here is my Code XML and Flash Code:

    XML

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >

    < userbase >

    Test line 1 < projinfo > < / projinfo >

    < / userbase >

    Flash

    var my_xml:XML = new XML();

    var myURL:URLRequest = new URLRequest ("userbase.xml");

    var loader_URL:URLLoader = new URLLoader (myURL);

    loader_URL.addEventListener ("complete", fileLoaded);

    function fileLoaded(e:Event):void

    {

    my_xml = XML (loader_URL.data);

    mynamehosp. Text = my_xml.projinfo;

    }

    When I saw the dynamic textbox file showed "line of Test." If I did the < projinfo > element reads like this:

    < projinfo > Test line 1 more text here < / projinfo >

    The dynamic TextBox was 'Test line more text here. It is completely ignoring the number "1". How can I fix it? When our company actually uses it, it is possible that we will have (a) number (s) in the values of the organization unit.

    Any ideas?

    The code is very well. Probably you embed the police, and if you did you do have figures included.

  • How can I get the string value displayed on a digital control defined for the relative time.

    I have a digital potentiometer to display relative time in increments of 30 minutes.

    I want to record the value displayed on the control string.  Unfortunately, when I use the "convert to decimal string.vi" number, the resulting string is just the value in seconds.

    How can I get the value as a string? (for example 01:30 for an hour and thirty minutes)

    Thank you

    Sean

    Hi Sean.C!

    M_Peeker's suggestion is a good thing.  A stage that could clarify things is that you must set the % t <%H:%M> format string entry.

    < br / > Kristen:.

  • How can I get the max of a measurement value

    How can I get the max of a measurement value?

    http://forums.NI.com/T5/LabVIEW/how-can-I-return-the-maximum-value-from-a-voltage-sensor-over/m-p/30...

    I tried the while loop max-min-solution described in this link. But this using my myRio acceleration measurement no longer works. It seems to hang.

    I use the I2C Communication.

    The inner circle while loop is a bad construction.  It will be either executed once, if enter the Boolean value is True, or forever if the value is false.

    Put your records on the timed loop shift and eliminate inside while loop.  Then your code should work.

  • NOAE: How can I get the real value of FPS?

    I implement an external encoder as an After Effects plugin library. This requires a value for the encoding of the FPS as a float value.

    With the help of:

    ERR (suites. IOOutSuite4()-> AEGP_GetOutSpecFPS (mouthand fps));

    gives a completely ridiculous value (1964114, when the FPS publication is 29.97). How can I get the real value of FPS?

    Hello

    It seems that AEGP_GetOutSpecsFPS returns a value of type A_Fixed.  You can use the macro FIX_2_FLOAT() (defined in AE_Macros.h) to convert to a float value.

  • How can I get the numbers to treat my numeric value in text form?

    When using the 'numbers', I want to type in a number and have it show exactly as input, in this case with leading zeros.  How can I get the program to deal with any symbol in the form of text and enter it exactly as I typed?

    Then select all the cells in the Inspector (right bar), click cell (Format-click just above the Inspector, if the cell is not a choice at the top of the Inspector) and change the Format of text data.

    If the Inspector is not visible in the right sidebar, view menu > Inspector > Format.

  • FireFox is no longer crash recovery of open tabs. Management of tab has changed. How can I get the old behavior?

    All my old tabs are missing after a crash. I chose "view my tabs, windows and last time ', like the start option. Many unwanted changes in tab management happened recently. For example when I close a tab in a window of the two tab, I see a blank screen (see picture). Preview display seems to be broken (see attachment). How can I get the old behaviour back?

    After researching the issue, it seems that the problem was a problem of NoScript configuration. After restoring NoScript to the default values, the tab number disappeared.

    Thanks for your help.

    MELL-

    (~ J99) Also note

    mellpell said

    Looks like it's a known problem with Image Tweek:
    http://forums.mozillazine.org/viewtopic.php?p=14029673#p14029673
    https://github.com/CAFxX/ImageTweak/issues/37
    https://github.com/CAFxX/ImageTweak/issues/40

  • How can I get the data view to display the same amount of time I save?

    I use the Sound and Vibration Measurement Suite.  In the data view, I display a graph of time, the power spectrum, the Color Map and the waterfall.  I am also showing strength in numbers group for several bands and doing cutting-edge research.  I record 100 ms of the transient wave.  In the data view, why the temporal plots show several seconds of data?  What determines how much time will appear in the data view?  More important, the power spectrum reflects the power for the entire of several seconds of data displayed?  Same question for power in the values of band and cutting-edge research.  I want to just this data displayed for 100 ms of the wave that I record.  So, how can I get the data displayed (waveforms) and power numbers come only 100 ms of the recorded wave?

    Finally, what is the best way to make account concisely the recorded data?  By slide numbers on the Documentation tab is not concise, because it comes with graphics, etc..  I tried save as ASCII/LVM, but I get a bunch of stuff intermiated I don't care.  Help?

    Hi TimRsandiego,

    SignalExpress is programmed to display graphs with default scales based on the type of action, it's reading. These scales and settings can be changed by right-clicking on the graph, and then select Properties.

    If you are interested to learn more about how to use SignalExpress, I would recommend checking out some demonstrations/tutorials on NI.com. You can find some of these demos at the following location:

    Let me know if you have any other questions.

    Kind regards

Maybe you are looking for