Data should get inserted in all tables if i enter the form field only once

Hi, I have a new question again.
There are 5 tables in a database, that is t1, t2, t3, t4 & t5. the first 4 table has one common column, known as lc_no. I have build the form using the form builder. In that form, there is a 1 text field for lc_no. I have not started to code anything as yet in the form because everything with respect to it is working fine and even the data is getting inserted. But the problem is that, when i enter the data in the form, the lc_no gets loaded in only one table. I want the data to get inserted in all the tables. What should i code? How should i start off? I'm very new to this & don't exactly know how do i start with it ?
Thank You. Can you help as i have not yet started to code in this form.
Oracle9i Enterprise Edition Release 9.2.0.1.0.
oracle forms 6i.

Let us say table one have lc_no, other columen
Table 2 have LC-no , other columsn
Table 3 have lc-no , other column,
Now in form(which has table1 as base table)
In PRe-Insert write like below
Insert into table2 (lc_no) values (:table1.lc_no) here tabel1 should be block name in form.
Insert into table3 (lc_no) values (:table1.lc_no)
................and so on .. to other table.
So, now when user commits the form, the lc_no will be available in all the other tables..

Similar Messages

  • Data not getting inserted in R/3 System from Webdynpro

    Hi,
    We were trying to insert some data into r/3 z-table using a Custom BAPI using RFC.
    But the data is not getting inserted.
    Through I commit is being performed explicity.
    Please help:
    Below is the code :
    Controllor code :
    public void wdDoInit()
        //@@begin wdDoInit()
         try{
            Z_Bapi_Rfq_Test_Input objStatus = new Z_Bapi_Rfq_Test_Input();
            wdContext.nodeZ_bapi_rfq_test().bind(objStatus);
    //        Create a new element in node Bapi_Transaction_Commit_Input
          Bapi_Transaction_Commit_Input inputCommit =
          new Bapi_Transaction_Commit_Input();
          wdContext.nodeBAPI_TRANSACTION_COMMIT()
          .bind(inputCommit);
            //Bapi_Transaction_Commit_Input obj;
           // wdContext.nodeZ_Bapi_Quo_Salesrep_Status_Input().invalidate();
            //wdContext.nodeOutput().invalidate();
            //wdContext.nodeRfq_Status().invalidate();
              } catch(Exception rfqException){
                        wdComponentAPI.getMessageManager().reportException("rfqException="+rfqException.getMessage(),true);
        //@@end
    public void executeBapi( )
        //@@begin executeBapi()
         try{
                   Z_Bapi_Rfq_Test_Input  obj = wdContext.currentZ_bapi_rfq_testElement().modelObject();
                   AbstractList   objAbBapiPartner = new Bapiparnr.Bapiparnr_List();
                   Bapiparnr objBapiPartner = new Bapiparnr();
                   objBapiPartner.setPartn_Numb("0000001046");
                   objBapiPartner.setPartn_Role("AG");
                   //obj.addPartner(objBapiPartner);
                   objAbBapiPartner.add(objBapiPartner);
                  obj.setPartner(objAbBapiPartner);
                  Bapisdhd1 objBapisdhd1 = new Bapisdhd1();
                   objBapisdhd1.setSales_Org("2500");
                   objBapisdhd1.setDistr_Chan("30");
                   objBapisdhd1.setDivision("20");
                   objBapisdhd1.setDoc_Type("ZRFQ");
                 obj.setHeader(objBapisdhd1);
                 obj.execute();
    //             Synchronise the data in the context with the data in the model
                   wdContext.nodeZ_bapi_rfq_test().invalidate();
              wdContext.nodePartner().invalidate();
                   wdContext.nodeHeader().invalidate();
                   wdContext.nodeOutput().invalidate();
                   wdContext.nodeReturn().invalidate();
    //               Z_Bapi_Quo_Salesrep_Status_Output outPut= obj.getOutput();
    //               if(outPut!=null){
    //                    List materialList=outPut.getRfq_Status();
    //                    if(materialList!=null){
    //                      wdComponentAPI.getMessageManager().reportSuccess("materialList="+materialList.size());
              } catch(Exception rfqException){
                   wdComponentAPI.getMessageManager().reportException("rfqException="+ rfqException.toString(),true);
        //@@end
    public void executeBapi_Commit( )
        //@@begin executeBapi_Commit()
         try {
    //       Calls remote function module BAPI_Transaction_Commit
         wdContext.currentBAPI_TRANSACTION_COMMITElement().modelObject().execute();
         wdContext.nodeBAPI_TRANSACTION_COMMIT().invalidate();
         wdContext.nodeOutput1().invalidate();
         wdContext.nodeReturn().invalidate();
         wdContext.nodeReturn1().invalidate();
         } catch (WDDynamicRFCExecuteException ce) {
              wdComponentAPI.getMessageManager().reportException(ce.getMessage(), false);
        //@@end
    View Controlloer Code:
    public void wdDoInit()
        //@@begin wdDoInit()
         wdThis.wdGetCControllerController().executeBapi();
         wdThis.wdGetCControllerController().executeBapi_Commit();
                 IWDApplication wedDynApplication=wdComponentAPI.getApplication();
                 IWDApplicationInfo applicationInfo=wedDynApplication.getApplicationInfo();
                 Collection collection=applicationInfo.getApplicationProperties();
        //@@end

    Hi Gareth,
    I was not getting enough time to reply, so replying late.
    Actaully the problem was with r/3 BAPI Code itself.
    There was condition in the begining of the code to check the data in the workare of R/3, so this condition was failing here.
    But when we try to invoke that bapi from r/3 workbench it works fine because the data first comes to R/3 workarea then to R/3 Tables.
    But when we insert data from Webdynpro framework , the data directly goes to R/3 Tables rather than the R/3 Workarea. So in Bapi the first condition was failing and no data was getting inserted.
    So this was the problem, and we solved it.
    Thanks,
    Regards,
    Aditya metukul

  • How does one strip out all Live Cycle data from a PDF and rebuild the form fields in Acrobat?

    Someone in a different department built a bunch of forms in Live Cycle. We now need to make minor edits to these forms but we all have Macs and can't use Live Cycle. Currently our only option to change a date and a name on each form  is to buy a new Windows workstation, buy a copy of Live Cycle and train someone for it.
    I understand the Live Cycle technology and Acrobat technology for forms are somehow different but there must be a way to just strip out all the Live Cycle form programming so that I just have the bare PDF with the text and layout.  Then make the text edits and rebuild the form fields in Acrobat.

    It depends on your PDF. Is the PDF a static XFA or a dynamic XFA?
    You can check to see if the PDF is static/dynamic by clicking File=>Save As, and it should say static or dynamic PDF as file type.
    iText will work with Static XFA forms created in LiveCycle. Dynamic XFA forms are not supported.
    You can also submit XML data to a server side script and parse the XML data using C# system.xml.xmlreader.
    Another tool that may speed the development of the project is:
    http://www.fdftoolkit.net/
    Note: FDFToolkit.net utilizes iText Technologies.

  • How to list all  tables that belongs to the current user?

    hi all
    "select tblowner,tblname from tables where tblowner in (select user from dual);"
    I want a list of all tables that belongs to the current user. I use the SQL above, but given "no rows selectd",but if
    I replace the subquery with literal,like
    "select tblowner,tblname from tables where tblowner = 'JFMDB');".
    I got the list. why?
    Thnk u very much!

    This looks like a bug that was fixed in 7.0.5.13 and onwards. I can reproduce what you are seeing in 7.0.5.10.0 (Linux x86-64 / Access control enabled instance from root install) but not 7.0.5.13.0 (Linux x86-64 / Access control enabled instance from root install).
    Unfortunately I don't have a bug number to pass on. I can't see anything relevant listed in the Release Notes and I haven't found a likely candidate in our internal listings. This may well have been one that was fixed "in passing" when RnD were working on something similar.

  • Adobe Reader 9.4  won't allow saving-copying-printing of data entered into form fields.

    Hello, all.  I own a fully automated Continuing Education website with a national customer base.  The release of Adobe Reader 9.4 has brought a major problem for us which we haven't been able to overcome, and it's a critical issue which will destroy our business if the problem continues. 
    The problem:  Our professionally licensed website users earn online, instantly downloadable Continuing Education certificates in PDF file format, which are auto-generated by our software program when the user has successfully completed a course and its quiz.
    Each certificate is a template created by Adobe Acrobat Pro 6 which contains the boilerplate course goals, credit hours earned for the course, plus all of our educational approval numbers needed to conduct business in each state.  THE PROBLEM HERE is that these generated certificates ALSO have form fields which are auto-completed by our system when the user successfully completes his or her course - i.e., the user's name, his license number, and the date and hour and minute of completion.  Until some of our customers began to use Adobe Reader 9.4 on their PC this past week, the certificate generation process has performed flawlessly - for over 3 years now, for over a thousand customers - the only exception being the  occasional MAC user who needs to download the correct version of Adobe Reader, and to use the correct browser. 
    Beginning last week, site users who have downloaded 9.4 can no longer SAVE their Continuing Education certificates to their computer with their name, license and date and time of completion showing on the certificate.   And they can't even print the certificate correctly - their name, license, and date of completion appear as blank lines.  They can't download or email the certificate with the critical form field data showing on the document. This is a devastating situation for our business and for the users - who certainly won't return, and are demanding refunds. 
    In fact, I (who installed 9.4 last week) discovered that I can't even download and save an intact copy of a customer's certificate from my own website, OR copy and paste information from a client's generated certificate in order to manually create a certificate for him or her.  The on-screen message tells me that I am not allowed to do this with this document .... despite the fact that I was the creator of the document. Needless to say, when I un-installed 9.4, I had none of these problems.
    Customers wouldn't have problems either if they uninstalled 9.4 - but you can't tell customers who call in to complain, to uninstall their Adobe Reader program and find something else.  They also have to use Adobe Reader to view over half of the courses we offer, and they need to be able to work with them effectively with no problems. 
    In the past, because of occasional Adobe Reader problems of a different sort, we could tell customers to use Foxit or Nitro PDF if they had Adobe issues.  But that was back in the day when there was no competition in running an online CE website.  Now there is plenty of competition, and customers will just go elsewhere before they will try to reconfigure their computer just to stay with our site.
    I will bet that hundreds (thousands?) of other online businesses who work with system-generated form fields in PDF documents have been similarly affected.   
    Is there a solution here?  Surely this was an UNINTENDED result of  Adobe's upgrade to 9.4.   Is there something that we can do at our end to eliminate these issues?  There are NO security protections or limitations imposed on these certificate documents.  And we CANNOT eliminate the form fields that are filled internally when the customer passes t the course.  Date and time of completion and all the rest are required by all of the States which license us.  Many thanks!

    That was it!
    Thanks

  • How to view the Form Fields in Process data model?

    Hi all,
    I have made a form in LC Designer containing some name,ID and other generic details.Is there a way by which i can see those nodes in Proces data model when i load that document?.As of now it shows only attribute as Object. Can't I access those fields like name, id etc thru model directly.??

    You have to define an XML Schema for the form and bind the form fields to the XML Schema. Additionally, embedding the XML Schema in the form makes life easier.
    Given an XML Schema you will be able to navigate through the document hierarchy and access form fields in the XPath navigator.
    If you would like a sample form, just send me a request at [email protected]

  • How do I create a form field ONLY template in Acrobat 9 Pro that will let the user enter and print only the form field data on a pre-printed form?

    This template will be used to type in information that will then be printed on an agency's official, barcoded form loaded in a printer (instead of blank paper.)  Only the user-entered info should print on the pre-printed form.  Users will use Adobe Reader to complete their templates; they do not have Acrobat.  Thank you!

    Use the template as non-printable background and add the form fields.

  • There is anyway to find the tables name where data is getting inserted currently.

    Hi All,
    I need T-Sql Query to find list of tables in which data is getting loaded currently.
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi,
    What About This Query:
    SELECT B.TEXT,A.SESSION_ID,A.STATUS,A.COMMAND,A.CPU_TIME,A.TOTAL_ELAPSED_TIME,A.*,B.*
    FROM SYS.DM_EXEC_REQUESTS A
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT (SQL_HANDLE) B 
    WHERE TEXT NOT LIKE '%SELECT B.TEXT,A.SESSION_ID,A.STATUS,A.COMMAND,A.CPU_TIME,A.TOTAL_ELAPSED_TIME,A.*,B.*%'
    --AND TEXT LIKE '%'
    ORDER BY START_TIME DESC
    Thanks Shiven:) If Answer is Helpful, Please Vote
    The query would return the currently executing query irrespective of insert. But, you are looking for the logging of table. Is my understanding wrong?
    If you are looking for what is running on the server, then you can use the above script. The below is the one am using to get those info:
    SELECT r.session_id ,
    (Select Top 1 CON.client_net_address From sys.dm_exec_connections AS CON
    where CON.session_id = r.session_id) Client_Address,
    OBJECT_NAME(qt.objectid, qt.dbid),
    r.[status] ,
    r.wait_type ,
    r.scheduler_id ,
    SUBSTRING(qt.[text], r.statement_start_offset / 2,
    ( CASE WHEN r.statement_end_offset = -1
    THEN LEN(CONVERT(NVARCHAR(MAX), qt.[text])) * 2
    ELSE r.statement_end_offset
    END - r.statement_start_offset ) / 2) AS [statement_executing] ,
    DB_NAME(qt.[dbid]) AS [DatabaseName] ,
    Object_NAME(qt.objectid) AS [ObjectName] ,
    r.cpu_time ,
    r.total_elapsed_time ,
    r.reads ,
    r.writes ,
    r.logical_reads ,
    r.plan_handle
    FROM sys.dm_exec_requests AS r
    CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS qt
    WHERE r.session_id > 50 and r.session_id <> @@SPID

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • Insert into all tables on a Database on Test Server select from all tables on a database A from production server

     
    hi Friends ,i need a suggestion from  you on how to
    insert data to all tables on a Database  "A " on Test server
    Select data from all tables on  a Database  "A" on Production Server
    where id=123
    Database A is same with Structures on Test and Production also all Tables  will have  Id column in common.
    The purpose of this insert is ,as we all know Production has the latest data and i need to push to test server on request for particular ID only  ( may be weekly once or  twice a week )
    I  have a linked server setup name "LINQ" 
    Example for one table is below , like wise i need a script which does for 154 tables.
    Insert into ABC( id, name)---insert to test server
    Select Id, name  from  LINQ.ProdSerevrname.databasename.ABC where id = 123
    Please help me ..
    Thanks

    Why not use export import wizard for this if you've read access to production?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Issue - data is not inserting into queue table

    Hi friends....i created a queue table & queue , started queue. while inserting number into queue, it is going fine. but , while browsing queue table, there is no data inserted into table. table is empty. i executed same script in another machine, it is working fine there.but, it is not working in my machine. i don't know why?.
    can anybody please help me to find out what will be the issue.
    these are the scripts i created........
    BEGIN
    DBMS_AQADM.CREATE_QUEUE_TABLE (
    queue_table => 'put_queue_table',
    queue_payload_type => 'sys.aq$_jms_text_message'
    END;
    anonymous block completed
    BEGIN
    DBMS_AQADM.CREATE_QUEUE (
    queue_name => 'QUALTY_QUEUE',
    queue_table => 'put_queue_table'
    DBMS_AQADM.START_QUEUE (
    queue_name => 'QUALTY_QUEUE'
    END;
    anonymous block completed
    DECLARE
    v_payload SYS.AQ$_JMS_TEXT_MESSAGE;
    v_enqueue_options dbms_aq.enqueue_options_t;
    v_message_properties dbms_aq.message_properties_t;
    v_message_handle RAW(16);
    v_text VARCHAR2(37);
    BEGIN
    v_text := to_char('157');
    v_payload := SYS.AQ$_JMS_TEXT_MESSAGE.construct;
    v_payload.set_text(v_text);
    DBMS_AQ.ENQUEUE(
    queue_name => 'QUALTY_QUEUE',
    enqueue_options => v_enqueue_options,
    message_properties => v_message_properties,
    payload => v_payload,
    msgid => v_message_handle
    COMMIT;
    END;
    anonymous block completed

    Please define what you mean by "when browsing [the] queue table" and why you think what you are doing should be inserting new rows in the table. Also please post full version information.

  • Data not getting inserted into oracle with theAutoCommitEnabled not checked

    Hello Experts
    I have a proxy to JDBC scenario.I have 3 SQL statements and the Format is
    <DeleteStatement>
    <InsertStatement>
    <CallStoredProcStatement>.
    While excecuting with the AutoCommitEnabled box checked, the insert statement is excecuting and the data is getting updated in the oracle database..But the CallStoredProcStatement is not excecuting.
    If the AutoCommitEnabled box not checked,the data is not getting updated in the database .but in RWB log all the SQL statements are getting executed successfully.
    Are there any other configurations still to be made in the JDBC adapter.

    Hi,
    Why you not using single SP to handle all the queries?
    BTW, have you used the parameter "logSQLStatement = true" in JDBC receiver channel? It will show in audit log what query is being executed.
    Regards,
    Neetesh

  • Derby Embedded get list of all tables

    I am writing a small program that uses derby embedded to store schedules for teachers. Each teacher will have their own table and I want to use the teacher name for the table name and allow the teacher to be selected from the combo box. I have an SQL statement i'd to have return all the current tables, but i think i am doing something wrong:
    public static String[] getTeacherNames() {
            String[] tableNames = null;
            String tableFind = "select APP.schemaname || '.' || Schedule.tablename"+
                                 "from sys.systables Schedule, sys.sysschemas APP"+
                                 "where Schedule.schemaid = APP.schemaid"+
                                      "and Schedule.tabletype = 'T'"+
                                 "order by APP.schemaname, Schedule.tablename";
            String protocol = "jdbc:derby:";
            String dB = "Schedule";
            Connection con;
            Statement stmt;
    try {
                    con = DriverManager.getConnection(protocol + dB +
                            ";create=true", "app", "app");
                    stmt = con.createStatement();                                   
                    ResultSet rs = stmt.executeQuery(tableFind);
                    ResultSetMetaData rsmd = rs.getMetaData();
                    int rowCount = 0;
                    while (rs.next()) {
                            tableNames[rowCount] = rs.getNString(rowCount);                      
                            rowCount++;
                    stmt.close();
                    con.close();
                } catch(SQLException ex) {
                        System.err.print("SQLException: ");
                        System.err.println(ex.getMessage());
                return tableNames;                
        }can anyone help, or have any better ideas? I modified the statement from the one i found on the derby Wiki.

    like this?
    String[] getNamesArray = {"%"};
            String[] tableNames[] = null;
            String protocol = "jdbc:derby:";
            String dB = "Schedule";
            Connection con;
            Statement stmt;
    try {
                    con = DriverManager.getConnection(protocol + dB +
                            ";create=true", "app", "app");
                    DatabaseMetaData dbmd = con.getMetaData();
                   tableNames = dbmd.getTables("%");                   
                    con.close();
         } catch(SQLException ex) {
                System.err.print("SQLException: ");
                System.err.println(ex.getMessage());
                return tableNames;                
        }the DatabaseMetaData will only except the names of tables I already know? I've been messing with it for a while and can't seem to get it to be happy with what I am giving it.

  • How to get script of all tables through DBMS_METADATA.GET_DDL

    Hi friends
    Is there any way thr which i can generate script off all tables at one time...
    select dbms_metadata.get_ddl('TABLE','CONSUMER','UPCLMAIN')FROM DUAL;
    I ve 78 tables and its too tedious to to one by one and i am working in 10 g...
    thanks
    sonal....

    How about
    select dbms_metadata.get_ddl('TABLE',table_name,owner)FROM dba_tables where owner='yourschema';
    Regards,
    PP

  • Trying to  get values from a table in apex item.. form.. not sucessfulll

    I have a form and have 3 fields.. .i need the value to be fetched from some other table... at the start...
    Note if the values are present in the fields it donot need to be fetched...
    Now how can i accomplish this..
    I tried using ...onload event.. but data is not visible in the required field..
    I tried dynaic item.. for even on page load ..it does fire..But i will like it to fire only one time..
    Does any one have any idea how can this be accomplished
    In oracle forms we will have done ..soemting like when new form instance trigger - select name into :mname from table where empno = :xyz;
    How do we accomplish this in apex..any info will be usefull..
    Thanks
    Paul j

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

Maybe you are looking for