Set Value of one item to another item at runtime

Hi,
I'm using APEX 4.2
my question is i'm creating two region on same page one is form another is html region
i'm filling form and press create button then the value created by primary key should be display in
html region page item (while it only display in form editable mode)
i want after click create button html region get refreshed and value should display in that display only page item
any idea?
thanks,
pars

Pars,
At first you said,
my question is i'm creating two region on same page one is form another is html region
i'm filling form and press create button then the value created by primary key should be display in
html region page item (while it only display in form editable mode)
i want after click create button html region get refreshed and value should display in that display only page item
After that you said,
i want value should be display in display only item in another region after i click create button, not in form editable mode
now when i'm click create button page get refreshed now at backend whatever value is stored in database column should be display on disply only item after click create button.
Really hard to get your requirement.. If possible can you create an example application for this in apex.oracle.com and share the detail with explanation. So that anyone can help you..
Thanks
Lakshmi

Similar Messages

  • Copying value from one cursor to another

    Hi,
    I have a problem while copying values from one cursor to another cursor.
    The code looks like below.
    PROCEDURE XYZ
                TransactionResultSet OUT NOCOPY types.ref_cursor,
    IS
                temp_cursor types.ref_cursor;
                wip_rec types.ref_cursor;
    BEGIN
    DECLARE
                    CURSOR temp_cursor IS
                SELECT ...........
    END;
    BEGIN     
        FOR wip_rec IN temp_cursor
        LOOP
        update tinsagr set something
        where {the condition}
            IF SQL%ROWCOUNT = 0 THEN
      dbms_output.put_line('this is test ');
            Fetch wip_rec into TransactionResultSet;
         END IF;
       END LOOP;so basically i want to iterate the "temp_cursor" and depending on the values i get it from here i shall update a table. Actually i want to exclude few records from "temp_cursor" and add it/copy rest of the records to "TransactionResultSet"
    That means say initially " temp_cursor" has 100 records and i updated 5 records in a table and same number of records should be excluded and rest should be added to the output cursor TransactionResultSet.
    How do i achieve it?
    while saving i am getting
    (1): PLS-00456: item 'WIP_REC' is not a cursor.
    Do any one has any idea what to do in such scenario?

    There are options like....
    SQL> CREATE OR REPLACE TYPE emp_obj AS OBJECT (ename VARCHAR2(50), dept NUMBER);
      2  /
    Type created.
    SQL> CREATE OR REPLACE TYPE emp_tbl IS TABLE OF emp_obj;
      2  /
    Type created.
    SQL> set serverou on
    SP2-0158: unknown SET option "serverou"
    SQL> set serverout on
    SQL> DECLARE
      2    rc      sys_refcursor;
      3    v_ename emp.ename%TYPE;
      4    v_dept  emp.deptno%TYPE;
      5    ---End Of Local Varriable Declaration
      6    --Procedire declaration !
      7    PROCEDURE TEST_CUR(pi_out_ref_cur IN OUT sys_refcursor) IS
      8      emp_rec emp_tbl;
      9    BEGIN
    10      /* This BULK COLLECT can be done with explicit cursor,Ref Cursor
    11      with some simple modification, Here I have used implicit cursor! */
    12      SELECT emp_obj(ename, deptno) --Casting as the object
    13      BULK COLLECT
    14        INTO emp_rec
    15        FROM emp
    16       WHERE deptno = 10;
    17   
    18      dbms_output.put_line('Records selected are:');
    19      FOR i in 1 .. emp_rec.COUNT LOOP
    20        dbms_output.put_line(emp_rec(i).ename || '--' || emp_rec(i).dept);
    21      END LOOP;
    22      --Now we are filtering the record and may be doing some operation with each record.
    23      FOR i in 1 .. emp_rec.COUNT LOOP
    24        IF emp_rec(i).ename = 'KING' THEN
    25          --You can change this IF according to your need.
    26          emp_rec.DELETE(i);
    27        END IF;
    28      END LOOP;
    29      OPEN pi_out_ref_cur FOR
    30        SELECT * FROM TABLE(emp_rec); --Using the TYPE AS table.
    31    END TEST_CUR;
    32    /* Main execution or procedure calling section*/
    33  BEGIN
    34    --Actual calling
    35    TEST_CUR(rc);
    36    dbms_output.new_line;
    37    dbms_output.put_line('Now in Ref Cursor');
    38    dbms_output.put_line('****************');
    39    LOOP
    40      FETCH rc
    41        INTO v_ename, v_dept;
    42      dbms_output.put_line(v_ename || '--' || v_dept);
    43      EXIT WHEN rc%NOTFOUND;
    44    END LOOP;
    45 
    46  END;
    47  /
    Records selected are:
    CLARK--10
    KING--10
    MILLER--10
    Now in Ref Cursor
    CLARK--10
    MILLER--10
    MILLER--10
    PL/SQL procedure successfully completed.
    SQL>

  • Pass value from one VO to another VO.

    I want to create an item on the page but the value is in a different VO in the same root AM. How would I do this other than extending VO(1).
    Both the VO's are on the same page.
    Can you please let me know.
    Thanks
    Rama
    Edited by: user4280075 on Apr 3, 2012 1:41 PM

    Hi,
    Not sure what is your requirement. But if it is just you want to create a new ITEM on a page and the VO's are already present then what is the issue. You can set the vo attribute of any of the VO's available.
    But if your requirement is to copy a value from one VO to another then you can iterate the VO and get the required value and set it to the desired VO row.
    Thanks,
    Mukesh Uchaniya

  • Passing the values from one pgm to another pgm (Calling pgm has no sel scr)

    Hi gurus,
    In my requirement i need to pass the values from one program to another program.
    I am using SUBMIT statement . But , the program which i am calling has no selection screen.
    So how can i pass the values?
    Please help me ASAP.
    Regards,
    Bhanu.R

    Export your internal tables or work areas to a memory id in ur program before u use submit.
    Then in second pgm you have to import from memory id given above.
    example.
    EXPORT gs_header FROM gs_header to memory id 'HEADER'.
    EXPORT gt_item FROM gt_item to memory id 'ITEM'.
    SUBMIT YFIIN_DISHC_MAILREPORT EXPORTING LIST TO MEMORY AND RETURN.
    In your second pgm you can write
    import gs_header TO gs_header from MEMORY id 'HEADER'.
    import gt_item TO gt_item from MEMORY id 'ITEM'.

  • Move value from one listbox to another listbox

    Hi,
    I have two list boxes with list of values in it. Can anyone help me to move values from one listbox to another listbox on click of a button in AWT. It will be of great help if i can get any sample code.
    Thanks a lot in advance

    hi,
    do u want to move a specific item that is selected or all of the items?
    anyway the logic is very simple!:)
    if u want to transfer the currently selected itme form the first List box,
    use the method getSelectedItem() to get the currently selected item.
    then keep this value in a String variable (item)
    and use getItemSelected() to get the Index of it in int.
    keep this value in an int variable (index)
    then delete the item from the first list using the method remove(index) on the first list object.
    then add the item to the second list using
    add(item) on the second list object.
    hope u can work it out urself from here!
    rgds
    JP

  • How to move value from one tlist to another tlist in same form?

    how to move value from one tlist to another tlist in same form on button press?
    Same like in data block wizard when we select value from 1st list it will go to 2nd list and can be move back. Please help i am new to forms .
    Regards

    just call the following proc in your add & add all buttons. Reverse the code for REMOVEs
    this proc will move one item at a time from list_item1 to list_item2.
    PROCEDURE add_an_item
    IS
      v_list_count    NUMBER;
      v_item1_label  VARCHAR2(60);
    BEGIN
      IF :list_item1 IS NOT NULL THEN v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
          IF v_list_count >= 1 THEN FOR i IN 1..v_list_count
          LOOP
             IF   :list_item1    = Get_List_Element_Value('list_item1', i)
             THEN
                  v_item1_label := Get_List_Element_label('list_item1', i);                 
                  Add_List_Element('list_item2',1,v_item_label,:list_item1);         
               Delete_List_Element('list_item1',i);
               Exit;
             END IF;
          END LOOP;
           END IF;
       END IF;
    END;
    *********************************************************************************this proc will move all items from list_item1 to list_item2.
    PROCEDURE add_all_items
    IS
      v_list_count NUMBER;
      v_item_label VARCHAR2(60);
      v_item_value VARCHAR2(60);
    BEGIN
    v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
    IF    v_list_count = 1 AND Get_List_Element_Value('list_item1', 1) IS NULL THEN NULL;
    ELSIF v_list_count >= 1 THEN
           FOR i IN 1..v_list_count
           LOOP
            v_item_value  := Get_List_Element_Value('list_item1', i);
            v_item_label  := Get_List_Element_label('list_item1', i);       
            Add_List_Element('list_item2',i,v_item_label,v_item_value);
           END LOOP;
           clear_list('list_item1');
    END IF;
    END;I added [ code ] tags to make this easier to read.
    Message was edited by:
    Jan Carlin

  • Importing values from one spreadsheet to another

    I have created 2 Numbers spreadsheets to track my vacation expenses this year.  Is it possible to automatically import a value from one spreadsheet into another? They are both in the same workbook, one keeps track of mileage and fuel expenses, and the other keeps track of all other expenses.
    Thanks in advance for your help.
    -Nancy

    Hi Nancy,
    To reference a cell on a different sheet or table, when you come to the point in your equatino where you need the address of the remote cell, just navigate to the remote cell and click on it, then continue typing or hit Return if that is the last item in the equation.
    Of course you can also just enter the remote address manually. The syntax is Sheetname :: Tablename :: Cell.
    If the table name is unique in the document, it is not necessary to use the sheet name.
    About the names of things in Numbers - a little different than in Excel.
    The entire document is referred to by Apple as a Spreadsheet, just to be consistent with the industry. I believe you called it a Workbook, an Excel term. Most folks here simply call it a Numbers Document.
    What you called a Worksheet is a "Sheet" in Numbers.
    Within a Sheet you can have multiple Tables, Graphics, Text Boxes, etc.
    In Numbers, Tables are treated like Named Ranges in an Excel Worksheet. They should be kept to just the size needed for the data, and it's best to isolate separate collections of data in separate tables.
    Regards,
    Jerry

  • How to concatenate values from one form to another form using calculated columns in sharepoint?

    Im new to Sharepoint.
     I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
    ex:
    first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
    second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
    now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field) 
    it should be want to show in Calculated columns.
    Can someone make a suggestion on how I can do this.
    Thank you so much for any help you may be able to provide.
    Sincerely
    Ahalya Babu

    Calculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
    Consider using a workflow to accomplish your goal.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Exporting and importing a field value from one screen to another in BSP

    Hi All,
    I am working on a BSP application which consists of multiple screens. I have to export the value corresponding to a value selected from a drop down and import it in another screen so that in the next screen values can be populated corrsponding to the value selected in the drop down in the first screen.
    I tried using SET/GET parameter and also EXPORT/IMPORT so that I can get value from one screen into another screen but both the statements are not working in BSP....
    Please help...
    Vivek Gupta
    Edited by: guptav_infy on Feb 21, 2010 11:33 AM

    Hi All,
    This question is still un answered. please reply ..
    Vivek

  • Pass value from one page to another

    Hi All,
    "How to pass the value from one Flex page to anothere Flex
    page".
    In First Flex page contains One Inputtext and one button is
    there.After entering the data in inputtext box,the user clicks on
    the button then get the data from inputtext box and then i need to
    send that value to another flex page and display there.
    Can u tel me plz............
    Thanks & Regards,
    Nagarjuna.

    I believe you are thinking in terms of HTML and traditional
    page coding. As an old school ColdFusion guy I understand it is
    difficult to leave that behind. (at least it was for me.) Unless
    you literally have two different HTML pages that each have their
    own Flex app running in them you do not need to send data from one
    page to the next like you would with Web Forms. (If you are doing
    that you may want to simply write the data to a Shared Object, Pass
    it to a server to store and then feed back into the second Flex App
    when it loads or perhaps use the ExternalInterface to then pass it
    through as a series of URL parameters that can be loaded into the
    next Flex App.)
    In Flex you do not have to worry about loosing state between
    pages because there are literally no pages. Only different views.
    You would not "Send" the value from one page to another. You
    provide a mechanism for the second view to reference the same model
    or data object (most call them ValueObjects) that the first view is
    setting via the form fields.
    You would want to use a ValueObject in the first VIEW and
    then fill the object with the form data using setter methods on the
    object. For example set the fields onChange event to call the
    setter on the object and pass it the form fields value as the
    property. Alternately you could bind the values of the model
    directly to the fields so that they automatically obtain the data
    that is being filled in.
    Depending on how complex of an application you are going to
    build and how scalable it must eventually be you have many
    different options to choose from to allow the second View to use
    the data set but the first. However to make the application
    ultimately more scalable you are going to want to keep your view
    separated from the controller and that separated from the
    Model/ValueObject. (By seperated I mean in different classes.)
    I would suggest looking up the subject of MVC in Flex and
    also the Mediator Design pattern. There are many great sources of
    information.
    Here are a few links that may help with ideas.
    http://flexblog.faratasystems.com/?p=246
    http://pages.cpsc.ucalgary.ca/~heatond/mediator/
    http://livedocs.adobe.com/flex/3/html/help.html?content=introbd_2.html

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • How to pass column name as a   values from one page  to another

    hi
    i have created a report(pivot) from a table
    SQL> SELECT * FROM T;
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    A   AB           3                    2
    A   AC           2                    3
    B   AB           5                    4
    B   AC           6                    5
    SQL> SELECT C1
      2  ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
      3  ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
      4  ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
      5  ,SUM(C3) FROM T GROUP BY C1;
    C1          AA         AB         AC    SUM(C3)
    A            2          3          2          7
    B                       5          6         11
    SQL>
    my requirement in Apex is like this(reverse)
    eg-
    when i click on cell values '2' then,it should return
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    {quote}how to pass column name as a  values from one page to another
    for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
    Report
    Amu

    thanks for your reply
    i 'm doing what exactly you mention here .
    my problem here is
    i have 15 columns
    i am executing a query based on the values of the column(column name)  in the target page
    1)here i am passing(all) the column values to the next page-but  i want to pass only one column values(column name)
    when i click on any cell of that  column
    OR
    2)i can pass all column name to target page -there(in the target page) i can filter out
    i think option 1 would good if you filter out the unwanted columns
    Regards
    Amul

  • Transfer field value from one screen to another screen

    hi gurus,
    I am using field exit in mm02, i want to transfer field value from one screen to another screen. I am using Export, Import, Some FM like DYNP.......
    but not getting the value.
    can any one give idea about this.
    Thanks in Advance,
    Sudheer.

    I THINK IN FIELD EXITS SOME RESTRICTION IS THERE YOU CAN NOT USE CALL TRANSACTION OR CALL SCREEN. I DONT KNOW WHAT IS YOUR ACTUAL REQUIREMENT. BUT YOU ARE TRYING TO CALL TRANSACTION USING MEMORY ID OR SOMETHING THEN I THINK IN FIELD EXIT YOU CAN NOT DO THAT. PLS CORRECT ME IF I AM WRONG
    REGARDS
    SHIBA DUTTA

  • Transfer value from one VI to another over a network?

    Hi,
    What is the best/easiest way to send a numeric value from one VI to another over a LAN.  I only need one number to be sent every time the first vi is run which won't be that many, I then need to run the other VI and access that data.  I could save the value to file and then open that file from the other VI, this I thought is a bit messy and wondered if LabVIEW accommodates this through property nodes etc rather than writing to file?  Also by saving to file etc the reading VI needs to execute after the first one has written obviously, this could cause timing issues and to have something like a property node would be far better.
    Many Thanks 

    Use DataSockets. The simplest, although not necessarily the fastest.
    Check out the examples.
    Basically, you "connect" a control on one VI (on one machine) to another control (possibly on different VI, possibly on different machine.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Pass value from One Screen to Another

    Dear all,
    please tell me how can I pass field values of one screen to another called screen.
    Please help me.
    Regards
    H.P.

    Dear Singh,
    If it is dialog programming, then first get the values in first screen and pass those values to the second screen PBO.
    Rgds,
    Kiran

  • Pass Value from one tab to another

    Hi,
    I have a requirement to pass a value from one tab to another.
    For ex: I have a CC&B page with two tabs (Main, Steps).
    In the Main tab, I choose a Field Activity. Once it is chosen, I want to pass the value of the Field Activity ID to the 'Steps' tab. Once I get the value of the field Activity, I can then query up a table and populate some fields in the Steps tab. How can i achieve passing the value if FA Id from one tab to another?
    I tried to create an extension of the page using ext_page.jsp. But this extension just provides us methods like extPreOnWindowLoad(), extPostOnWindowLoad() etc which really is not helpful.
    Any suggestions?
    thanks

    Hi,
    We cannot pass multiple values using Drill Filters beause it is based on hierarchy that can take only one value at a time.
    If you want you can use Report Level Filter instead.
    Neither can we pass dril filters from one tab to other.

Maybe you are looking for

  • SAP PI: Using Variable Header  Binding in Receiver Mail Adapter

    Hello, I try to use Variable Header Bindings in the Receiver Mail Adapter. Therefore I wrote the following User-Defined-Function in a mapping: Java Function Start - DynamicConfiguration conf = (DynamicConfiguration) container     .getTransformationPa

  • Windows 10 to be free upgrade for first year for users of Windows Technical Preview?

    Hello, in article I have read that will upgrade to Windows 10 users for free Win 7 & 8.1. I want to ask how it will be with those who use a version of the technical prewiev. I will also have a free update? Thanks for the answers Vít Repka

  • Blue dots where volume control should be.

    I just got my iPod nano and when I turned it on this morning to listen to a song blue circles were where the blue bar is supposed to be at the bottom of the screen when you are listening to a song. I can still turn the volume up and down, and listen

  • Trying to Upgrade Quicktime and iTunes

    My old iPod Mini broke. I bought the new Ipod Nano yesterday and thought it would just automatically download my songs from my old Itunes. It said I had to upgrade my Itunes, which I went to do, and as soon as it was almost fully downloaded there was

  • "Today" smart Mail folder filters for wrong date

    Hi The Today smart folder in Mail is set to show today's messages, but is showing messages dated August 8 instead. I only got my MacBook Air yesterday and it's my first Mac, but I'm computer-literate so I checked the date setting and it's correct. I'