Making a copy of a form at run time

I have a master detail form. I want to have a copy button which will allow the user to make a copy of the detail record which would be saved as a new record. I don't want the master record to be duplicated.
The user will then change the status of the duplicate record in the detail block to "revised". and save the record. I have a pre-insert trigger on the detail block, so the primary key will be different.
I have tried on my menu item
go_block('detail');
do_key('duplicate_record');
But it doesn't work. Help! Thank you very much.
null

I think the solution I gave still works.
Please tell whether I am right or wrong in my presumption
1. Create duplicate record in the detail record by using a button trigger ( like when button pressed ) on a control block.
Now I dont know whether you want to update the original record or whether you want to update the duplicate record based on the status field the user enters.
I have a question here
1. What happens to the duplicate record ?
I dont know whether I am right in my assumptions ?
null

Similar Messages

  • Open second form at run-time (and transfer variables)

    Hi,
    i'm searching for a method to open a second (maybe attached) form from an existing form at run-time.
    The goal would be to have a button in a form which runs a function as click event that opens the second form and transfer field values from the existing form to the new opened form.
    To new form should opened in a separate Adobe Reader window because the user should have the possibility to save or print the both forms separately.
    Regards

    Hi,
    check this solution.
    http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_2.html

  • How to increase RAM & Hard Disk a form at run time can use?

    Question: How to increase RAM & Hard Disk a form at run time can use?
    Explanation:
    I have a problem with a form at run-time. I guess this is due to shortage of RAM/Hard Disk. I want to increase these things so that the form can use more RAM/Hard Disk and it does not crash/cancel. The reason is that when I change/toggle TOOL --> Preferences --> Runtime, Buffer Records and Array Processing parameters, the problem is rectifies intermittantly. That is there is no fix combination of above-mentioned parameters to rectify the problem. After lot of attempts, it gets resolved but only temporarily. Next time I have to modify the form, I get the same problem.
    Please help.

    I am still waiting for an answer to the above question.
    May be Oracle Corp. or anyabody, please guide.
    M. Tariq

  • How to Refresh System Form in Run Time

    Dear All,
    Please give me idea for Refresh System Document in Run Time using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    Please post above discussion in SDK forum.
    Thanks & Regards,
    Nagarajan

  • Button Icons not show in Form 11g run time

    Button Icons not show in Form 11g
    I installed the following tools :-
    Weblogic Server 10.3.6
    SE JDK 6U35 64bit
    Oracle Portal,Forms,Report,and Discoverer Services (11.1.1.4.0)
    1. Create a "icons" folder and place all gif images in there :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\<icons>
    2. Within icons i made a jar file of all gif images :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\icons\jar -cvf frmicons.jar *.gif
    3. Copy this new jar file into :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\
    4. Edit formsweb.cfg file:
    imageBase=codebase
    archive=frmall.jar,frmicons.jar
    5. Edit Registry.dat file:
    default.icons.iconpath=/forms/java
    default.icons.iconextension=gif
    After doing above configuration i create a form and place an icon on the button.
    Set button's icon property = Yes and give name of icon without extension.
    When i run the form not display icons who configure icons.
    Please give the solution how to set icons on button.
    Thanks & regards,
    Java console message :-
    Java Plug-in 1.6.0_25
    Using JRE version 1.6.0_25-b04 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Shiv
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Forms Session ID is formsapp.8
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    Forms Applet version is 11.1.2.0
    FRM-92471: unable to load image exit for iconic button item

    Duplicate post. Refer to comments in Push Button Iconic not show in Forms 11g

  • Clear_form hangs form during run time

    Hi all
    I am facing a strange issue.
    I am upgrading a form from 6i to 10g. I have 1 main block and 5-6 child blocks (relation). The following code hangs the form. I am not able to find why
    clear_form(no_validate); -> form hangs here
    execute_query(NO_VALIDATE);
    I am in dire straits, any help is appreciated.
    Rgds
    Arvind Balaraman

    As far as I know and as far as the form help tells me there is no such thing as execute_query(no_validate).
    Did you copy and paste your code into this post or type it?
    Heres a guess of what might be happening...
    Does your code actually say execute_query(for_update)? If it does then you are putting a lock on every record that is queried. So, if any of the rows that you are trying to query actually are already locked, the your form will hang until the record lock is dropped. (just guessing) Unless the no_wait parameter is added.
    Another thing, if (for_update) is being used and If you have two forms open and running with identical queries the second form will hang until the first form releases the lock.. (Not that you would do this to yourself and not that I have ever done such a thing either. :) )
    This is an excact excerpt from the form help...
    Without the NO_WAIT parameter, Oracle Forms keeps trying to obtain a lock without letting the operator cancel the process.
    So.. Although I have no idea why you would need to do a (for_update) and lock every queried record. I never have in 12 years. Here would be the correct syntax to attempt to lock every queried record with NOWAIT so the form wont hang.
    execute_query(all_records, for_update, no_wait);
    It doesnt appear that you can just do a ...
    execute_query(for_update, no_wait), but give it try if you like.
    Message was edited by:
    Mark Reichman

  • How can we make disable a Field of a FORM at run-time?

    Hi to everybody,
    I want to know that how can we make a filed DISABLE at runtime <whenever we run a FORM>.
    I know about SET-ITEM-INSTANCE-PROPERTY but don't know how to use it,
    please make it clear.
    I will be gratefull to all of you
    Thanking you in advance.

    There's no property values for enabled or disabled in SET_ITEM_INSTANCE_PROPERTY.
    Instead what you can do is set INSERT_ALLOWED, UPDATE_ALLOWED and NAVIGABLE to FALSE which basically what a disabled item behaves like.
    Regards,
    Tony

  • Forms Developer run time??

    i have installed OAS10g Forms and Reports Services recently. it's working fine
    Now i want to Use Oracle 10gDS on 2nd Machine
    and i have define the "Runtime preference" as
    http:\\Frm_n_rpt_srvs(host):7778/forms90/f90servlet
    but it gives the error in runtime that
    FRM-40010 Can not read form D:\abc
    How to work in 2nd machine (used as Development machine)
    i mean what shold b the practices?
    How 2 remove that error?
    thanks
    Regards
    Rana Adnan

    Dear Frank
    you are configuring Oracle Forms Developer to run and test Forms modules with Oracle Application Server 10g, and not with the embedded OC4J server - am I correct?
    Yes, but i want 2 use 10gDS on other machine
    how can i configure 10gDS.?
    best practices is to develop with the embedded OC4J server.
    From where i can find detail about it?
    Is "OAS Forms Services Development Guide " better 2 find detail about this?
    Rana

  • Form 9i run time

    Do I need Oralce 9iAS running to be able to run/debug a form from 9i Form Builder? If so, does this mean each developer should have AS installed on their machine?
    Thanks.

    No - Forms (iDS) has an embeded runtime so you can test and run on your development machine.
    Regards
    Grant Ronald
    Forms Product Management

  • Oracle Forms 10g run time problem

    Hello.
    I installed Oracle Dev 10g and I'm trying to use Oracle Forms.
    I configured all files like this:
    [steps in other post]
    1. Install the Jinitiator
    location: <devsuitehome>/jinit/jinit.exe
    2. edit the following files:
    a. <devsuitehome>/forms90/server/default.env
    where you set forms90_path=add your path to your library files (*.pll)
    b. <devsuitehome>/forms90/server/formsweb.cfg
    where you set workingDirectory=path to your *.fmx files
    3. at Forms Builder go to Edit/Preferences/Runtime
    then at the Application Server URL click "Reset to Default"
    4. before attempting to run your forms, run "Start OC4J Instance" first
    start/programs/oracle developer suite/forms developer/start oc4j instance
    After this, when I try to run the form, I don't get any error, but the browser opens and does nothing! Some times appears a small form to acces the data base, other don't, but it always stops!!
    Any ideas?!?
    Many thanks,
    Nuno

    Might also be worth turningon the Jinit console (you can do this from your windows Control Panel). And set the trace level to 5 (just press 5 when the jinit console appears).
    Then check error messages.
    Regards
    Grant

  • How to Load a Panel during run time from a CVI dll

    Hi,
    I want to execute/load a panel during runtime, from a CVI dll function.
    my CVI dll "test.dll" has "READ_PAN" function. while executing this function from a Test Stand Action step i want Configure Panel (from FR_GUI.uir) to pop up.
    can you please suggest me how can i do this from my "test" project of CVI.
    int __stdcall __export RunFRConfig (CAObjHandle step,CAObjHandle thisContext)
        ERRORINFO errorInfo;
        char errMsg[1024];
        int pan;
        pan = LoadPanelEx (0, "FR_GUI.uir", READ_PAN, __CVIUserHInst);
        DisplayPanel (pan);
        RunUserInterface();
        DiscardPanel (pan);
        return 0;
            Error:
       // sprintf(FinalErrMsg,"Configure Error: %s",errMsg);  
        return -1;

    Thanks for ur reply.
    Hello Asad,
    It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
    I m attaching a code sample for u. This is working in my production environment.
    DECLARE
    pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('setProposal');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('setProposal');
    // This parameter is set to hide parameter form at run time     
         Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    // This parameter is used to maximize previewer window at run // time
         Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Feel free to contact me if u need anymore assistance.
    Take care and bye

  • Menu Bar at run time

    Dear All,
    I need to hide the following menu bar in oracle forms at run time
    Action Edit Query Block Record Field Window Help -----(It will Show at run Time)
    Below some icons,ie,
    Save,Print,Print Setup,Exit,etc
    How to do it?Please help me..
    Thanks and Regards,
    Fazil

    Hi, plz suggest how disable or invisible the submenu items. there is no reply for my last post.
    using set_menu_item_property I am not able to achive this.
    here submenu items means e.g TRANSACTIONS-----------> ACCOUNTS ----------> PURCHASE, SALES
    In TRANSACTIONS a menu in the menu bar, and ACCOUNTS is the menu again and PURCHASE ,SALES are items.
    like this any number of submenus we can create for menu bar. But how enable or disable these items.
    with thanks
    gms

  • How to Maximize a report in run time previewer

    Hi all,
    I want to maximize my report automatically during run time in the report previewer (I am calling this report from a form).
    Thanks
    Asad.

    Thanks for ur reply.
    Hello Asad,
    It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
    I m attaching a code sample for u. This is working in my production environment.
    DECLARE
    pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('setProposal');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('setProposal');
    // This parameter is set to hide parameter form at run time     
         Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    // This parameter is used to maximize previewer window at run // time
         Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Feel free to contact me if u need anymore assistance.
    Take care and bye

  • Migration 5.0 to 10g how to keep it at run-time

    Hi, all.
    I have the 9i at the company and we're creating a new project for electronic invoice and the file must be '.xml'. We've used forms and reports only. We'll probably migrate our db and its tools to 10g.
    My question is: can my applications run at run-time in 10g like 9i? I mean, 10g is focused on the web and all of our applications working at the forms/reports run-time. Someone have told us that it'll not work out 'cause 10g runs in the browser and not as a application alone.
    Must I convert all my applications to run only in the browser?
    Could someone help me in this issue?
    Thank you for some help.
    Regards,
    Anderson

    Keep in mind that Forms 5 was never certified to run against a 10g database, you'll face some problems and Forms 5 is no longer supported, hence no support from Oracle.
    Migrating your Forms application from Forms5 to 10g should be very smooth, the only thing you need to be careful of is built-ins that interact with the client machine (HOST, TEXT_IO etc.....) in 10g Forms are web deployed they are in 3 tier architecture, these built-ins will run on the Application server and not the client machine.
    To run these built-ins on the client machine you need to use webutil's function (CLIENT_HOST, CLIENT_IP etc...)
    You can simply migrate your Forms to Forms 6i and than to 10g.
    I suggest you migrate your application, read the [Forms Upgrade Center|http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html] there are many white papers and documents that can help you.
    Tony

  • Running Copy command from Forms 6i

    HI!
    I want to run Copy command through Forms 6i i.e copy from scott/tiger@orcl insert test@msora(ename) using select to_char(ename) ename from emp;
    I can run DDL command through Forms_ddl functions in Forms 6i, But copy command is not working using Forms_ddl.
    thanks in advance.
    Edited by: Kami_Lily on Aug 2, 2009 10:04 PM

    Dear Kami Lily,
    Oracle Forms is able to execute SQL and PL/SQL command only. Additionally it supports Operating System command by HOST built-in.
    Though COPY is a SQL*Plus command, it is not possible to execute this command by HOST built-in.
    Instead, if you hardly want to execute COPY command oracle forms 6i, then you make a batch file in operating system and run that batch file from HOST built-in.
    Thanks.

Maybe you are looking for

  • OBIEE not selecting columns from all LTS of a Conforming Degener@teDimen$ion

    Hello everyone     I have a Degener@teDimen$ion Dimension A it has 4 LTS ( Fact1, Fact1A ,Fact2 and FACT2A).--> FACTS from Physical Layer.. FACTS in BMM are FACT_ONe and FACT_TWO. columns in Degener@teDimen$ion Dimension A col1 --> mapped to all 4 LT

  • How to specify Host Server for Replicated Virtual Desktops within RDVH Collection

    My question about how to specify Host Server for Replicated Virtual Desktops within Collection. I know there is a aswered thread on this, but that solution (wait a week) didn't work for me. So i have 2 servers, RDS01 and RDS02 with both 15 Hyper-V VM

  • Oracle Tuxedo Licensing

    Hi All, I am very new to Tuxedo and I need some guideline from you in licensing tuxedo 11g for a development system. Our client is having an application whcih is currently running on Tuxedo 8.1 + Oracle 10g and it is as ATMI application. Currently we

  • Workflow Dialog step

    Hi, Can anyone help me with this design? I want to be able to send a workitem to a user, which contains links to two different transactions, with an adobe form attachment. Is this possible at all? Cheers Michael

  • Newest update not working well?

    I seem to be having a couple of issues with my phone that just started as of today. First issue is that, it appears as though the iMessage feature isn't working properly. However, every day before that it was working just fine. I checked in my settin