How to insert the value from the FORM to another database table?

Hi all

I have the following problem.

I have a form that has a tabular layout for the MATURED_FD_DTLtable. (all about 20 line items)

CREATE TABLE MATURED_FD_DTL

(

ACCT_FD_NO VARCHAR2 (17 BYTE) NOT NULL,

CUST_CODE NUMBER (9),

FD_AMT NUMBER (15),

FD_INT_BAL NUMBER (15),

TDS NUMBER (15),

CHQ_NO NUMBER (10),

CREATED_DATE DATE,

CREATED_BY VARCHAR2 (15 BYTE),

PREV_YR_TDS NUMBER (15),

ADD_FD_AMT NUMBER (15),

DESCRIPTION VARCHAR2 (100 BYTE),

P_SAP_CODE NUMBER (10),

P_TYPE VARCHAR2 (1 BYTE)

)

By clicking on 'SAVE' button, all values will be automatically is stored in the MATURED_FD_DTLdatabase table.

But I want to insert these values in another table called TEMP.

I want to insert values of form only, no table select.

How can I do this?

Help me.

Is Oracle Designer 6i.

Answer:

BEGIN

Commit_form;

PREMIER_ENREGISTREMENT;

LOOP

insert into TEMP_MATURED_FD_DTL

SELECT * FROM MATURED_FD_DTL WHERE ACCT_FD_NO =: acct_fd_NO;

WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

NEXT_RECORD;

END LOOP;

PREMIER_ENREGISTREMENT;

COMMIT;

MESSAGE ("RECORD UPDATED AS PAID '");

MESSAGE (' ', no_acknowledge);

END;

Tags: Oracle Development

Similar Questions

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • Insert the form inside another form tag html tag

    Hi all, this is my problem. I have a xhtml page structured as follows:

    < h:form id = "MainForm()" >

    things...

    < form id = "fileForm" action = "myServlet" method = "post" enctype = "multipart/form-data" >
    < input type = "file" onchange = "fileForm.submit ()" / > "
    < / make >
    < / h:form >

    When you download a file, I want to introduce only "fileForm. But "fileForm.submit ()" does not work because fileFom is null. Looking at the source of the page, I realized that a single form is seen (mainForm) client-side:

    < form id = "mainForm" >

    things...

    < input type = "file" onchange = "fileForm.submit ()" / > "
    < / make >

    Any idea on how to apply it?
    Thanks in advance...

    Is not possible; In my view, embedded forms are even against the HTML specification.

    Published by: cardan2 on 7 February 2012 06:51

  • How to insert the button (or another control) in the row of Datagrid

    Hi friends,

    I create button with in the datagrid, but the button, that it cannot display DataGrid... If I have a any error the below coding please help me...

    the encoding is:

    < mx:DataGrid id = "grd1' x '41' = y = '203' width = '159' >
    < mx:columns >
    < mx:DataGridColumn headerText = "Button" >
    < mx:itemRenderer >
    < fx:Component >
    < mx:HBox >
    < s:Button name = "OK" id = "btn_ok" / >
    < / mx:HBox >
    < / fx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    < mx:DataGridColumn headerText = "Button to cancel" >
    < mx:itemRenderer >
    < fx:Component >
    < mx:HBox >
    < name s:Button = 'Cancel' id = "btn_cancel" / >
    < / mx:HBox >
    < / fx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    < mx:columns >

    < / mx:DataGrid >

    Thank you

    Mamoudou R.

    There are some errors in your code. Who has the color red are errors.



      
       
        
         
            
         

        

       


       
        
         
            
         

        

       

    1. instead of fx type mx. even for the s:button use mx:button
    2. You should have a closing tag BLAH columns
    3. You may not use the name property to button unless it's your custome property. Use label instead of name.
    I'll send in attachment after correction of your code, you taste code MXML. Just go through it. try to run.
  • How to clear the form submit after button preesed?

    Hi all

    I am new to the apex. I created a form based on the table. Whatever values I enter these values are inserted into this table. But after to insert the form is not allowed. Please give solution to clear the form in detail.

    Thank you and best regards,

    Rambeau

    You can clear the values of the element in the form of several ways,

    One of the ways is to create a process to clear items from the cache of the page after submit section,.

    Category: State of Session

    Type: clear the cache for all items on the page (PageID PageID, PageID)

    Enter the Pages to clear Cache: enter the page number you want to delete the value from the element (2)

    Another way is to create a branch to the same page and give the page number in the field "Empty the Cache".

    Thank you

    Lacombe

  • How to add the form designed in adobe acrobat pro live cycle Designer?

    How to add the form designed in adobe acrobat pro live cycle Designer?

    I want to add the form designed in adobe acrobat pro live cycle Designer. I saved the form designed in adobe live cycle designer in pdf format. But you can't change the same in Adobe Acrobat format. I would like to add a few fields and use the fields designed by Adobe Live cycle Designer.

    You can only modify this form in LiveCycle Designer. Forms Acrobat and LCD are not interchangeable.

  • HOW to: Insert the symbol of the degree in text

    An another "How To" question.

    Running PE 13.1 on a Windows PC with WIN 7 64-bit.

    How to insert the symbol of the degree in text - I would like to have something like "temperature + 2 < degree symbol > water C.

    where < degree symbol > is the small circle (triggered).

    I found how to insert copyright (Alt + 0169) & the Tilde (Alt + 126) helped by Wikipedia, but the Windos ciode for the degree symbol is not shown - just the

    Unicode U + 2103 but Alt + 2103 just inserts a '7'.

    HEM

    HEM

    If you have the copyright © symbol to work for you with Alt + 0169, I think Alt + 0176, you should get the degree symbol as in 32 °.

    If please give it a try in the Titler, open Premiere Elements and let us know if it worked for you.

    Thank you.

    RTA

  • How to add the new column in existing table to our desired location?

    How to add the new column in existing table to our desired location?

    For example, I have to add the new column 'course' before the salary column in the emp table.

    I think the best way is to add the column at the end of the table and create a new view with the order of the columns...

    Another option...

    places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table

    Refer

    Add column (from table) in the desired position

    Example:

    CREATE TABLE temp_my_user LIKE)

    SELECT * FROM password);

    DROP TABLE password;

    (Password) CREATE TABLE

    userID NUMBER

    , first name VARCAHR2 (25)

    , middleInitial VARCHAR2 (1)

    (, name VARCHAR2 (25));

    INSERT INTO password (userID, firstName, lastName)

    (SELECT username

    first name

    lastName

    OF temp_my_user);

    DROP TABLE temp_user;

  • How nagivate values from one page to another page as well assured in different modules like po and pon

    How nagivate values from one page to another page as well assured in different modules like po and pon?

    I tried using the session values, hashmap, and Transaction. But none worked.

    Please help me on this.

    Dilip thanks.

    My problem is solved.

    I solved the issue.using the main concepts of java.

    By importing a package into other package and then instantiate the required class.

    Kind regards

    2793235.

  • How can I insert a snapshot from one pdf to another format?

    How can I insert a snapshot from one pdf to another format?

    Hey Rodney,

    (1) Please open the pdf you want to take the picture, go to Edition & select Take Snapshot. )

    (2) make drag & select the area of the pdf file, you need to take the snapshot using your mouse.

    (3) now paste the snapshot into the paint & save it.

    (4) open the second pdf file where you want to place the snapshot in pdf editing mode, now add the image of the snapshot using the option 'Add images' on the desired place.

    Let me know if or even meet any problem.

    Kind regards

    Nicos

  • Help: How to transfer data from one form to another form form

    Hello:

    I was wondering how / if it is possible to transfer data from form from one form to another form. I create a flow of forms, which are as follows: form of Incident report-> form of risk analysis-> error-> report form decision support survey Standard-> report form of risk control-> form of mitigation-> etc... You get the gist. It would be very time-consuming to constantly transfer the standard who, what, when, where and how from one form to the other. I was wondering how do? I have looked around on the net and this forum and couldn't find a tutorial or a guide? Is this possible with Adobe forms?

    I use a XML schema for the form to preload a list of employees and the standard list information and then publish the form to submit in PDF format for opening and tracking form mobile device. I notice that I can export the data in a form that is distributed in XML but I can't import in a distributed form. I'm a newb with code, but may contain a little of my own.

    An example of how to achieve this with a field name or something would be greatly appreciated! If you need anything, or a copy of the forms let me know!

    Thank you kindly,

    Al

    Hi Al,.

    I have here an example where the data in a single form are 'communicated' to other forms. Please note that there are specific script in each of the forms. It's a work in progress and one day I'll come back make a more polished example: http://assure.ly/qQivbm.

    See also John Brinkman's blog for a different approach: http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_1.html and http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_2.html.

    Good luck

    Niall

  • How to find the child level for each table in a relational model?

    Earthlings,

    I need your help, and I know that, "Yes, we can change." Change this thread to a question answered.

    So: How to find the child level for each table in a relational model?

    I have a database of relacional (9.2), all right?
    .
         O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
        /↑\ Fks
       O"O O" <-- level 2 for first table (circle)
      /↑\ Fks
    "o"o"o" <-- level 1 for middle table (circle)
       ↑ Fk
      "º"
    Tips:
    -Each circle represents a table;
    -Red no tables have foreign key
    -the picture on the front line of tree, for example, a level 3, but when 3 becomes N? How is N? That is the question.

    I started to think about the following:

    First of all, I need to know how to take the kids:
    select distinct child.table_name child
      from all_cons_columns father
      join all_cons_columns child
     using (owner, position)
      join (select child.owner,
                   child.constraint_name fk,
                   child.table_name child,
                   child.r_constraint_name pk,
                   father.table_name father
              from all_constraints father, all_constraints child
             where child.r_owner = father.owner
               and child.r_constraint_name = father.constraint_name
               and father.constraint_type in ('P', 'U')
               and child.constraint_type = 'R'
               and child.owner = 'OWNER') aux
     using (owner)
     where child.constraint_name = aux.fk
       and child.table_name = aux.child
       and father.constraint_name = aux.pk
       and father.table_name = aux.father;
    Thought...
    We will share!

    Thanks in advance,
    Philips

    Published by: BluShadow on April 1st, 2011 15:08
    formatting of code and hierarchy for readbility

    Have you looked to see if there is a cycle in the graph of dependence? Is there a table that has a foreign key to B and B has a back of A foreign key?

    SQL> create table my_emp (
      2    emp_id number primary key,
      3    emp_name varchar2(10),
      4    manager_id number
      5  );
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table my_mgr (
      2    manager_id number primary key,
      3    employee_id number references my_emp( emp_id ),
      4    purchasing_authority number
      5* )
    SQL> /
    
    Table created.
    
    SQL> alter table my_emp
      2    add constraint fk_emp_mgr foreign key( manager_id )
      3         references my_mgr( manager_id );
    
    Table altered.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by prior child_table_name = parent_table_name
    SQL> /
    ERROR:
    ORA-01436: CONNECT BY loop in user data
    

    If you have a cycle, you have some problems.

    (1) it is a NOCYCLE keyword does not cause the error, but that probably requires an Oracle version which is not so far off support. I don't think it was available at the time 9.2 but I don't have anything old enough to test on

    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by nocycle prior child_table_name = parent_table_name
    SQL> /
    
           LVL CHILD_TABLE_NAME               PATH
    ---------- ------------------------------ --------------------
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
    

    (2) If you try to write on a table and all of its constraints in a file and do it in a valid order, the entire solution is probably wrong. It is impossible, for example, to generate the DDL for MY_EMP and MY_DEPT such as all instructions for a table come first, and all the instructions for the other are generated second. So even if NOCYCLE to avoid the error, you would end up with an invalid DDL script. If that's the problem, I would rethink the approach.

    -Generate the DDL for all tables without constraint
    -Can generate the DDL for all primary key constraints
    -Can generate the DDL for all unique key constraints
    -Can generate the DDL for all foreign key constraints

    This is not solidarity all the DOF for a given in the file object. But the SQL will be radically simpler writing - there will be no need to even look at the dependency graph.

    Justin

  • How to recover the second line of a table

    Hello

    Could someone let me know how to recover the second line of a table without using the coumn the names of columns in the table.

    By default the table EMP or used in the case of scott connection can be used as an example of table.


    Concerning
    select e.* from(
    select e.*,  rownum rn from emp e)e
    where e.rn =2
    

    did you expect that?

  • How to assign the temporary tablespace to a table

    How to assign the temporary tablespace to a table

    temporary tablespace can be attributed to the user.

  • How to get the IP address, Port database don't &amp; Oracle SID details

    Hello
    How to know the IP address, Port database don't & Oracle SID details

    Hello

    The IP address is for not for the database server.

    Port no, may be different.

    check what sid, listening to the port

    lsnrctl > status

    or

    Open the tnsname.ora or listener.ora to find what hostname(ip address), what is the port number and what is the SID that you connect

    Hope that answers your question.

    Kind regards
    Rakesh Jayappa

Maybe you are looking for