Ofa: need help to insert a record into DB

Hi friends
I am totally new to the OFA and Jdev
I use Jdev version 9i 9.0.3.5

MY first task is to create a queryPG ... for that, I created a table in my PB with 3record
who has created a table in my Db with 3record,
and I created VO, AM, QueryPG, and QueryMainCO in my Jdev

And in my first task I can successfully recover data from forms my DB*.

(2) in the same .jpr my second task is to insert a record into my DB
In this task, I have been struck for more than 2 weeks... so please help me to do my 2nd task
in my queryPG I HAV to set a button called wen 'Person to create' I click that it must navigate to the CreatePG were I want to get data and wen I click on 'save' which is located in the CreatePG... the data I enter the createPG must be stored in my DB

In the createPG I HAV to set this field {personId, firstname, lastname, phoneno, e-mail, address}

First I HAV created VO not based on EO... beak for questioning we don't want EO
for inserting a record I HAV to create EO...
And one of VO based on EO is good?
Please help me to do this task

Thanks in advance
thiliban

Please follow the tutorial create exercise.

Thank you
AJ

Tags: Oracle Applications

Similar Questions

  • Need help with insertion of records

    I am new to develop dynamic web pages. I followed the instructions step by step in the files using Dreamweaver 8, but for some reason any this code does not work. I have links to the database. I have the set of records and and the insert record everything correct, or at least I thought I had. Can someone help me please. I'm losing my mind. Thanks in advance.

    I took a break from that and when I came back to it I realized it was a problem with my database, not my code. Thanks anyway.

  • Need help in inserting first ever save

    I need help to insert my first record ever from a page of the OFA.

    I created a "MasterAM" AM, "MasterVO" is added it. Created a Page CreatePG which has a submit button, id = apply

    Here's processRequest CreateCo

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    If (! pageContext.isFormSubmission ()) {}
    am.invokeMethod ("createRecord", null);
    }
    }

    and here is processFormRequest

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    If (pageContext.getParameter ("Apply")! = null)
    {
    OAViewObject vo = (OAViewObject) am.findViewObject ("MasterVO1");
    am.invokeMethod ("apply");
    pageContext.forwardImmediately ("OA.jsp?page=/abcd/oracle/apps/per/selfservice/xxdemo/webui/CreatePG",
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    NULL,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    }

    }
    }

    Here is 'createRecord' and 'apply' in MasterAMImpl

    public void createRecord() {}
    OAViewObject vo = (OAViewObject) getMasterVO1 ();
    If (! vo.isPreparedForExecution ()) {}
    vo.executeQuery ();
    }
    Line = vo.createRow ();
    vo.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    }

    {} public void apply()
    getTransaction () .commit ();
    }

    When I run the page, it opens and I try to enter some data and press on apply. It does not insert in the table.

    Could someone help me.

    My version of jdeveloper is 10.1.3.3.0.3

    Only for EO according to your, DML operations are supported by the Framework. For the no - EO according to your... We need to explicitly insert records using jdbc.

    See you soon
    Ganesh

  • Need help to insert rows in the table to a custom table area

    Hi all

    I have a requirement as below.

    I have a page of the i invoke a popup search page and displaying the table data in the area of the table, this table I select lines and pressing the button and given in the basic page in the region of the table being filled, of data, I need to insert these lines into a custom table. Please help me how to achieve this. Basically, I need to insert rows from one table to a custom table region.

    Thnaks

    Hello

    Review the link, below, may be it will help you:

    https://forums.Oracle.com/thread/953885

    https://forums.Oracle.com/thread/2151775

    Please share your solution here, it will help others.

    Concerning

    Mahesh

  • Impossible to insert a record into a table

    Hello

    I was working on a procedure in which I had to insert 1,00,000 records each in 3 tables. But the process stopped after inserting 56000 records.
    After that I ran the query again, but now it is not insert a single record.

    I just created a fictitious table

    create the table vinod1 (no number);

    and I tried to insert a value by using

    insert into vinod1 values (100);

    But to my surprised the query has executed since the past 10 years and has not inserted a line.

    I also tried on SQLPLUS and I use oracle 10g


    Can you please help me and explain why I'm unable to insert the same if I am able to create the table.


    Thank you
    -Vinod

    are you using an option can be REPLICATED in your session, also what is the quota given to the user on the tablespace. The storage space that you used to create the table.

  • Need help with insert

    Hello
    When inserting records into the table, I get the below error. I tried a few options, but its not solving my problem, could u pls help me on this.

    Table script:
    -------------
    create table test
    (
    datadate number (12).
    sla_met_time varchar2 (40),
    location varchar2 (20));

    My sql:
    --------
    Insert in the test
    values (&,(&2) 1 & 3);

    commit;
    "exit";

    Values:
    -------
    & 1-> 20101205
    & 2-> 12/06 03.20.31AM
    & 3-> US

    Calling script:
    --------------
    sqlplus-s user/pwd@db @/home/tes/test.sql $usdate, $ustime $usloc

    Error:
    ------
    old 2: values (1, 2 & 3)
    new 2: values (20101205,12/06,03.20.31AM,US)
    values (20101205,12/06,03.20.31AM,US)
    *
    ERROR on line 2:
    ORA-00917: lack of comma


    Also, I'm passing "12/06 03.20.31AM" for "and 2", but in the new value his impression that the "12/06,03.20.31AM".ยป
    I did not understand how extra comma came after "12/06.

    Please help me on this. Thank you.

    Hello

    You must pass the VARCHAR values in quotes and should not include a comma between the two.

    &1 --> 20101205
    &2 ---> '12/06 03.20.31AM'
    &3 ---> 'US'
    

    See you soon

    VT

  • How to insert new records into master and detail forms.

    Hello

    I cannot have values are inserted in the main view and details at the same time. Scenarios is I a Dept Table (view object-VO1) and employee Table (View Object-VO2) both related to a foreign key, according to HR in Oracle DB XE default schema.

    Now, I want to insert the new record into a table Dept (VO1) and the EMP (VO2) by a new say on page (page 2). There is a button on page 1 with button INSERT. I can only drag "CreateInsert" operation on this button for VO1 and VO2. So only text box for records Dept are allow to insert data, but not the Emp records. Is there a way I can insert data into the tables at the sametime?

    Thank you
    MB

    Hi MuradRabbani,

    You can call programmatically two createInsert operations,

    Add to your pageDef two CreateInsert operations.
    Create a button tha will be master (VO1) insert method call and then call insert for details (VO2) method

    Here is an example of code to call the operations:

    DCBindingContainer dcb = ADFUtils.getDCBindingContainer (); you need the ADFUtils.java and JSFUtils.java classes. You can find them in the sample applications in your JDeveloper.

    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO1");

    Oper.Execute ();

    -NOTE: at this point, you must set the values that compine the ViewLink on the master in the order detail will know where to link the new record there are many ways to do it.
    As solution try to overrdi the method to create on the in the your master vo (VO1) ViewRowImpl
    for example
    @Override
    protected void create (AttributeList attributeList) {}
    front
    attributeList.setAttribute ("NameOfAttribute", valueHere);
    Super.Create (AttributeList);
    }

    ------------------

    After that, you must call the operation for your VO2 detail

    for example

    DCBindingContainer dcb = ADFUtils.getDCBindingContainer ();

    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO2");

    Oper.Execute ();

    The detail record will now automatically have the values of your master.

    Kind regards
    Dimitris.

  • Inserting data into a table and insert many records into newtable

    Hi all

    I have table A and table b.
    Suppose that if I insert the data into the table, this table is inserted, the number of records records Count I want to insert in the table B

    I have to write a procedure for this cannot so any help on this.


    Thanks in advance.


    Sikora.

    Hello

    You can use this anonymous block and extend it to create the procedure. You can delete loop or leave it there and use the cursor loop

    DECLARE
       j   NUMBER;
    BEGIN
       FOR i IN 1 .. 100
       LOOP
          INSERT INTO A
          VALUES ('col1', 'col2', 'col3');
    
          j   := j+ sql%ROWCOUNT;
       END LOOP;
    
       INSERT INTO B   VALUES ('table name ', j);
    
       COMMIT;
    EXCEPTION
       WHEN OTHERS
       THEN
          ROLLBACK;
          DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 200));
          RAISE;
    END;
    

    Published by: OrionNet on January 21, 2009 12:53 AM

  • need help with insert sitemap in the footer with the adobe site map muse

    Hi I need help, to know how to insert a site map link in the footer of a page Web in muse Adobe.

    a quick google search just shows how to create a site map, but no mention of how to get a clickable link to a sitemap on a Web footer.

    any help would be appreciated.

    Hello

    You can try to front page of the site hyperlink to any text that would open the sitemap on the mouse action.

    For example, domain.com/sitemap.xml, enter in this format in hyperlink with any text or image that you can place on the page footer area.

    Thank you

    Sanjit

  • need help to correct the records in a table

    Hi all

    I loaded a content file in a single table with a single column, the file is to have the data as below
    Record 1.  ABC|AVC1|1234|
                   xyz|abc
    Record 2.  ABC1|AVC1|12334|
                   xyz
                   |ABC
    Record 3. ABC1|AVC1|12334|xyz|ABC
    I need to correct the data in the table above, the 3 reviews. is the correct format I need record1 and record2 look like.

    Note Record1... 3. the text above, I've added. (it's just a real example table a 5million rec)

    Can any of you help me correct this file using plsql query or sql by creating another table which has corrected data

    Logical I think is

    All records must have 4 delimiter if less then wear the next record in the line to the previous line for example

    Record 1. ABC | AVC1 | 1234 | XYZ | ABC

    Even if there is no delimiter on line then also make the next record in the line to the previous line for example

    Record 2. ABC1. AVC1 | 12334 | XYZ
    | ABC


    Like wise cleaning the table and placing it in a new table, to export.

    Oracle version I have is 10g


    Kind regards
    AAK

    This is because you have not changed the subquery factoring section (aka the WITH clause) properly (I suggest that you are looking for this - it's a very useful piece of syntax to have under your belt). You must change as follows:

    with res as (select rn,
                        txt,
                        ceil(sum(length(txt) - length(replace(txt, '|'))) over (order by rn)/4) grp
                 from   t), -- assuming that your table is called t.
       final as (select replace(sys_connect_by_path(txt, '$'), '$') full_txt,
                        level
                 from   res
                 WHERE CONNECT_BY_ISLEAF = 1
                 connect by grp = prior grp
                 and        rn = prior rn + 1)
    select case when length(full_txt) - length(replace(full_txt, '|')) = 4 then full_txt end full_txt
    from   final
    where  case when length(full_txt) - length(replace(full_txt, '|')) = 4 then full_txt end is not null;
    

    ETA: where 4 appears in my query, you will need to change the number of pipes in your line.
    ETA2: and I suspect that you need to change the 5 in the BluShadow query to 1 + the number of pipes in your line.

    Published by: Boneist on March 23, 2010 17:08

  • Need help to insert several lines using PL/SQL

    Hi gurus,

    I wrote a simple PL/SQL to insert the recrods in a table. It works fine if the sql script that is stored in the column to the table TEST_VALIDATION SCRIPT returns a single line. Can you get it someone please let me know a better way to insert multiple results returned by the script? Rest columns can be duplicated.

    DECLARE

    p_rows default NUMBER of 0;

    CURSOR C1_TV
    IS
    SELECT ID, DESCRIPTION, TEST_VALIDATION SCRIPT;

    BEGIN

    FOR C1_TV_REC in C1_TV
    LOOP

    Run immediate C1_TV_REC. SCRIPT in p_rows;

    INSERT INTO THE VALIDATION
    (END_DATE,
    VALIDATION_ID,
    VALIDATION_DESCN,
    VALIDATION_COUNT
    )
    VALUES
    (
    (select sysdate to DOUBLE),
    C1_TV_REC.ID,
    C1_TV_REC. DESCRIPTION,
    p_rows
    );

    COMMIT;

    END LOOP;

    END;
    /

    Please let me know if this isn't clear.

    Thank you
    Shash

    You need something like that

    declare
      p_rows dbms_sql.number_table;
      i pls_integer;
    begin
      execute immediate SCRIPT bulk collect into p_rows;
      i:=1;
      loop
        exit when i>p_rows.count;
        insert... p_rows(i)....
        i:=i+1;
      end loop;
    end;  
    

    or the much faster method (if it works in your case)

    declare
      p_rows dbms_sql.number_table;
      i pls_integer;
    begin
      execute immediate SCRIPT bulk collect into p_rows;
      forall i in p_rows.first..p_rows.last
         insert into table (field) values (p_rows(i));
    end;  
    

    And why you use

    (select sysdate from DUAL)
    

    Just use

    sysdate
    

    Published by: Oleg Gorskin the 12.01.2010 06:51
    Add method with forall

  • ADF Mobile: Insert a record into a table by WS - DC method

    It's something that is very basic and I could not know.

    There is this method of 'create' base on the service project to insert a single record in a table.

    I created a WS - DC on my mobile project. I see my createItem on the list method. But what I have this XItem.xsd.

    So when I get the ValueExpression binding, I don't know how to set the attribute values...

    ValueExpression ve = AdfmfJavaUtilities.getValueExpression ("#{bindings.xItemView1.inputValue}", Object.class);

    PS: GenericType does not work.

    Your service must expose a method create and then you drag this method to your page and call it with an object as a parameter.
    Should be similar to the way in which an update is done here:
    https://blogs.Oracle.com/Shay/entry/adf_mobile_update_through_web

  • Insert the record into the detailed form.

    Hello! I have some paintings of master and detail. In a form I insert record for the main table, but in others, I insert record for the secondary table.

    So, I visit my main table, do not enter any value, only PK is entered using DBSequence. Then this main table I go to detailed form and try to insert values it created record and have the following error: entity detail with null line keys cannot find or invalidate its owner entity, see: http://my.jetscreenshot.com/2677/20120530-qcpy-36kb

    As you can see, there is value to DBSequence: '-4 '. So why this error?

    If I enter some values in the main form and then go to detailed form to enter values, then this error disappeared, I can enter data. Why this is the case, can someone explain to me?

    If you have some questions or misunderstanding, please let me know!

    Best regards, Debuger!

    Of the newly created entity is not displayed until a call setAttribute() is invoked on this subject. Simplest to try thing is:

    1 implement ViewRowImpl to master VO.
    2 substitute create() and call a call setAttribute() on any attribute of in.

    You can go through 't-fit-all.blogspot.in/2008/07/adf-bc-eovo-initial-state-post-create.html http://one-size-doesn for more details and alternatives.

  • Insert the record into the database using hyperlink

    My dev environment is DWCS3/MSAccess/ASP

    I have a pretty simple site where I want to enable connected users to save documents to a Favorites page (the ID of the page they are on). For aesthetic reasons, for the most part, I want to be able to click on a hyperlink for the kickoff of the insert and allows their right to return to the page they were on the behavior of the FORM action.

    Is this possible in ASP Classic? Does anyone have suggestions as to how I can do this?

    Thank you very much.

    Since my main goal was to avoid putting a button on the page, I used the kind of a workaround plan b. I've created a save"link" which leads to a "success" - style page where they then click on a button to continue. I had passed the form hidden as variables to this page then used values built in behavior record insert to write the record in the Database when they click on "continue". Not the thing I wanted to do initially, but it works.

  • Help: Procedure insertion of records works a TOAD does not work in APEX

    Any who,

    Why don't the work following procedure when performed with Toad... but does not work when running with and the application of APEX by APEX_PUBLIC_USER.

    SCRIPT:

    CREATE OR REPLACE PROCEDURE HRAPPS. C00_DENTAL_CHECKS_INSERT (P_BATCH_DATE, DATE,
    NUMBER OF P_PLAN_ID) IS
    /******************************************************************************
    NAME: C00_DENTAL_CHECKS_INSERT
    PURPOSE:

    REVISIONS:
    Worm Date Description of the author
    --------- ---------- --------------- ------------------------------------
    1.0 06/10/2009 TNOLTE 1. Created this procedure.

    NOTES:

    Keywords to replace automatically available Auto:
    Object name: C00_DENTAL_CHECKS_INSERT
    SYSDATE: 10/06/2009
    Date and time: 2009-06-10 14:11:28 and 2007-04-18 14:11:28
    User name: (put in TOAD Options, editor of the procedure)
    Name of the table: (defined in the dialog box "New PL/SQL object")

    ******************************************************************************/

    THE CNTR NUMBER;
    v_check_seq NUMBER;

    BEGIN

    CNTR: = 0;

    FOR THE DCI (SELECT IN
    plan_id DC.plan_id,
    Check_date PTP.regular_payment_date,
    DC. Provider_id paid,
    -1 check_number,
    Pap1.person_id person_id,
    Sum (DC.amount_100_pct) + SUM (dc.paid_at_80) + SUM (dc.paid_at_50) amount.
    DP. Description: ' for '. note of DC. MEMO,
    DCB.batch_date batch_date
    OF hrapps.dental_claims dc.
    Apps.per_all_people_f pap,
    Apps.per_all_people_f pap1,
    hrapps.dental_claim_batch dcb,
    hrapps.dental_plans dp,
    TPP apps.per_time_periods
    WHERE dc.plan_id = P_PLAN_ID
    AND dc.payee <>1069
    AND dc.claim_status_id = 3
    AND dcb.batch_id = dc.batch_id
    AND dcb.batch_date = P_BATCH_DATE
    AND pap.person_id = dc.patient_person_id
    AND dc.date_of_service BETWEEN pap.effective_start_date AND
    PAP.effective_end_date
    AND pap1.person_id = dc.person_id
    AND dc.date_of_service BETWEEN pap1.effective_start_date AND
    Pap1.effective_end_date
    AND dp.plan_id = dc.plan_id
    AND ptp.payroll_id = decode (dc.plan_id, 1, 61, 67)
    AND dcb.batch_date BETWEEN (ptp.start_date) AND (ptp.end_date)
    Dc.plan_id GROUP,
    PTP.regular_payment_date,
    DC. Paid,
    -1,
    Pap1.person_id,
    DP. Description: ' for '. DC. MEMO,
    DCB.batch_date
    ORDER BY dc.plan_id,
    PTP.regular_payment_date,
    DC. Paid,
    -1,
    Pap1.person_id,
    DP. Description: ' for '. DC. MEMO,
    DCB.batch_date)
    LOOP
    Select HRAPPS. C00_REIMB_CHECKS_SEQ. NEXTVAL in the double v_check_seq;
    INSERT INTO HRAPPS. C00_REIMB_CHECKS (REIMB_ID,
    PLAN_ID ARGUMENT,
    CHECK_DATE,
    PROVIDER_ID,
    CHECK_NUM,
    EMP_PERSON_ID,
    AMOUNT,
    MEMO,
    BATCH_DATE)
    VALUES (v_check_seq,
    DCI.plan_id,
    DCI.check_date,
    DCI.provider_id,
    DCI.check_number,
    DCI.person_id,
    DCI.amount,
    DCI.memo,
    DCI.batch_date);

    CNTR: = CNTR + 1;

    IF MOD(CNTR,20) = 0 THEN

    COMMIT;

    END IF;

    END LOOP;

    COMMIT;
    END C00_DENTAL_CHECKS_INSERT;
    /

    Tami,

    Please view the code in the process of the page. Maybe you format P_BATCH_DATE correctly. Maybe something else.

    Scott

Maybe you are looking for

  • Since iOS 10.0.2 my phone is accessible without the access code

    Since iOS 10.0.2 my phone is accessible without the access code after I pressed the sleep button. Press the home key several times my phone opens. As a first step, it is that he fell asleep in itself not when I used the sleep button but now even afte

  • How can I get refund on Itunse game that I do not?

    I had subscription Itunes game 1 years ago. But I didn't like it and I forgot about it. I saw the purchase of massage on Itunes game yesterday. I don't want to use iTunse Match. I want to pay off. Can I get refund ITunse game? Could you help me pay o

  • Spotlight, failing repeatedly in iOS 9.2

    This bug makes me batty. Spotlight guard failed for me in iOS 9.2. I enter a search term and nothing back. If I do the things that rebuild the index [1], she works for a while, but it then stops again. Turning off the Contacts can operate, but cannot

  • HP Pavilion Beats SE 15z: poor performance HP Pavilion 15 edition Beats Audio

    Hello, I have a problem. I bought this laptop less than a year ago and he started having some performance issues. For example, the startup is slow, when I go in the folder so that it hangs usually a bit before displaying the contents of the folder, p

  • Time limits

    Summary of the issueOther issues of Windows Live family safety What version of Windows Live Family Safety do you use? Version 2011 (15.4.3538.513) Choose your operating system version: Windows Vista SP2 Additional detailsI put the time restrictions o