Two Tables in a Single Block!

Is that possible two tables in a single forms block.
actually we can assign one database table in a block
but i like to know is there any possibilities of having 2 tables in a
block?

Stalin,
Yes, this is possible. Essentially, you are performing a join on the tables in your block which means you have to fully qualify each column in the block so Forms knows which column belongs to which table. For detailed information take a look at the Oracle White Paper: Basing a Forms Data Block on a Join. This works quite well and the tables your block is based on is fully updatable, whereas if you were to create a view and base your block on the view, most likely your view would not be updatable.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • How to populate data of two tables in a single block

    In form developer2000, I have created a block using one table and have created two new items in that block manually that will collect data from another table.
    How can I fetch data for the first table using execute_query as the same time collect data for the two manuly created items from the 2nd table?

    You can have two entities as base for a ViewObject.
    Every entity maps to a Table in the database. You create two entities, one for each table.
    You create one ViewObject based on those two entities.
    Is that what you had in mind?
    And what do you mean by 'two manually created items'?
    Sorry i never used Form developer2000
    Regards
    Johan
    EDIT:
    I think i miss understood your post completly. I thought you where asking how to do this in JDeveloper. But you are using developer 2000. I think you better post your question in Developer tools >> Forms
    Message was edited by:
    Smolders Johan

  • Dispaly of two tables for a single tab in tabstrip

    Hi Experts,
    I have three tables,one is the consolidated table of another one and the third one is completely different but the requirement is ,
    for a SINGLE TAB click of a tab strip both the tables which are related have to be displayed
    and for the the third table a new tab has to be clicked.
    ,i know to display only one ui element for one tab .
    please help me out with this problem of displaying of two tables for a single tab

    Hi Shanmukha,
    Suppose you name of name of tables which need to be displayed in one tab is table 1 and table 2. To get this you can try these steps:
    method 1:
    - create  a view with 2 tables in it i.e table 1 and table 2. create a view container UI element in tab strip and embed this view in it.
    method 2
    - create  view1 containing table 2 only.
    - create view 2 containing table 1 and a view container UI element. Embed view 1 in the view container of this view. Now your view 2 contains both the tables.
    - In the tab strip's tab, create another view container UI element and embed view2 in it.
    I hope it helps.
    Regards
    Arjun

  • Two tables in a single main window

    Hi,
    I need to create 2 tables in a single main window with some gap between 2 tables..
    can I keep any main heading  for the second table?
    Please let me know how can I do this?
    Regards
    Sandeep

    As also told by others just create a blank TEXT in between the two tables. In this text keep blank lines as per your requirement and for heading of second table, do it in the heading part of your TABLE2 then it will print accordingly.
    MAIN_WINDOW
      TABLE1
      TEXT_GAP
      TABLE2
    With luck,
    Pritam.

  • Updating two table from a single query

    I have two table such as
    user_log(user_id , password)
    and
    user_info(user_id , name , age , address , sex , email , contact)
    If I want to add data from a single form in php then what is the query?

    Hi,
    welcome to the forum..! plesae always post table data and expected result to help forum members help you better.
    From what I understand, all you need is a join on userid (assuming userid is unique/primary key )
    select ul.userid,
             ul.password,
            ui.name,
            ui.age
      from user_log ul,
              user_info ui
      where ul.user_id = ui.user_id
        ---- and any otehr condition for the user that you need.(where clause)In PHP......(based on this link.. http://wiki.oracle.com/page/PHP+Oracle+FAQ
    haven't tested the code.. )
    <?php
    $conn = oci_connect("scott", "tiger", "localhost/XE");
    if (!$conn) {
    $m = oci_error();
    echo $m["message"];
    exit;
    $stid = oci_parse($conn, "select ul.userid,
             ul.password,
            ui.name,
            ui.age
      from user_log ul,
              user_info ui
      where ul.user_id = ui.user_id");
    oci_execute($stid);
    // Query the table
    echo "<table border='1'>";
    while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
    echo "<tr>";
    foreach ($row as $item) {
    echo "<td>".($item!==null?htmlentities($item):" ")."</td>";
    echo "</tr>".PHP_EOL;
    echo "</table>";
    oci_free_statement($stid);
    oci_close($conn);
    ?>Try to provide more details.. if this is not what you are looking for.
    Hope this helps,
    Rajesh.

  • Insert into two tables with a single query (same ID)

    Hello,
    I want to insert two tables at the same time ( with a single query) provided that both records get inserted with the same id. How do I do this?
    Table Movies
    id
    name
    Table Category
    movie_id
    cat_typea) Insert into first table, retrieve the id (may be by using my_sequence.currval and then insert into another table.
    issue: Makes three query to the db, I am also guessing that when multiple people try to insert there will be an issue, I might be wrong.
    I don't have any other idea.
    Greatly appreciated!

    Why don't use multitable insert ? It's available from 9i.
    A sequence.nextval will return the same value within the whole instruction
    so all records can be inserted with the same id.
    Look at this example:
    DROP TABLE A;
    DROP TABLE B;
    drop sequence a_seq;
    CREATE TABLE A(
      ID NUMBER,
      FIRSTNAME VARCHAR2(50)
    CREATE TABLE B AS
    SELECT id, firstname lastname FROM a;
    CREATE SEQUENCE a_seq
    START WITH 1;
    INSERT ALL
    INTO A(ID, FIRSTNAME) VALUES(A_SEQ.NEXTVAL, FNAME)
    INTO B(ID, LASTNAME) VALUES(A_SEQ.NEXTVAL, LNAME)
    SELECT 'fname ' || LEVEL FNAME, 'lname ' || LEVEL LNAME
    FROM DUAL
    CONNECT BY LEVEL < 10
    COMMIT;
    SELECT * FROM A;
    SELECT * FROM b;
    DROP TABLE A succeeded.
    DROP TABLE B succeeded.
    drop sequence a_seq succeeded.
    CREATE TABLE succeeded.
    CREATE TABLE succeeded.
    CREATE SEQUENCE succeeded.
    18 rows inserted
    commited
    ID                     FIRSTNAME                                         
    3                      fname 1                                           
    4                      fname 2                                           
    5                      fname 3                                           
    6                      fname 4                                           
    7                      fname 5                                           
    8                      fname 6                                           
    9                      fname 7                                           
    10                     fname 8                                           
    11                     fname 9                                           
    9 rows selected
    ID                     LASTNAME                                          
    3                      lname 1                                           
    4                      lname 2                                           
    5                      lname 3                                           
    6                      lname 4                                           
    7                      lname 5                                           
    8                      lname 6                                           
    9                      lname 7                                           
    10                     lname 8                                           
    11                     lname 9                                           
    9 rows selected

  • How to update two tables in a single call using JDBC Sender adapter

    Hello All,
    The scenario is, database entries have to be selected from two tables and at the same time those tables have to be udpated with the flag.
    We are using JDBC sender adapter and in Select Query, we are fetching the data by joinin the two tables.
    Update Statemtent: We can only update one table using this statement.
    Is it possible to update two tables using the Update Statement without using Stored Procedures.
    Let me know.
    Regards,
    Sreenivas.

    Hi Sreenivas,
    > Is it possible to update two tables using the Update Statement without using Stored Procedures.
    Yes its possible through join statement
    Check this links
    Update in JDBC Sender adapter for more than one table
    data from 2 tables for jdbc sender adapter
    Regards
    Ramesh

  • Two table views in single screen

    Hi,
    are we able to put two Table views in one UI window?
    My requirement is if i click on one cell on 1st table view then 2nd table view cell's in the same UI window has to be updated with required values.
    is that possible?
    Please let me know the solution if anyone know.
    Thanks in advance.

    Just go to interface builder and drop two table views in.
    Presto! You're done.

  • How to make two tables from one single taable

    Hi,
    i have one table with 100 records and i want to create two tables each with 50 records and with no duplicates. if i will do on bases on empno then i have to check the min and max emp no and then divide them in two tables, is there any automate way of performing this task.
    Regards,
    Abida

    Hi,
    A rather quick and dirty solution, but definitely works.
    I used the HR sample schema (employees table) for this.
    hsaprd@706447>create table tab1 as select * from employees where rownum <51;
    Table created.
    hsaprd@706447>select count(*) from tab1;
    COUNT(*)
    50
    hsaprd@706447>create table tab2 as select * from employees where employee_id nnot in (select employee_id from tab1);
    Table created.
    hsaprd@706447>select count(*) from tab2;
    COUNT(*)
    56
    hsaprd@706447>
    Hope this helps!
    -Anand

  • How to insert into two tables using a Single ADF creation form?

    Hi,
    I need to make a ADF Creation Form that will insert the data at same time in two tables... Like i have two tables Track (Track_id,Track_Name)
    and Module ( Module_id, Track_id, Module_name, Module_Short_name) and i have to insert the data in both the tables using Same Creation Form.
    can anybody help me out and gave me the solution,how to do that?
    Thanks

    if you want to insert different data into two different tables then you can drag the two data objects into creation form..
    If you want to duplicate the data inserted in the one table to another then you can follow two approach
    1. Drag and drop one table, When Save button is invoked then insert data into another table using callable statement.
    or
    2. Create on-insert trigger in Table1 where you can insert data into table2.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Two Tables in a single structure

    Hi,
      How can i declare a structure that include all the fields of two table??  Please note that there some common fields in the two tables such as MANDT.
    TYPES: BEGIN OF MY_STRUCT.
            INCLUDE STRUCTURE TABLEA.
            INCLUDE STRUCTURE TABLEB.
           END OF MY_STRUCT.
    Regards,
    Kit

    Hi Kit,
    if you declare (say) a variable with reference to this type:
    DATA: l_mystruc TYPE my_struct.
    ...then you can access the individual fields by appending the suffix to the name of the field.
    For example, if both tables have field MANDT, you may access L_MYSTRUC-MANDTA1 for the first table and L_MYSTRUC-MANDTB1 for the second table.
    You may also access the whole structure of each table, by typing L_MYSTRUC-A or L_MYSTRUC-B.
    I hope this helps. Best regards,
    Alvaro

  • Inserting rows in 2 tables using a single query

    Can we insert values in two tables using a single INSERT query?

    Yes we can insert data in multiple tables using (Multiple insert statement (oracle 9i New Feature))in a single statement.
    ex:
    INSERT ALL
    INTO sal_history VALUES(empid,hiredate,sal)
    INTO mgr_history VALUES(empid,mgr,sysdate)
    SELECT employee_id EMPID, hire_date HIREDATE, salary SAL, manager_id MGR
    FROM employees;
    sncr
    Naresh

  • Insert into two tables

    I want to input a set of data into form text fields then
    insert that data into a table plus insert one of those fields into
    another table when the form button is clicked.
    I've played around with Recordsets etc but I can't work out
    how to define a server behaviour which will enable me to do what I
    want. I'm using DWMX 2004 by the way.
    Probably simple but I'm new to this and can't find an
    explanation anywhere in the help files. Perhaps one of the resident
    gurus could offer me some advice?
    TIA, Ken

    quote:
    Originally posted by:
    Newsgroup User
    old-celt wrote:
    > I want to input a set of data into form text fields then
    insert that data into
    > a table plus insert one of those fields into another
    table when the form button
    > is clicked.
    You can't insert data into two tables in a single operation.
    It requires
    two insert record queries to be run in succession.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/
    Can I make the two insert queries run from a single form
    button press? Shoould I have a recordset or write two separate
    queries, one for each table?

  • How to block a single table for a single user

    Hi all.
    I want to block a single Z table for a single user. How to do this?  If he/she tries to display data using SE16 or SE11 Tcode he/she should get an error message.
    Regards,
    Prajwal K.

    Hi Prajwal,
    We can use the function modules ENQUEUE_E_TABLE for locking tables and the function module DEQUEUE_E_TABLE for unlocking tables. With this method, we don't need to lock objects in order to lock the tables. In other words, any table can be locked/unlocked using these function modules.
    Check this sample code:
    *Locking Table*
    data:
    varkey like rstable-varkey.
    varkey = sy-mandt.
    locking the tables............................
    call function 'ENQUEUE_E_TABLE'
    exporting
    MODE_RSTABLE = 'E'
    tabname = 'MARA'
    varkey = varkey
    X_TABNAME = ' '
    X_VARKEY = ' '
    _SCOPE = '2'
    _WAIT = ' '
    _COLLECT = 'X'
    exceptions
    foreign_lock = 1
    system_failure = 2
    others = 3.
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • MVC: Create a view which populates two (or more) joined tables in a single view table

    I am beginner in MVC and I would like to create a view which populates two (or more) joined tables in a single view table as described below.
    I have two tables:
    1 - Bloggers: - bloggerID (int);
                        - bloggerName (string)
    2 - Blogs: - blogID (int);
    bloggerID (int);
                    - blogTitle (string);
                    - blogImage (string)
    A blogger can have one or more blogs while one blog must be related to only one blogger.
    I would like to have a view table on my webpage as the following:
    Blogger Name
    Blog Title
    Blog Image
    Noris Gang
    Virus
    virus.jpg
    Noris Gang
    Desktops
    desktop.jpg
    Gauthier
    Books
    books.png
    John Leon
    NNNMHJhjdhj
    Nmbj.jpg
    I'm using MVC 4 (or at least 3).
    Thanks for your help.

    Hello,
    From your description, it is not very clear that what you mean about the View, if it means the View concept in database as SQL Server, your required view should be as below:
    Create view
    as
    Select Bloggers.bloggerName, Bloggers.blogTitle, Bloggers.blogImage
    From Bloggers join Blogs on Bloggers.bloggerID = Blogs. bloggerID
    If it means the UI view in MVC concept, I suggest you could ask it on the MVC forum:
    http://forums.asp.net/1146.aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How to perform a reverse "Flowed" positioning subform

    Hello Gurus I need to create an Adobe form with a footer that will be reproduced on each pages. The size of the footer will be determine by the text that will be put in from a parameter passed to the adobe form. So, the footer needs to be at the bott

  • Vendor debit

    Dear Sapians, My client want to have Liquitidy damage charged to the vendor if he fails to meet the agreed delivery date. For example PO Delivery date is 10-08-2007 and the vendor delivers the material after 10-08-2007 , then the purchase price has t

  • Doubt regarding rental of items

    I got a confusing situation in sap . the problem is my client has some materials which he gives them for rent . so he will charge some money for that. After some days he will get those materials back to the inventory . so my doubt is what is the proc

  • Automatically Apply Keywords when file is added to folder?

    I am learning to love Bridge, but the more I learn, the more I see it's shortcomings. I love the idea of automation and I use it a lot but Bridge does seem to fall a little short in the area. I could not find a way to do this so I can only hope they

  • Trouble installing itunes 7.7

    durring install itunes disables my WLAN access on my sony vaio laptop. on restart after itunes istall it trys to install a new network adapter but cant because of no driver. and i cant get back on internet because it has turned off the internal WLAN