How can I pass a value of datagrid to my textinput

Hi I am new to adobe flex!

I have only one line in my datagrid and it has 5 dataField. These dataFields are id, ln, fn, kurs, yr. I want to pass these value in a textinput, respectively.

Here is my code:

"< mx:DataGrid x ="396"y ="10"width ="110"height ="124"id ="dginfo"active ="true"dataProvider =" {studinfo.lastResult.datas.data} "creationComplete =" studinfo.send () "editable ="false"visible ="true">
< mx:columns >
< mx:DataGridColumn headerText = "C0" dataField = "Username" visible = "false" / >
< mx:DataGridColumn headerText = "C1" dataField = "id" / >
< mx:DataGridColumn headerText = "C2" dataField = "ln" / >
< mx:DataGridColumn headerText = "C3" dataField = "fn" / >
< mx:DataGridColumn headerText = "C4" dataField = "kurs" / >
< mx:DataGridColumn headerText = "C5" dataField = "year" / >
< / mx:columns >
< / mx:DataGrid >

I want to convey here (code)

< mx:TextInput backgroundColor = "#ABA5A5" editable = "false" enabled = "true" color = "#000000" horizontalCenter = "-50" red = "-71" id = "idview" text = "{data.id}" / >
< mx:TextInput id = "idview" editable = "false" enabled = "true" text = "{data.ln}" / >
< mx:TextInput id = "lnview" editable = "false" enabled = "true" text = "{data.fn}" / >
< mx:TextInput id = "fnview" editable = "false" enabled = "true" text = "{data.kurs}" / >
< mx:TextInput backgroundColor = "#ABA5A5" editable = "false" enabled = "true" id = "yrview" text = "{data.yr}" / >

My problem is that this code does not work, it will not be seeing what you have...: D

It does not display anything, because data.ln doesnot matter which value. in your code, in the text property of the textfield, the data are considered to be a property of your application, a dynamic object; so even he doesnot have property ln, it shows no error, display nothing.

do you mean to fill your textfields if the datagrid is selected? If so:

.

.

.

.

If you want to fill the same data without worrying if it is selected in the datagrid control, you should not think as you receive data from the DataGrid, instead, you found your values directly from the studinfo.lastResult

in such:

.

.

.

.

Note: If your result contains several data, you should treat it as table:

studinfo.lastResult.datas.data [0] .ln

Tags: Flex

Similar Questions

  • How can I pass a value to a variable binding in a report query?

    I did a query of report to print a PDF report, with a dinamyc source query that has a connection variable, like this:

    SELECT EMPNO, EMPNAME, EMPDEPT

    FROM EMP

    WHERE EMPNO =: PARAMETER;

    I want to call the report print directly from a page, by using the url print showed by apex:

    f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = MYREPORT

    How can I pass the value of the variable binding: PARAMETER using this URL?

    I don't think you can use the url parameter passes in a report query.

    the binding variable: PARAMETER must be a page element or an element of the application.

    use the "include session information and application" in the defination of report query to bind the value when the report is run

  • How can I pass the value of one for two binding settings

    Hi all
    I have a search query

    Select Distinct CONSOLIDATION_SUMMARY_ID, CREATION_DATE CREATED_BY BATCH_ID, PROCESS_FLAG, ERROR_MESSAGE, CUSTOMER_ID, BILLING_FREQUENCY
    CONSOLIDATION_LEVEL, SOLD_TO_ORG_ID, SHIP_TO_ORG_ID, TRANSACTIONAL_CURR_CODE, INVOICE_TO_ORG_ID, PRICE_LIST_ID
    ORIG_SYS_DOCUMENT_REF, INVENTORY_ITEM_ID, ORGANIZATION_ID, ORDERED_ITEM, ORDERED_QUANTITY, UNIT_LIST_PRICE
    UNIT_SEELING_PRICE, ORDER_QUANTITY_UOM, ORDER_NUMBER, ORDER_DATE, INVOICE_NUMBER, INVOICE_DATE
    FEE_CALCULATION_WORKSHEET_PDF, TRADE_DETAILS_PDF, INVOICE_REPORT_PDF, PRICING_ATTRIBUTE_CONTEXT
    PRICING_ATTRIBUTE, PRICING_ATTR_VALUE_FROM
    of xxcurrnx.xxcur_trade_consol_summary XXSTR
    WHERE XXSTR. BATCH_ID = NVL (: 1, XXSTR.) BATCH_ID)
    and XXSTR. CUSTOMER_ID = nvl (: 2, XXSTR.) CUSTOMER_ID)

    But I need to pass only one value to this query: throw the code below

    public void passTocusttrxn (String vcustid)
    {
    System.out.println ("trxn vo customer id:" + vcustid);

    XxcurtradeconsummaryVOImpl vOrdnumb = getXxcurtradeconsummaryVO1 ();
    vOrdnumb.setWhereClauseParam(0,vcustid);
    vOrdnumb.setWhereClauseParam(1,null);
    vOrdnumb.executeQuery ();

    System.out.println ("the query that is run after is:" + vOrdnumb.getQuery ());
    }

    But it throws the exception below.
    java.sql.SQLException: parameter IN or OUT to missing index: 1

    could you please tell me how can I achieve this.

    Thank you

    Hello

    I hope that the problem solved, pls, close it.

    Regads
    Meher Irk

  • How can I pass a value to var between MovieClips?

    New week, new question.

    I could not find the answer to this: I work with a var defined in the scenario main var score int; , which I use in 10 different movie clips using partition var = .score MovieClip (this.root);

    Everything works perfectly on the first MovieClip, but when the partition is then do not keep the value assigned in the previous MovieClip so the score is lost.

    The clips are questions and they are place on the main time line in different settings and layer stock main time line which contains only this:

    Stop();

    var score: int;

    nextQuestion.addEventListener (MouseEvent.CLICK, newQuestion);

    function newQuestion(evt:MouseEvent):void {}
    nextFrame();
    }

    covers each image with each another MovieClip.

    What I need to know is how to make this value to pass to the next video Clip?

    I mean, it's not to create a new variable of score for each question.  Use the MovieClip (this.root) .score in all cases.

    MovieClip (this.root) .score += 61; etc...

    When you create a new var in each question and assign the value of the partition, you are not linking back to the partition in the main timeline.  And I don't see anywhere in your code when you update the main partition.

  • How can I change the value of a control on front panel?

    On the front panel, I'm doing a complex control that consists of a Slider control and control of the digital inputs. Both controls display the same information and either may be used for entry. When changing value, I want the other control to display the same value.

    How can I change the value of a control on front flap when another control changes the value? I know how to use a structure of the event to detect value has changed, but I do not know how to impose control on front panel to change its value in the block diagram.

    Why do you not use a digital display on the slider, and no code is required:

    EDIT: Yes, he said. ***

  • How can I write the value of floats Unitronics vision230 PLC with modbus Ethernet

    How can I write the value of type Float in unitronics PLC Vision230 modbus ethernet (Ethernet Master Query.vi MB) usinsg I read and write register 32 bits, for example, I want to write the value 23.45 2nd Add. MF. And registry MF is the 32-bit registry. I read and write register 32-bit.

    Narendra.

    Narendra,

    Two characters can type cast into a uint16 you VI supports.

    To summarize. Take one (4 bytes). Flatten it to a string (4-byte) divided this string into two parts of 2 bytes each. Cast in u16 (16 x 2 = 32-bit).

    However, if you really want to follow the IEEE standards then you will need refer this KB. His is not that simple, but seems closer to what you are looking for.

    Amit

  • How can I set default values to set the Mode in the config of the AO?

    Hi, how can I set default values to allocate mode in the config of the AO. To be precise, in the attached vi, I need to set the Mode allocate in the AO Config to ' use FIFO memory (6) ' if the value inside the structure of my case is false and 'no change (0)' if the value inside the strusture case is true.

    Create two constants for Mode allocate input (right click > create > constant). A place in the real case of the structure of the case and place it in the case of false. Their son in the same tunnel (border of the structure of the case), then the tunnel of wire to the pole to allocate the AO Config Mode. I do not have traditional DAQ installed, but who should do it.

  • How can I change the value of a print job in Visio 2003. It is for 1 or 2 pages, I want that he 9 printing pages. Thank you.

    How can I change the value of a print job in Visio 2003.  He is currently configured to print pages 1 and 2, but I want to print all 9 pages at a time.  Thank you

    You can remove 1-2 and type 1-9? All HP and Epson printers I have worked this way.

    That's all I can offer as I'm not familiar with your printer.

  • in vista how can I pass notpad text to a mail recipient?

    I have vista how can I pass on notpad text to a mail recipient? I havn't got 'word' installed.

    Thank you.

    You can go to file | Except that in Notepad to save the text.  You can then use Insert | Attachment to attach the text of a message to the folder (or just drag the file recorded by the message above, then drop it) or you can just copy the text (use follow-up of CTRL-A CTRL-c), then in an e-mail message, and then paste it (CTRL-V).

    Steve

  • Please how can I insert a value of richinputtext in the database string attribute

    Please how can I insert a value of richinputtext in the database string attribute

    If you can get its value at the bean and then call your insert statement to put it in the DB table

    and if you want to know about the execution of SQL query

    then check - Ashish Awasthi (Jdev/ADF) Blog: SQL to run in an ADF Application using DataSource DBTransaction & JDBC query

    Ashish

  • Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    What is your version of JDev?

    Actually your question is not clear to me, but as I understand, it is you the table in the page and you have popup inside this popup you have the button you need when you click on the button to read the value of the selected table row. In the listener action button, so if you can get the current row of the table and after that you can get any attribute of the line as:

    DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("TableIteratorName"); // from pageDef.
    Row r = iter.getCurrentRow();
    Object value1 = r.getAttribute("attribute1");
    Object value2 = r.getAttribute("attribute2");
    
  • How can I use a value of jQuery in my project of edge animate?

    I use jQuery to obtain a query string value and I am able to display the value with an alert. However, I would actually use it in my project of edge animate. How can I get this value?

    Add the Javascript file as an external Javascript file in the dashboard Interface and add a variable.

    For example,.

    AdobeEdge.myVar1 = "a Variable"; It is a chain called myVar1

    and you can easily just call this variable to the edge like that.

    AdobeEdge.myVar1;

    Or use in an alert or whatever.

    Alert (AdobeEdge.myVar1);

    I did something like this some time ago is an example file of it

    http://www.mediafire.com/download/68tcf6s8i2084m2/Untitled-1.zip

    I hope it helps.

  • 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 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 a value from a function from pl/sql by OADBTransaction

    Hi all
    Hope you will be fine.
    as we know, we can get a sequence by this code value:
    Super.Create (AttributeList);
    Transaction OADBTransaction = getOADBTransaction();

    Vendor ID is obtained from the table sequence
    Number supplierId = transaction.getSequenceValue ("FWK_TBX_SUPPLIERS_S");

    My question is how can I get a value in a variable to a pl/sql function:
    the function is defined as follows:
    ******
    create or replace function getNextTrans return varchar2
    is
    Team varchar2 (20);
    Start
    SELECT "CASH". TO_CHAR (SYSDATE, 'DDMMYYYY') | GP_CASH_TRX_SEQ. NEXTVAL FROM DUAL;
    return team;
    end;
    /

    Hey Dina,

    Reference http://www.oraclearea51.com/oracle-technical-articles/oa-framework/229-calling-database-procedures-and-function-from-oaf.html

    Kind regards
    GYAN

Maybe you are looking for

  • Bribery of screen Tecra M5

    Hello I am using my Tecra M5 for about 8 months and it has developed screen corruption. The corruption of the screen is visible both on the screen of the laptop or when you use an external TFT monitor. Corruption appears, as far as I can see, on my b

  • Windows XP to windows 7. free update?

    Hey there, I recently bought windows XP and I was wondring if I could get a free upgrade to windows 7?

  • Error 39 for audio - fix with drivers unable to reinstall - register?

    So I think that all this began after I used AVG antispyware Rootkit scan to remove 16 threats.  Then my audio stopped working and I got 6 of 6 items under ' controllers video game ' with yellow! errors.  I have a Toshiba U205-s5044 windows XP SP3.  I

  • RAID. What is it? Do I need?

    If you've seen the term RAID at the command of a PC or the implementation of a (BIOS/specs etc options) you can have you wondered what it is. Over the years, I have had a few people ask me about this. RAID can be very useful to your needs. Let's star

  • I can include part of a form page to fill out a separate php?

    My site has 40 forms fillable, consisting of 100 questions each. The first section of each form contains 20 questions that are always the same. I can put these 20 questions on a separate page, so when I make changes to this article I didn't what to d