Copying Records from one form to another in Forms 4.5 (**URGENT**)

Hello Gurus,
I have Form A through which I zoom to Form B (using open form). The user selects some records in form B. Those selected records should be displayed in form A after the user clicks a button say 'copy' in Form B.
What is the best possible method to do this.
Thanks in Advance.
Regards
Mallik

You can accomplish this in two ways. To my knowledge you are not dealing with database tables in this issue. I guess. If you are then committing to the table and then requerying is the best thing to do.
You can use either PL/SQL table types or Dynamic Record Groups to accomplish this task. PL/SQL tables are only supported from PL/SQL Ver 2.0 in forms. As long as you are using FORMS 5.0 or above then you can any of the above methods. My example here will tell you how to use PL/SQL table/record types...
0. Create a PL/SQL Record type in a common library that you attach to form A and form B. Lets name it as FORMB_RECS.
1. In Form B write WHEN-CHECKBOX-CHANGED trigger for the check box that you are using to select records. In that please copy the record primary key or all values to the FORMB_RECS declared in the common library.
2. In the COPY button of Form B, copy the number of records in record group to global variable :GLOBAL.Copy_RecCnt and navigate to form A.
3. In WHEN-FORM-NAVIGATE trigger of form A, check and see if :GLOBAL.Copy_RecCnt is > 0. If so then loop through the FORMB_RECS in common library and populte the desired block in form A.
HTH,
-- Raam.

Similar Messages

  • Trigger to copy records from one table to another;  ORA-04091:

    Hello,
    I'm trying to create a trigger that will move data from one table to another.
    I have two tables (Trial1, Trial2) Both of them contains the same attributes (code, c_index)
    I want to move each new record inserted in (code in Trial1) to (code in Trial2)
    This is my trigger:
    Create or replace trigger trg_move_to_trial2
    After insert on Trial1
    for each row
    begin
    insert into Trial2 (code)
    select :new.code from Trial1;
    end;It compiled, but when I insert new (code) record into (Trial1) it display this error:
    Error report:
    SQL Error: ORA-04091: table STU101.TRIAL1 is mutating, trigger/function may not see it
    ORA-06512: at "STU101.TRG_MOVE_TO_TRIAL2", line 3
    ORA-04088: error during execution of trigger 'STU101.TRG_MOVE_TO_TRIAL2'
    04091. 00000 - "table %s.%s is mutating, trigger/function may not see it"
    *Cause:    A trigger (or a user defined plsql function that is referenced in
    this statement) attempted to look at (or modify) a table that was
    in the middle of being modified by the statement which fired it.
    *Action:   Rewrite the trigger (or function) so it does not read that table.I know what does this error mean, but I don't how to fix the error.
    I tried to change the (After insert on Trial1) to be (Before insert on Trial1); that worked, but not in the right way. When I insert new value into (code in Trial1) and refreshed Trial2 table, as much as records I have in Trial 2 they will be duplicated. E.g.
    Trial2
    code
    111
    222
    333when I insert in Trial1
    Trial1
    code
    444
    Trial2 will be:
    code
    111
    222
    333
    444
    444
    444Can you please tell me how to solve this issue?
    Regards,
    Edited by: 1002059 on Apr 23, 2013 5:36 PM

    You should not select from Trial1 - you have the data already. Just insert that value.
    Create or replace trigger trg_move_to_trial2
    After insert on Trial1
    for each row
    begin
    insert into Trial2 (code)
    values (:new.code);
    end; regards,
    David

  • Copying table rows from one table to another table form

    Hi
    I have a problem about Copying table rows from one table to another table form.On jsf pages if you enter command button go anather jsf page and it copy one row to another table row. But when i execute this process for table FORM it doesn't copy I wrote a code under "createRowFromResultSet - overridden for custom java data source support." Code block is:
    ViewRowImpl value = super.createRowFromResultSet(qc, resultSet);
    try{
    AdfFacesContext fct = AdfFacesContext.getCurrentInstance();
    Number abc = (Number)fct.getProcessScope().get("___");
    value.setAttribute("___",abc);
    }catch(Exception ex){System.out.println(ex);  }
    return value;

    Table may be copied with the
    expdp and impdp utilities.
    http://www.oracle.com/technology/products/database/utilities/index.html

  • 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>

  • How can i copy apps from one computer to another?

    how can i copy apps from one computer to another?

    You don't mention which operating system you have so it's difficult to provide an answer since the mac and Windows stores the files differently.
    The other thing you can do is just re-download the apps from the iTunes Store. Just login to the iTunes Store on the other computer using the same Apple ID. On the right-hand side of the iTunes Store page you will see a 'Purchased' link. Clicking on that will take you to a page that will list your past purchases which you can re-download to the new computer.

  • Copying photos from one computer to another, with descriptions

    After editing photo descriptions and locations in iPhoto, it is desireable to be able to copy them to iPhoto on another computer, with the associated photo descriptions and locations.  In principle, this is possible by selecting all desired photos, then selecting File -> Export...  In the Export dialog box, in the "File Export" tab, select "Include: Titles and keywords", and "Include: Location information".  Copy the exported files to the other computer, and do a File -> Import to Library ...
    In practice, this works fine with images taken by some cameras, and not with images from others.  In my limited experience with a Fuji F80EXR and a Canon SX230HS, the above work flow works with the Fuji.  But, with the Canon, while the exported files clearly have the description data embedded in them (as seen by GraphicConverter), it is not imported into iPhoto, nor is it visible in Preview's Inspector.  The workaround I use is to run an exiftool command on the exported files.
    Exiftool is a command line utility that can read and write meta data in image files:
    http://owl.phy.queensu.ca/~phil/exiftool/
    I run the following command on the exported files to rewrite the IPTC Caption:
    exiftool −overwrite_original_in_place -tagsfromfile %f.jpg -ext jpg -"IPTC:Caption-Abstract>IPTC:Caption-Abstract" *.jpg
    Note that the above command overwrites the files that were exported from iPhoto.  If you wish to leave the original files intact, with an "_original" appended to the file name, run:
    exiftool -tagsfromfile %f.jpg -ext jpg -"IPTC:Caption-Abstract>IPTC:Caption-Abstract" *.jpg
    I'm not sure why it is necessary to copy and rewrite that data.  Perhaps there is something strange in the format of the meta data in the file as it comes from the camera, and the iPhoto export does not correct this strangeness. Copying and rewriting the data by exiftool seems to put things right.
    The above works for me, but is somewhat unwieldy.  Is there a better way to copy photos from one computer to another, if iPhoto refuses to import the description data that it was written to the exported files?

    Thanks for the pointer.  I did a test with 10 images, and confirmed the iPLM works, even with the problematic images from my Canon SX230HS.
    The workflow is to use iPLM to create a new Library on the computer that has the photos you want to copy.  Copy the photos to the new Library.  Copy the new Library to the second computer using a method of your choice (file sharing, USB flash drive, etc).  Copy the photos from the new Library to the existing iPhoto Library.
    iPLM costs $20, whereas my original solution was free (but you need to invest the time to get exiftool installed and working).  But, unlike exiftools, iPLM also copies over the Faces information, so it is likely a worthwhile investment if you use that feature. 

  • How can I copy songs from one iPod to another?

    I received a new iPod Classic (last generation) and I'm trying to transfer my songs from my old iPod Nano (also last generation).
    My iTunes library is also split up between my two parent's houses and I only have half the songs on my Nano in this computer's library.
    Is there a way to copy only the songs on the +iPod Nano+ (not the iTunes library) and drop them onto the new iPod?

    *Is there a way to copy only the songs on the iPod Nano (not the iTunes library) and drop them onto the new iPod?*
    You can't copy directly from one iPod to another, you have to copy the songs back to iTunes and update the new iPod from there. If you have any iTunes Music Store purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. You'll find details in this article: Copying iTunes Store purchases from your iPod to a computer
    The transfer of content from other sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    SharePod Windows Only
    iRepo Mac and Windows
    iPodRip Mac & Windows
    YamiPod Mac and Windows
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How do I copy text from one layer to  another?

    I have Googled this but not a single answer seems to work.
    I am using Photoshop CS4 on OS X 10.6.7.
    OK, so  I  have a layer that  has some text in it.  I would like to  be able to  simply copy that  text  from one layer  to  another, but this seems to  be impossible as the Edit Paste menu item is grayed out after I have copied it in to the clipboard.  I can paste it into  the SAME layer, but not into another layer.
    This is how I am trying to  do  this.
    In the layer  with the text, click on the "T" icon to  the left.
    Click on the text, in the layer that I  want to  copy. 
    I select the text (either  by  clicking and dragging or pressing Command-A).
    Next I press Command-C.
    Then I  click on the layer In the Layer Panel) where I want to  paste the text.
    Pressing Command-V is impossible because the Edit-Paste menu option is grayed out!!!!
    WHY??????
    Perhaps more importantly, HOW do I copy text  from one layer to  another?

    First thing you can simply right click on the Text Layer and choose Duplicate Layer.  But that will create a new Text Lay
    er identical to the one you have.
    To answer your question in your case....  Create the Text Layer.   Make a New Layer.  Or have the layer you want to paste into visible.
    Highlight the text layer in the Layer Palette and Ctrl+Click (Win) Cmd+Click(Mac) so that you see marching ants walking around your text.
    Edit>Copy.
    Then highlight your Layer you want to paste into and hit Edit>Paste or Cmd+V / Ctrl+V.

  • HT3819 how do I copy songs from one ipod to another

    How do I copy songs from one ipod to another?

    Transfer the songs to iTunes and then sync to the other iPod.

  • Can I copy clips from one project to another?  The clips are still frames captured within a video event.

    Can I copy clips from one project to another?  The clips are frames saved as stills from a video event.  I try the copy & paste but it does not seem to work.

    The video was converted into MP4 and then I could get it into iMovie events.  I had right clicked and saved farmes as stills.  ABout 50 of them,  When I tried to copy and paste those stills into another project I couldn't. They came up blank.
    I ended up going to a Genius appointment at my APPLE store this afternoon and was told that those "stills" aren't really anything. Not a .jpg or video, so the program doesn't recognize them.  So instead I'm using the Project with the 50 stills and copying other .jpgs and video into it.  (This is for a 1961 Class Reunion, so it's old stuff).  Seems to work so far.
    So bottom line seems to be I can use these stills created from a video in the project in which they were created, but no where else.  Do you know a way around this?

  • How do I copy photos from one iPad to another iPad?

    How do I copy photos from one ipad to another ipad without using my Mac?

    https://appsto.re/us/SQ8Wv.i
    This app helps you to upload easy all you photos by selecting all
    to your dropbox account,
    to Google Drive,
    To your computer,
    to another device,

  • How do i copy music from one ipod to another with 1 cord?

    how do i copy music from one ipod to another with 1 cord?

    You cannot copy content directly from one iPod to another. If the music was purchased from the iTunes Store, you have the following options:
    - sync the iPod to your computer, transfer the content to iTunes, and then connect the other iPod and sync from iTunes
    - use iCloud (which requires iOS 5).
    - download the music from from the iTunes Store to the second iPod. See:
    http://support.apple.com/kb/ht2519
    Regards.
    Message was edited by: varjak paw

  • How do you copy files from one user to another

    How do you copy files from one user to another user on the same machine?

    open your home folder in finder move file to public, log into other account, click the go tab on the finder menu, select computer, your hard drive (Macintosh HD Default)>Users, the origonal user> public and drag that file to your specified folder.
    hope it works
    Craig.

  • How do you copy automation from one track to another?

    How do you copy automation from one track to another? Occassionally I mistakenly blow away a track's automation. I open up an earlier version of the song to try to get the automation. It doesn't seem that you can copy and paste the data. After some struggle, I find a way. Is there an easy way?

    1. Copy the track containing the desired automation to another track. (create a track below it to keep things organized)
    2. Double click on the region and delete the notes.
    3. Now copy the region to the desired track.
    P.S. Of course when Logic asks if you want to copy the automation data you say yes)

  • Is there a way to copy attributes from one composition to another?

    I'm using After Effects 7.0
    I'd like to copy the same Zoom attributes from one composition to 30 photographs.
    In Final Cut, you can copy attributes from one clip to another. Or from one still photo to another.
    Is there a way to do that in AE 7?
    Thanx
    Mike

    EDIT: I see you edited your question, so I am editing my reply.
    To copy the scale of a layer, open the main twirl of that layer and you'll see the Transform properties group. Open the twirl for that, and you'll see Anchor Point, Position, Scale, etc. Click on "Scale" and copy it (Edit > Copy, or Control+C on Windows/Command+C on Mac). Then select the other layers and just paste (Edit > Paste, or Control+C on Win/Command+V on Mac).
    Such a broad question
    Anytime you add a new item you imported to the timeline or composition panels, it becomes a new layer.
    Anytime you duplicate an existing layer (Edit > Duplicate), you get a new layer.
    Anytime you split a layer (Edit > Split) you get a new layer.
    Anytime you copy a whole layer (target the name in the timeline panel) and paste it, you get a new layer.
    You also create layers when you use the Shape tools, text tools, or create a new solid layer, etc.
    This list could go on and on, so instead, I invite you to read the After Effects Help section on Creating layers specifically, and the whole chapter on Layers and properties, in general. If anything isn't clear for you, then let us know.

Maybe you are looking for

  • How can I shut off all of the pop-up windows for all the Firefox updates?

    How can I shut off all of the pop-up windows for all the Firefox and Thunderbird updates? Apparently now Mozilla creates new versions of their browser and email apps every two weeks instead of just creating updates... I'm tired of all of the pop-up r

  • After updating iMac to OS X 10.6.8, App Mac 1.0.2 Store crashes

    App Store:   Version:          1.0.2   Last Modified:          8/6/11 4:53 AM   Kind:          Intel   64-Bit (Intel):          Yes   Location:          /Applications/App Store.app

  • Requery Drop Down after new record added

    Hi, I have a form built with ADDT. There is a dropdown box tied to the buyers table (ID, Name) and a button to add new buyers. The buyers table has full contact info in it so I can't use the editable drop down. I need to be able to requery the drop d

  • Frozen game

    Hi! I am programming the Frozen game (available for Android) which is pretty much like Candy Crush Saga. The program should swap two elements of an array selected by the player clicking on them.  My problem is that the program keeps on swapping the e

  • Can't get Internet to Linksys WRT54G using ARRIS TM502 modem (Cable ISP)

    I just switched from DSL to Cable and now i can't get internet to the Linksys router. I can connect to it from a wireless laptop but just not get on the internet I've read other posts about doing the "clone mac" address and doing the power cycle but