Create a new record from an existing record

Hello

-----------------------------
Scenario of
-----------------------------
Block H-> table header has an identifier of main text field called 'ID' (field ID is generated only after registration)
D1 block multi retail-> table B
Details of multi block D2-> table C and who is a child of the Table B.

Table C is filled in the post - insertion of table B and reviews of D2 are read in a view / read only the form by clicking a block
-----------------------------
Requirement
-----------------------------

The user wants the ease of copying the entire feature. The requirement is to create a new record to be created with the original values of the existing record and the recording of a new value should be generated in the field ID.

We have a copy button.

We wonder what is the approach to be taken for this. A create_record and duplicate_record will work in the copy button

Please suggest... pointers on what other things need to be supported, so that the final result a new record successfully. Would appreciate an approach of details here...

Concerning
SR

Take a look at the DUPLICATE_RECORD() built into the forms help system. It will create a new record and copy all values from item in table of basis of registration that has focus and copy the values to the new record.

Craig...

Tags: Oracle Development

Similar Questions

  • Best practices for creating a new project from an existing WebHelp

    I am currently working to WebHelp Pro (version RH is 9.0.2.271).

    I have a WebHelp project that currently supports the 2012 version of one of our projects. What I had to do was to create a separate project for 2013, using files of 2012 as a starting point. I couldn't find a way in HR to create a new project by importing an existing project of WebHelp, so I copied the files of 2012 in a new directory, open the project and renamed it.

    What drives this issue is that, as a result of this exercise, all seemed well, for once. However, I recently had to create new topics in the 2012 version. However, when I imported these subjects to the 2013 and compiled project, they disappeared - even if the htm files still appear in the appropriate folder of the file 2013 (when we look at with Windows Explorer).

    After reading a few posts on the forum, I thought I might have corrupted my database by creating the incorrectly the new project-, but if what I've done, it's the wrong way to go about this, I don't know what is the right way. I will be grateful for any suggestion.

    The easy way to do this is to create a copy using Windows Explorer.

    Open the project and click file > rename.

    Then you have your project is ready in 2013.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • API in BULK: always create a new record

    Hello

    Anyone know how to configure import definition so that when we are importing the custom in Eloqua object data, it always creates a new record instead of using a field identifier?

    Thanks in advance!

    Best regards

    ADI

    I guess that I am answering my own question. Thanks to Ken Jin (Jian Jin) to the Support of Oracle.

    1. use the BLOCK 2.0 API

    2. use "ExternalId" as "identifierFieldName".

    3. set the "ExternalId" on import a definition. For example {"field": {"ExternalId": "{{Objetpersonnalise [1].}}"}} ExternalId}}"}}

    If someone stuck on it, please let me know. More than happy to help you.

  • Line automated fetch fires when you create a new record

    I have a form on a table that allows me to edit, delete or create new records. If I choose to edit a record of the report form get filled out correctly and modifies or deletes the job very well. My problem is when I chose to create a new record. I get a blank form which is what I want, but once I fill him and click on the button create, fetch again automated line fire and gives me a no data found error.
    How do fires do not when you press the button create?

    Published by: dhanderson on April 3, 2013 08:21

    Hello
    Check the direction - after treatment-> to page-> previous page number that displays records.

    Thank you
    Loga-

  • Need to create a new record with the rules of the takeover bid

    Hi all

    I want to create a new record with OPA according to the result value (Service request is valid)

    For example
    When the demand for services is valid if
    There are (the activity is valid)
    the activity is valid if
    activity type = 'other '.

    Can someone help me how to

    Can you provide a little more information on what you want to do?

    If you want to create an object in, for example, a database based on the results of the OPA assessment or investigation, then that lies outside of the OPA and is usually performed by the client that calls the rules.

    If you want to create an instance of entity within the am Session OPA, then this will be involved custom code. There is an example of this in the OPA 10.2.0 documentation, see: example: enter into instances of entity with an inference listener in policy of Automation Developer Help. It is available online at http://download.oracle.com/docs/html/E20344_01/toc.htm

  • How to create a new record with the old values

    Hi all

    I have the creation with 45 page are there fields
    the user will enter all areas and save, it will call the uneditable mode

    If the change button is clicked it will call for the editable mode

    My requirement is user will not change among these ites (45 items) clcik on save again it will call to view mode

    in this user will change one value among 45 Articles and click on the button Save I need to create more than one record in the database

    If the user will not modify one of the field elements of the 45 I will not create a new record in the database

    How can we achieve this feature


    Concerning
    Anthony

    Hi Mary,

    Please try this method to copy a line in the new line...

    public void copy()
    {
    Pervert SuppliersVOImpl = getSuppliersVO1();
    Rank rank [] = pervo.getFilteredRows ("SelectFlag", "Y");
    for (int i = 0; i)<>
    {
    Rowi rank (SuppliersVORowImpl)= SuppliersVORowImpl;
    OADBTransaction trx (OADBTransaction) = getTransaction ();
    Number b = trx.getSequenceValue ("FWK_TBX_SUPPLIERS_S");
    AttributeList a rowi = (AttributeList);
    R = (SuppliersVORowImpl) pervo.createAndInitRow SuppliersVORowImpl (a);
    Define your unique attribute values here, I'll put here Ref supplier as with each new line, it must be different.
    r.setSupplierId (b);
    pervo.insertRow (r);
    }
    }

    Kind regards
    Out Sharma

  • How do I create a branch to the form after you have created a new record

    Hello

    I created a master/daetail form with detail on the same page.
    It works very well.
    When you create a new record, on the details of the page, you enter the data, and you click Ok.
    Then you are directed to the main form, a report containing the lines of recordings.
    You must then click on the link in the column to change the record to add details.

    I want to do it is to branch directly on the same page after you create the record. Order to dot Hat I created a branch whith the value equal to CREATE demand.
    And the target is the same page. The problem is to the value of the primary key. This KP is created after sending, and it is not possible to recover because it is created right now. I hope I'm clear.

    To sum up the question: how to create a branch immediately to the same page after creating a new record?

    I have the page on

    [http://apex.oracle.com/pls/otn/f?p=4550 | http://apex.oracle.com/pls/otn/f?p=4550]

    The workspace is ESPACE2008
    Is the user name: guest
    the password is: noproblem

    The long form is page 42.
    The main form is page 41
    Unfoirtunately tables are not available.
    You can see the process of branch No. 50 on page 42.

    Thank you very much for your help.

    Christian

    Christian,

    I couldn't connect to your ws because I don't think that your guest user has developer privileges. But have you tried 'Back in the agenda key' property in the region of origin of your page DML process. This should return the value of the primary key newly generated in a page element when the page is loaded.

    Anthony.

    -----------
    http://anthonyrayner.blogspot.com

  • Create a new table from another table which are ussing a stored procedure

    Hello

    I want to know if it is posibble to create a new table from another table which are ussing a stored procedure. This new table is created from another table that exists in the DB.
    (in the following code the table tbl1 exist in the schema of the DB, but temp_tbl1 does not exist, it must be created by the procedure)

    create or replace procedute temp is
    temp_tbl1 tbl1% TYPE; the temp_tbl1 will have the same type of tbl1
    Start
    create the table temp_tbl1 as (select * from tbl1);
    time of the end;
    \


    Thank you very much

    Yes, it is possible to create a table using a procedure.
    Do everything that use dynamic SQL is

    Try this:

    ==================================================
    create or replace PROCEDURE Create Table as
    BEGIN
    EXECUTE IMMEDIATE ' CREATE TABLE testtable in select * from testingtable';
    END createtable;
    ==================================================

    Kind regards
    Ankur

  • [ADF, JDev12.1.3] How to set the value of an attribute of VO 'max (attribute) + 1' when creating a new record?

    Hallo,

    I have a VO that selects records from a table databace where FkId = < value >.

    For example: this is the database table...

    ID RowDetNumber OtherFields FkId

    1   3     1            ...

    2   3     2            ...

    3   3     3            ...

    4   3     4            ...

    5   4     1            ...         |

    6   4     2            ...         | -VO selects these records (where FkId = 4 for example)

    7   4     3            ...         |

    8   5     1            ...

    9   5     2            ...

    When a new record is created the field RowDetNumber must be calculated with the logic of the max (RowDetNumber) + 1.

    So for the example above, the calculated value should be 3 + 1 = 4.

    I would like to know how I can calculate the value and assign to the RowDetNumber attribute.

    I did some experiments using a Groovy expression as a default value for the field, but I got only errors.

    I'm a bit confused on how I can do so a few details / examples / tips are welcome

    In particular, a small example for every possible approach would be happy.

    Thank you

    Federico

    Federico, the solution mentioned in the block will work as it only generates unique numbers without guarantee that the generated numbers are without flaw. However, if you want to use max + 1 this normally means you want to have a sequence without gap. It is very very complicated in nature. It doesn't matter what application you're trying, there is almost always room for error, ending with duplicate numbers.

    The trigger also works as the DB supports triggers on MS SQL.

    If you don't need a number of gap-less for the attribute, you can use the groovy solution and just get a number of a sequence is is guaranteed unique and greater value, like the last number that you asked of the sequence. In this way, you can have the sorted records

    ID RowDetNumber OtherFields FkId

    1  3    1            ...

    2  3    7            ...

    3  3    9            ...

    4  3    10            ...

    5  4    3            ...        |

    6  4    5            ...        | -VO selects these records (where FkId = 4 for example)

    7  4    12            ...        |

    8  5    4            ...

    9  5    6            ...

    Timo

  • [ADF, JDev12.1.3] How to create a new record in a table filling one filed with the IP address of the client?

    Hallo,

    I create a stubborn workflow that begins with a create operation on the table where a new record should be added.

    The recording fields must be filled in by the user, but before committing, I have to fill a field of the reocord with the address IP of the PC of the user.

    Could you kindly advice me which are the possible recommended approaches to achieve this?

    Thank you

    Federico

    Hello

    See this post: Blog of Zeeshan Baig: how to get the IP address of the customer in ADF merge request

    You can use a createWithParams operation and to fill in this field.

    Reference: Andrejus Baranovskis Blog: CreateWithParams operation for Oracle ADF 11g BC

    Kind regards

    Ruben.

  • Refreshing the page creates a new record – how to avoid this?

    I have a 'submit' button that runs a 'record insertion.

    After insertion is made I branch (back) to this same page.

    The problem is that when I hit page refresh the folder gets reinserted.

    How to avoid this behavior?

    AZZ says:

    fac586,

    Yes. You are right. It was a late semi written post. My apologies. You must stop working after midnight.

    Let me clarify:

    I have a SUBMIT"" button.

    There are the conditional 'after send' (if the key) process.

    the process calls a function that inserts a new record in the table.

    Question:

    How can I avoid running the process on refreshing the page?

    I've simplified the situation - no record insertion. However, if you refresh the page the success of the function call message will be displayed.

    https://Apex.Oracle.com/pls/Apex/f?p=4000:1:126172565551184:no:RP:FB_FLOW_ID, F4000_P1_FLOW:21325, 21325

    user/pass help/help

    workspace - AZ_

    To reproduce:

    Click on the submit - observe green popup "OK!"

    Refresh the page (F5 or ctrl-R) - see 'OK!' again.

    No process is executed to see the page or page refresh. This can be confirmed by looking at track of debugging to see the processing page. The page contains no defined process to run at a show of page processing point; None of the calculations which could call a function that could not perform an insert as a side effect; None of the dynamic actions or calls JS could initiate an insertion using AJAX; Neither the source region contains any code that could do it. I'll draw the line search conditions that can contain deeply buried code which could be responsible and direct you to a previous thread of the same nature: success of process Message not tied to Conditions.

  • Creating a new document from existing pages

    It must be a feature in InDesign that allows you to create a new document using the selected pages in an existing document without having to remove unwanted, pages as when you create a document "save under".  And also the possibility to create existing master pages.

    It is already there. At least somehow.

    Create a new document of the same dimensions of the former, with a blank page. Then, in the old document, select them pages you want and in the Pages menu, choose move Pages.  You can then select the new document to move pages to and make sure to remove Pages after that moving is not selected.

  • How to create the new record of web service in the ADF?

    Hello, I use JDeveloper 11.1.2.3.0. I created a class and published as a web service. I created a web method like this:

       public void addNewRow(MyObject cob)

    {

    MyAppModule myAppModule = new MyAppModule();

    try {

    ViewObjectImpl vo = myAppModule.getMyVewObject1();

    ================> vo object is now null

    Row r = vo.createRow();

    r.setAttribute("Param1", cob.getParam1());

    r.setAttribute("Param2", cob.getParam2());

    vo.executeQuery(); getTransaction().commit();

    }

    catch (Exception e) { e.printStackTrace(); }

    }

    As I have written in the code, myAppModule.getMyVewObject1 () returns a null object. I do not understand why! AFAIK AppModule must initialize the object itself, when I call "getMyVewObject1()", but maybe I'm wrong, or maybe that's not the way it should be for the web methods. Has anyone ever have this problem? Any help would be much appreciated.

    You must use Configuration.createRootApplicationModule () to create the new instance of AM.

    Example: creating root Application Module Instance & #8211; Oracle ADF | Techiecook & #039; s Nook

    Also, the methods in your AM can be automatically exposed as service web soap:

    Andrejus Baranovskis blog: Web Service Interface for molten Oracle 11 g ADF BC Application Module

    And note that your code has other issues, for example:

    vo.createRow () will not automatically add this line to the View object.

    vo.executeQuery () is not necessary...

    Dario

  • Mail creates a new contact for already existing contact card

    I recently find cards duplicate in my contact list that were apparently automatically created sort of correspondence. If I e-mail to Joe Blow, whose address is [email protected] in my Contacts, the e-mail address will be displayed without the name attached to it. The courier will say "to: [email protected]"instead of "Joe Blow.". " I'm in my contacts and see the two cards, one with the name and address and whatever other information that I have to contact and a second map which is completely empty except for the e-mail address.

    I had two recent changes. I upgraded from Yosemite El Capitan and my employer like us all on a Microsoft Exchange Server. As far as I know, the problem above isn't to Exchange. I see them duplicate that in my Mac app Contacts contacts, not in the list of Contacts online for the Exchange.

    If anyone knows what is happening and how I can stop the Contacts for the creation of new maps for already existing contacts, I'll be very grateful to hear from you.

    Rob

    Please open Contacts preferences window and select the general tab, uncheck the box marked

    See the establishment of contacts in the mail

    See if there is an improvement.

  • Why am I forced to constantly create a new project from an old project name?

    Everytime I open a project I worked on, say yesterday, GarageBand requires me to create a new name with a number attached to the current name. So, I have to remove my old project and rename the a new back to the old.   Is there a way I can work on a project that I have already created without being obliged to give him a new name over and over again?  It's so frustrating and so it seems useless.

    Everytime I open a project I worked on, say yesterday, GarageBand requires me to create a new name with a number attached to the current name.

    Which should occur only if the projects that you open have been created by a different version of GarageBand, for example, GarageBand iOS on iPad. In this case, GarageBAnd needs to create a converted version and record the original, because the new version is more readable by the other version of GarageBand. Or, if the project you are trying to open is write protected.

    Have you created projects on another device or another user account?

Maybe you are looking for