Multiple connection in one form, is it possible?

Im trying to access two different database (P.O.7 and the other is an ODBC Compliant) in one form.
First thing i did was to run the wizard on each block using different login (1 for my PO7 and also the other) and it was successful, but when I try to execute the form, it just cant recognized the other block! since im only connected to other datasource....
Any suggestion on what should i do with this....

Check out the EXEC_SQL command under help in Forms
The EXEC_SQL package allows you to access multiple Oracle database servers on several different connections at the same time. Connections can also be made to ODBC data sources via the Open Client Adapter (OCA), which is supplied with Developer. To access non-Oracle data sources, you must install OCA and an appropriate ODBC driver.
The EXEC_SQL package contains procedures and functions you can use to execute dynamic SQL within PL/SQL procedures. Like the DBMS_SQL package, the SQL statements are stored in character strings that are only passed to or built by your source program at runtime. You can issue any data manipulation language (DML) or data definition language (DDL) statement using the EXEC_SQL package.

Similar Messages

  • Adding data to multiple tables using one form in Access 2010?

    Hi All,
    I have a access database with two tables and I want to create a single form to enter data into that tables.
    How to adding data to multiple tables using one form in Access 2010?
    I don't have to much knowledge of access database?
    Please help me
    Thanks
    Balaji

    You really don't enter identical data into 2 tables.  You enter dat into one single table, and then you have an unique identifier that maps to another table (you have a unique relationship between two tables). 
    Maybe you need to read this.
    http://office.microsoft.com/en-001/access-help/database-design-basics-HA001224247.aspx
    Think about it this way...  What is you update data in 2 tables, and then the data in one of those tables changes, but the data in the other table does NOT change.  WHOOPS!!  Now, you've got a BIG problem.  For instance, you have a customer
    named Bill Gates.  In one Table you update Bill's address to 1835 73rd Ave NE, Medina, WA 98039 and in the other table you accidentally update Bill's address to 183 73rd Ave NE, Medina, WA 98039.  Now you have 2 addresses for Bill.  Why would
    you want that???  Which is right?  No one knows.  If you have one address, you just have to update one address and if there is a mistake, you just have to update one address, but you don't have to waste time trying to figure out which is right
    and which is wong...and then update the one that is wrong.
    Post back with specific questions.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • I want to play multiple speakers off one Airport. is that possible?

    I have an Airport express in my living room, but i want to have wireless music in my kitchen and bedroom. Would i need to buy an amplifier and connect it to the airport or can i play multiple speakers off one Airport OR should i buy multiple Airport's to achieve this?

    You can either use multiple AirPorts or use an audio system that pipes music to speakers throughout the house.

  • Multiple connections in one project

    Hi,
    Is there perhaps some kind of a document describing a 'best practice' for using multiple connections in a ADF BC application. One connects to an oracle DB another to a SQLServer.
    I suppose I need to create two different services? Anybody having experience with this?
    Regards,
    Koen Verhulst

    Among other things, the BC4J Configuration defines the name of the JDBC connection to use. To solve your problem, you can create two Configurations one for each database. The JDBC connection value will be the only different element between these two Configurations. To create a BC4J Configuration in JDeveloper, right click on the AppModule node and then click Configurations...,
    Use oracle.jbo.client.Configuration class to create AppModules connected to the database you want.,
    import oracle.jbo.*;
    import oracle.jbo.client.Configuration;
    String am = "demo.DemoModule"; // Fully-qualified application module name
    // Configuration name with JDBC connection to source database
    String cf1 = "DemoModuleSourceDb";
    ApplicationModule amSrc = Configuration.createRootApplicationModule(am,cf1);
    // Configuration name with JDBC connection to dest database
    String cf2 = "DemoModuleDestDb";
    ApplicationModule amDest = Configuration.createRootApplicationModule(am,cf2);
    Note that the AM name can also be different if you want.
    Hope this helps,
    Sathish.
    I want to access several Databases from one BC4J-Project.
    For example I want to write an application, which collects data from one database, does some computation and stores the results in a second database.
    I would prefer to use BC4J-Components for both, the source and the target database, but unfortunately I can select only one connection per BC4J-Project.
    Has anyone got an idea, how I can access more than one database-connection from one BC4J-Project without having to write all the JDBC-Stuff on my own? JDev-Team, can you please give a hint?

  • Multiple connections in one app

    Hi,
    I have a web app and am using JDev 10.1.3.2 with ADFBC. Some of the data will come from SQL2000 while other info will come from Oracle 10g. My UI will require presentation of a mix. But I am only able (it appears) to use one db connection in one project. What's the best way to address using multiple datasources?
    Thanks!
    Ginni

    hi ginnim
    Maybe this blog story by Steve Muench could be of some help:
    "How Granular Should My Application Modules Be?"
    http://radio.weblogs.com/0118231/stories/2005/05/27/howGranularShouldMyApplicationModulesBe.html
    success
    Jan Vervecken

  • Inserting into multiple tables on one form using UIX

    We are developing an application using struts and UIX. We would like to be able to insert into three tables on one form(view). How can we accomplish this?

    This is more of an ADF question, you'll need to set up view object, than just drag it from the data control palette like normal.
    If it's not already set up as a view in the db (split into multiple tables), you'll need to create a view object that includes all the fields you want, based on multiple entity objects.

  • Multiple connections in one BC4J Project

    I want to access several Databases from one BC4J-Project.
    For example I want to write an application, which collects data from one database, does some computation and stores the results in a second database.
    I would prefer to use BC4J-Components for both, the source and the target database, but unfortunately I can select only one connection per BC4J-Project.
    Has anyone got an idea, how I can access more than one database-connection from one BC4J-Project without having to write all the JDBC-Stuff on my own? JDev-Team, can you please give a hint?

    Among other things, the BC4J Configuration defines the name of the JDBC connection to use. To solve your problem, you can create two Configurations one for each database. The JDBC connection value will be the only different element between these two Configurations. To create a BC4J Configuration in JDeveloper, right click on the AppModule node and then click Configurations...,
    Use oracle.jbo.client.Configuration class to create AppModules connected to the database you want.,
    import oracle.jbo.*;
    import oracle.jbo.client.Configuration;
    String am = "demo.DemoModule"; // Fully-qualified application module name
    // Configuration name with JDBC connection to source database
    String cf1 = "DemoModuleSourceDb";
    ApplicationModule amSrc = Configuration.createRootApplicationModule(am,cf1);
    // Configuration name with JDBC connection to dest database
    String cf2 = "DemoModuleDestDb";
    ApplicationModule amDest = Configuration.createRootApplicationModule(am,cf2);
    Note that the AM name can also be different if you want.
    Hope this helps,
    Sathish.
    I want to access several Databases from one BC4J-Project.
    For example I want to write an application, which collects data from one database, does some computation and stores the results in a second database.
    I would prefer to use BC4J-Components for both, the source and the target database, but unfortunately I can select only one connection per BC4J-Project.
    Has anyone got an idea, how I can access more than one database-connection from one BC4J-Project without having to write all the JDBC-Stuff on my own? JDev-Team, can you please give a hint?

  • Multiple Connections in one transaction?

    Hello,
    we use the OC4J 9.0.3 with the fellowing DataSource configuration:
    <data-source
    class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    name="OracleDS"
    location="jdbc/OracleCoreDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/OracleDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="xxx"
    password="xxx"
    url="jdbc:oracle:thin:@10.50.40.17:1521:vbstest"
    inactivity-timeout="30"
    max-connections="30"
    />
    In our project we use CMP/BMP-Entitybeans and CMR. During a complex update we got a SQL-Exception with the message, that a foreign key constrain has been violated (primary key does not exist, even it has been inserted in the same transaction). Because we know, that the same code runs on JBoss 3.0, we have assumed that OC4J use more than one connection and so we have enabled the connection debug.
    The result is, that OC4J created in one transaction more that 6 connections. All beans using the same datasource.
    Is there is a way to configure this beavior? Or someone have a idea, why OC4J use more than one connection in one tranaction?
    Here the connection debug log:
    2003-03-18 10:42:31,162 DEBUG (10.50.40.115-ruethja-0) [VDDBean_PersistenceManager11] Connection: [Connection : com.evermind.sql.OrionCMTConnection@a1fa8e]
    2003-03-18 10:42:31,602 DEBUG (10.50.40.115-ruethja-0) [DienststelleBeanImpl_PersistenceManager73] Connection: [Connection : com.evermind.sql.OrionCMTConnection@7a6aa8]
    2003-03-18 10:42:32,433 DEBUG (10.50.40.115-ruethja-0) [VorgangBeanImpl_PersistenceManager41] Connection: [Connection : com.evermind.sql.OrionCMTConnection@1af986c]
    2003-03-18 10:42:32,483 DEBUG (10.50.40.115-ruethja-0) [VDDBean_PersistenceManager11] Connection: [Connection : com.evermind.sql.OrionCMTConnection@1d372d7]
    2003-03-18 10:42:32,674 DEBUG (10.50.40.115-ruethja-0) [VorgangBeanImpl_PersistenceManager41] Connection: [Connection : com.evermind.sql.OrionCMTConnection@8b64b3]
    2003-03-18 10:42:32,724 DEBUG (10.50.40.115-ruethja-0) [DienststelleBeanImpl_PersistenceManager73] Connection: [Connection : com.evermind.sql.OrionCMTConnection@1e0e2ba]

    could you post the source of session bean may be i can help you then
    regards,
    ashish saraf

  • Multiple records from one form

    Hi everyone,
    I am creating a sign-up form for users of a website - i need
    them to select from a number of categories that they want to be
    listed in. i am using a series of check boxes for them to select
    the categories. What i want to do is create a separate record in my
    MySQL DB for each check box that is ticked that contains the user
    ID and the category ID. is there a way to do this from just one
    form?

    dhewuidhjklhdwidh wrote:
    > I am creating a sign-up form for users of a website - i
    need them to select
    > from a number of categories that they want to be listed
    in. i am using a series
    > of check boxes for them to select the categories. What i
    want to do is create a
    > separate record in my MySQL DB for each check box that
    is ticked that contains
    > the user ID and the category ID. is there a way to do
    this from just one form?
    You can save them in a SET column. A SET column type allows
    you to store
    up to 64 predefined values in a single column.
    Create the checkbox group as an array by adding square
    brackets to the
    end of the name value like this:
    <input type="checkbox" name="category[]" value="catA"
    />
    <input type="checkbox" name="category[]" value="catB"
    />
    <input type="checkbox" name="category[]" value="catC"
    />
    To insert the values in a SET column, use implode() to create
    a
    comma-separated string:
    if (isset($_POST['category'])) {
    $_POST['category'] = implode(',', $_POST['category']);
    else {
    $_POST['category'] = '';
    More about the SET column type here:
    http://dev.mysql.com/doc/refman/5.0/en/set.html
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to open multiple db connections from one form?

    Hello,
    We have two different Oracle databases and need to access them (read and write) from the same form. Is there a way to do this, apart from using EXEC_SQL as described in Note 67516.1 ? I could also use db_links and synonyms, but this would add an extra maintenance aspect that I'd like to avoid.
    Thanks,
    :-Phil

    Sorry Phil,
    but that's all you got.
    Frank

  • Insert/update multiple tables from one form.

    I'm working on an app. that requires the user to fill out a form. The contents from the form is then used to either insert new records or update existing records in multiple tables. Is that possible? Can someone give a details example?

    You should create a form like you would create it having one table. Use row_id as primary key. The rest of the process are done by the triggers - those will take care of updating the right table depending which column was hit.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • LiveCycle Designer 8.0 - Need multiple signatures on one form

    Hi
    I am very new to LiveCycle Designer, and do not have ES, and probably cannot get it. I have created a form that needs to accept multiple signatures from 6 or more people.  The form was initiated from a Word-generated PDF.
    I created a table that has four columns, one for the person's title, another for the signature, the remaining columns are irrelevant for this discussion. The person associated with the "title" signs in the Signature column in that same row. In the PDF version of the form, Acrobat 9 allows two signatures, but no more. How can I get Acrobat to accept signatures for all 6+ individuals? The two sigs I got were in subsequent rows.  If I can get Acrobat to accept additional sigs, do the sigs need to take place in strict order (1st row, 2nd row, 3rd row...), or can the signers sign in any table row?
    Please let me knowif you have additional questions for me that can help you understand how to solve this issue.
    Thanks,
    AR

    Thank you Srini,
    This is what I did, for anyone else with the same issue:
    Tocreate signature fields in LiveCycle Designer:
    Highlight the field. In the Object pallet Type field, select: Document Signature Field.
    On the Document Signature tab, make sure that Lock Fields After Signing is not checked.
    These fields are a quick way for users to add a digital signature in Adobe Reader.
    This seems to work well. I appreciate the help.
    Just to bring it full circle, how do you delete a document signature field? Haven't found it in the Help.
    Thanks much!
    AR

  • Simultaneous update of multiple records thru' one form

    Hi
    I am developing an online stocks inventory, where in a dealer places his order and fills in the reqd details. This goes to a table (Orders) in the database.
    Now the Orders Admin (in the stores dept) views all the new orders and allots acceptance number to each order.
    He may have multiple orders from the same dealer or from different dealers.
    The purpose is I provide him with a HTML form which displays all the orders with status=new. Following is what he may see - values displayed from the Orders table.
    DealId Product Qty Amt AcceptNo
    1 AB 1 100
    2 XY 2 200
    UPDATE
    The Orders Admin only has to fill in the AccptNo for all the new orders that he sees and the Orders table has to be updated with this single form.
    Is this possible.
    Please help me urgently
    Regards & Thanx in Advance.

    As stated earlier I have a Order Placement form for the dealers. Here they place their orders online and submit the form. The details they enter are stored in Orders table in a database. This order is sent for processing. This is an external operation for the users of our products.
    This table has two extra fields AccptNo and DelDate, which are filled in by the Admin of the Stores Dept of our company. The Admin then logs in and views the new orders. He sees the new orders displayed in the following format. The data shown is from the Orders table.
    He is then reqd to just fill in the Accpt No and Del Date against the requisite Order.
    Having finished filling up all the details he clicks the Submit button which updates the Orders table. i.e the existing records are updated with the accptno and del dates or rather the records are overwritten.
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head>
    <body>
    <p><b><font size="3" face="Arial Unicode MS" color="#FF0000">Orders - Admin
    Page.</font></b></p>
    <b><font size="2" face="Verdana" color="#0000FF">
    Following are the new pending orders.</font></b>
    <form method="POST" action="updtOrd.jsp">
    <div align="center">
    <center>
    <table border="1" cellspacing="0" width="68%" bordercolor="#000080">
    <tr>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Dealer
    Id</b></font></td>
    <td width="11%" align="center"><font size="2" face="Arial Unicode MS"><b>Product</b></font></td>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Quantity</b></font></td>
    <td width="10%" align="center"><font size="2" face="Arial Unicode MS"><b>Value</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Acceptance
    No.</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Delivery
    Date</b></font></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116033</font></td>
    <td width="11%"><font size="2" face="Verdana">ABC</font></td>
    <td width="13%"><font size="2" face="Verdana">100</font></td>
    <td width="10%"><font size="2" face="Verdana">100000</font></td>
    <td width="53%"><input type="text" name="T1" size="20"></td>
    <td width="53%"><input type="text" name="T6" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116065</font></td>
    <td width="11%"><font size="2" face="Verdana">XYZ</font></td>
    <td width="13%"><font size="2" face="Verdana">160</font></td>
    <td width="10%"><font size="2" face="Verdana">16000</font></td>
    <td width="53%"><input type="text" name="T2" size="20"></td>
    <td width="53%"><input type="text" name="T5" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116058</font></td>
    <td width="11%"><font size="2" face="Verdana">PQR</font></td>
    <td width="13%"><font size="2" face="Verdana">300</font></td>
    <td width="10%"><font size="2" face="Verdana">3000000</font></td>
    <td width="53%"><input type="text" name="T3" size="20"></td>
    <td width="53%"><input type="text" name="T4" size="20"></td>
    </tr>
    <tr>
    <td width="153%" colspan="6">
    <p align="center"><input type="submit" value="Submit" name="B1"></td>
    </tr>
    </table>
    </center>
    </div>
    </form>
    </body>
    </html>
    I hope this makes the scene clear still you may eat my head for more clarifications but please help me.
    Can mail me at [email protected]
    ThanQ

  • Multiple Languages in one Form

    Hello,
    I have a requirement to replace a preprinted form and create a form in SAP that contains  texts in multiple languages. e.g. Russian, Greek, Bulgarian, German, English etc.
    The  form also contains single lines of text with multiple Languages.
    Does anybody know how to achieve this?
    We are on ERP 6.0.
    Greetings,
    Thomas

    if your using the smartforms : 
    you can use multiple include texts
    if it is EN
    Text Name         &GV_DEL_NUM&
    Text Object       VBBK
    Text ID           ZSO6
    Language            EN  pass here
      if it is DE
    Text Name         &GV_DEL_NUM&
    Text Object       VBBK
    Text ID           ZSO6
    Language      DE pass here
    like create multiple texts.
    if it is SCRIPT
    use read_text  multiple times and based on language
    finally  CONCATENATE texts into single line......

  • Populating multiple blocks on one form

    I have two blocks on the same form, all blocks are from tables in the same database.
    I am using 'EXECUTE_QUERY' in the 'WHEN-NEW-FORM-INSTANCE' trigger to populate the blocks but only one block is populated.
    Any suggestions?
    Thanks in advance.

    If the tables are related then you can use a Relationship on the master table to query the detail table every time the user navigates to a new record.
    If not then doGo_Block('block2');
    Execute_Query;
    Go_Block('block1');
    Execute_Query;to query both blocks.
    James.

Maybe you are looking for