Oracle Forms - master and detail block (join problem).

Hi all

I have a form (Oracle forms 6i) with 2 data block (master and a block of retail). I have 4 fields in the main block and of the rating is a Nullable.

The problem here is when I query the records - if the Nullable filed of the master is empty, then all records matching the first 3 fields are displayed. (Regardless of the fields fouth is NULL or Not NULL).

Ex: Master

Area 1 area 2 area 3 area 4
21 Siva MNN PEUT
John TGB USD



Now, the block of this detail, all records that may have deposited 1 has NULL also 21 etc.


I want to display zone 1 is the NULL records in detail block, if the master has the NULL value in it.

Can someone help me?

Thank you in advance!

Nice day!

In your post is not clear what the relationship between the tables please post the table structure and their relationship information

Tags: Oracle Development

Similar Questions

  • Master and detail data blocks

    Dev 6i, 8i DB win 7,.

    Hello

    ,

    I have two blocks of data (master and detail), the master has a piece of text with a lov, I choose the lov and go to the retail block,

    related article in the retail block is assigned the value of the master element. ,

    what I want is to record the detail without a master, I did not need to register all of the values in the master, I just need him to get the value of the control text element in

    in the field of retail?

    How to do?

    Thank you

    I want all the features of master blocks / detail, I want to ask the captain to recover its data and detail data.

    I want to ask the retail block,

    There's something I've done, but I don't know if there is something wrong with it.

    I created a "Sur-Insert" trigger on the main block and wrote "Null" inside, is there something wrong

    With this solution?

    Thank you

  • 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.

  • How to master day & detail block approal flag?

    Hello experts,

    I have the main form and details homologation form.

    the user will select a docment is and records master & details will be questioned.

    now it will just click the button approve and master & details of approval flag will be updated.

    Give me a logic how to implement...

    Note: the user will not manually penetrate anything.

    Please help me.

    Thank you

    Yoann

    What exactly is the problem?

    Update the indicator in your master block, go in the detail-block and loop through all records, to update indicators accordingly.

  • Oracle form functions and procedures in the APEX, how?

    I'm working to recreate in the APEX, already existing read only forms in Oracle Forms. Report features interactive APEX among other things, in fact worth as well as to target a different audience than utilizies versions of Oracle Form. Versions of Oracle Forms use a lot of pre and post query triggers, PLSQL functions.

    In Oracle Forms that places, these functions can be found in the "Units of program" section of the form. A feature typical of this kind, based on a particular Mission ID route, collecting names of regular passengers, is shaped with a comma and a space after each of them, in a single string that is returned and displayed the list of passengers of a line.

    I have all of this written code so I can move most of the main request of the Oracle form in an interactive report. These functions and triggers called in the form of the "Units of program" section of the Oracle form rather than stored in the database schema in a package, where they would go inside the APEX? Can I create a 'shortcut' in the APEX and call it from the interactive report "Source Région"? I can create the PLSQL function at the level of the region of the interactive report or page level? Or, my best bet creates a package that is stored in the database, all these functions and/or proecedures I might need the original form of Oracle?

    Some advice would be greatly appreciated.

    RLBickham wrote:
    I don't think I've been pretty clear in the description of the specific thing I want to do, simply, it does not reach the level of forms of conversion of the APEX. It is basically a problem of PLSQL function.

    I have an interactive report which is currently 90 percent of what I want however, each line, which represents a Mission may have several feet. Each arm has two places or ICAO codes attached to it. Based on the number of Mission, I want to loop through the array of leg, collect all the codes of ICAO for this Mission, put them together in 1 variable separated by a coma and add this variable to display the columns in this interactive report as the last column.

    In Oracle Forms, I have a function registered in the database, which is called in the main query. Maybe I ask a question that does not need to be asked, but anyway my question is can I put this function currently in the database somewhere within the interactive report and somehow reference it via Http, or should I just stick with set of functions and procedures in the packages stored in the database and called the conventional way?

    You could switch the function to the database and call it from the report query, but it sounds as if it were superfluous. In the report query using any form of Re: 4. How can I convert rows to columns? is appropriate for your version of the (unspecified) database.

    -----

    When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)

  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.

  • Integrity constraint not found parent key, insert master and detail records

    Hello world

    I'm creating a master and a detail to record simultaneously, using a managed bean method. I am populating the sequences of db using EL, not database triggers. So:

    (1) Insert main record, the new return ID.

    (2) Insert detail associated with the previous record

    It works well, unless they select a foreign key between the main table and details, so I me "ORA-02291: integrity (XXXX_FK) violated constraint - key not found kinship", as it seems that the book of the child is inserted before the parent.

    I would not disable the FK, but can give you advice on this topic?

    Thanks in advance,
    Jose.

    Try without defining the status of the Row.STATUS_INITIALIZED...

    Timo

  • control of data (Master and detail)

    Hello guys, when I create controllers of data of business components, I don't get the retail
    lets say I have company, services and employees.
    When I do the data controllers, I get only the (master) company, the department (detail) and the department (master), the employee (detail)
    cant I like -> company (master), department (detail), employees (detail)?
    I know that the question is not clear, I tried my best
    use JDeveloper 12.c thanks in advance.

    AOS consist of all links from the default depth.

    Go to the AM-> Data Model, standing on the detail and shuttle to the next level of detail from the left to the right.

  • Oracle Forms 6i and APEX

    The new APEX 4.0 allows to convert Oracle forms 6i?

    Hi "user1106744"

    As indicated in the documentation for the Migration of the APEX - http://download.oracle.com/docs/cd/E17556_01/doc/migrate.40/e15518/appmgr_forms.htm#CHDFHAHA - Guide you will need to convert your Oracle Forms file in XML format, in order to be able to use the APEX forms Conversion utility. To do this, you will need to use the Oracle to XML conversion tool, Forms2XMLforms, and this tool was introduced in Oracle9i Oracle Developer Suite and is also available in Oracle Developer Suite 10 g. The conversion tool will be able to convert your Oracle forms 6i, however you will obviously have access to conversion tool to do so... which will have access to an installation of Oracle9i Oracle Developer Suite or Oracle Developer Suite 10 g.

    Kind regards
    Hilary

  • Master and detail page updated once

    Apex 4.1

    Oracle 11g

    Hi all

    I know a lot of people have posted this thread, but I wonder why the detail can be updated when master primary key have no key.

    I created the example in OTN

    workspace: susanhuang

    username: TURTOR

    password: TURTOR

    request: [email protected] 76130

    page 7

    main table: dept detail table: emp

    I created the process as follows:

    because me in 1... apex_application.g_f03. Count

    loop

    apex_application.g_f03 (i): =: P7_DEPTNO;

    end loop;

    Updated the APPLYMRU as below

    : request as ('SAVE') or: query like '% GET_NEXT' or: query like '% GET_PREV' or: as ('CREATE')

    but it did not work, and I know why, because when P7_DEPTNO have no value when run applymru process, then the long-form cannot be saved.

    someone help me that how to get the primary key value

    Thanks and greetings

    God, I finally know where I am going wrong.

    For the table in table form, the apex_item was incorporated, so must set once again, so I changed the source of long-form census as usual, which means remove the content apex_item(1,"DEPTNO").

    Then changed the process to save the value of primary as key below:

    because me in 1... apex_application.g_f03. Count

    loop

    apex_application.g_f02 (i): =: P7_DEPTNO;

    end loop;

    Important:

    What g_f03.count means the 3rd column must be set to determine how many lines are there in detailed form.

    What g_f02 (i) means the column 2, is where is the primary master key.

    and it works.

  • Master and detail

    dev 6i, db 10 g and win 8.

    Hello

    I have a master block (stock) and a detail a (product_detail),.

    both of them has a column 'product_id ',.

    When I try to create a new record or when I enter the query, the number of 'product_id' in the retail block is always displayed.

    I don't know why?

    Thank you

    Hello

    If there is a relationship between the two blocs as a relationship of the master / detail by product id so yes it is normal.

    all you have to do is to hide this code in the block of retail; make visible property > No.

    Amatu Allah

  • master and details based on the business component

    Hello
    I am looking for sample Application main and based on the business component. How to build model and view to link knowledge please view this step by step thank you.

    Hello.

    This link contains many tutorials

    http://docs.Oracle.com/CD/E18941_01/tutorials/TOC.htm

    It's a good start:

    http://docs.Oracle.com/CD/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_1.html

    Your version is 11.1.2.0.0?

  • How to check account between master and detail?

    I have one main entry with a count field that is supposed to represent the number of records in detail. Is it possible to write a single query that can verify that these counts are synchronized?

    My simple example below should, I hope, give an idea of what I am trying to accomplish.

    Select masterid, mastercount, count (*) detailcount
    master, detail
    where masterid = detailid
    Masterid, mastercount;

    Thank you!

    Echoing to the "Yuck" comment, you should be able to do something like

    SELECT m.masterID,
           m.masterCount,
           (SELECT COUNT(*)
              FROM detail d
             WHERE d.masterID = m.masterID) detailCount
      FROM master m
    

    or

    SELECT m.masterID,
           m.masterCount,
           d.detailCount
      FROM master m,
           (SELECT masterID, COUNT(*)
              FROM detail
             GROUP BY masterID) d
     WHERE m.masterID = d.masterID
    

    Justin

  • Oracle forms 6i, KEY functions problem

    Hello
    I work with Oracle Forms 6i and I have a problem of deactivation of any function key.

    I try to disable the F5 key via the F5 trigger of form but it does not work, I found another solution to this forum by changing the macro file, but is not a viable solution for me because a malicious user can edit this file on your PC and disable the control.

    There is a safer method to disable the f5 key?

    I thank in advance.

    Pedro

    The question is not how to disable a key, it can be more how to disable a feature. What features you want to disable? Default F5 matches KEY-MENU-relaxation, if this is the function you want to disable, write a NULL value; in the KEY-MENU-relaxation.

  • Problem of initial insertion of form master detail on the subregion details

    Hello

    I created a master form details to the report which should make insertion on the master and detail region or subregion.
    Insert mode, I come home with block of main data and details, when I press the 'Create' button, insert happen only on master block (table command) and the retail block (table ORDER_ITEM).

    The EDIT mode for that inserts/updates on main block and without problems.

    Request Express 4.2.1.00.08
    Oracle Database 11g Express Edition Release 11.2.0.2.0

    I appreciate your help.

    Concerning

    Something like this should do the job:

    CREATE OR REPLACE TRIGGER order_item_table_tr
       BEFORE INSERT
       ON order_item_table
       FOR EACH ROW
    BEGIN
       IF :NEW.order_id IS NULL
       THEN
          :NEW.order_id := v ('P1_ORDER_ID');
       END IF;
    END order_item_table_tr;
    /
    

    To ensure that the treatment of automatic line (DML) the order table returns the key in question > return to key item > P1_ORDER_ID (or however the primary key of the table order is named)

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Problem with a master tree table and detail table

    Hello

    I have a treetable master showing on a page and a separate detail below the treetable table on the same page.
    To clarify things, the three tables are involved here: a master and detail table to compose the treetable and another table of details for the current line in the treetable.

    Usually things work well if they browse the detail table. However, if I create or delete some lines of the secondary table and press Rollback, some unwanted behaviors happening.
    In fact, the Rollback, the treetable master both the secondary table are redesigned page.

    However, once updated, despite the current line selected in the treetable still appears as the one that precedes by clicking on restore (don't guess the premiera), the secondary table is always the first line of the master treetable.

    Is there a way to make the first line the master treetable selected current or (preferably) to make the secondary table reflect the selected line that is currently visible in the treetable?

    Thank you

    @user10047839
    see How to keep selected after cancellation line. It can help you
    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/OCT2010-OTN-harvest-183714.PDF

    @Erp
    As far as I know, there is no cancellation line level. Restore is done to AM in all versions of Jdeveloper.

Maybe you are looking for

  • Tabs does not. Do not remove the messages. Tried to reinstall AND reset (set only for two days).

    Something hinky (and no, it is not a virus). Following an 'Upgrade' of v40, I started to experience problems. When I open Thunderbird, it shows my home, not my Inbox tab. If I select my Inbox, the window does not change. By clicking on the "Read Mess

  • Can Hi, please someone confirm to me why all my songs have been deleted?

    Never, I joined the apple music, I have synced many of my songs to my iPhone, but I wanted to listen to an album now and noticed that all my songs disappeared. y at - it a bug or something? It's the first time I meet it, but I have often heard guys c

  • Phone freezes once again

    My xperia is working irregularly delay. WiFi and Bluetooth do not turn on... tried settings. At the time wherever I turned it on, it remains "off"... Whatever you do, they don't seem to put "ON"... Heating problems have increased, the camera turns of

  • How to open an .aspx file?

    I just downloaded an .aspx file.  Windows 7 doesn't know how to open it.  How can I open it?

  • Mobility of the user

    Hi Pros, My configuration: CRS 4.0.2 CCM 4.1.3 Cisco IP phones, 7902 Cisco CAD 6.1 My query: My agents should be mobile. They are able to connect from any pc. I need mobility to phones too. My Qs: (1) my agents maybe associated with more expansion (C