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.

Tags: Database

Similar Questions

  • Master-detail - page updated

    Hi all

    I implement updated for logic with master-detail page.

    My expectations:

    Both master Vo and Vo of detail is executed with Set whereclause and line master and detail gets displayed.

    The two actions are required in the application process.

    Result:

    Executing query (even after call run the query for master and detail VO), master line get appears. Detail line is not displayed,

    However when the form application process is called (by clicking on the button Save), detail lines gets displayed.

    My logic to query example: (your have VL and EOs have AO)

    PR:

    Configuration where clause;

    XXAM.getXxcfirIcfUpMasterVO1 () .executeQuery ();

    XXAM.getXxcfirIcfUpDetailVO1 () .executeQuery ();

    PFR:

    The logic of adding new line-to-line in detail.

    Save button.

    Is there a way to show line main and details while that Page gets loaded through the application process and still not break the relation ship master detail since must be made on the update page.

    Thank you and best regards,

    Gauthier

    Hello

    See my post on master / detail to OFA:

    http://anilaltunkan.com/en/Oracle-3/Oracle-application-framework-Oracle/OAF-master-detail-page/

    Kind regards

    Anil

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

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

  • main and details page

    db11gxe, apex 4.0, firefox 24,

    Hi all

    I want to create a master page / detail and I can, but I want to see the details and main blocks on the page even when I want to insert new data

    , what happens is that I don't see that the master block, insert data, click on apply changes, it happens to me to report page, click on edit and insert

    detail data and that's what I don't want.

    How to do this?

    See

    http://Apex.Oracle.com/pls/Apex/f?p=76362:5:9468432194386:no:

    work_ws

    demo

    demo

    When I click on create I don't see that the master, I do not see the detail, is the problem? How to see them both when I click on create?

    Thank you

    Newbi_egy

    I created an example here. Click on create to create a new order and add items directly to the order.

    In the area of information I have listed the changes I did after creating the page through the wizard.

    During the creation of this demo, I noticed that the APPLYMRU process does not work when the application was CREATE.

    Another look at your debug messages this is true for your page.

    The message that mention is:

    Do not run the "ApplyMRU" process, point process = AFTER_SUBMIT, condition type = PLSQL_EXPRESSION, when you press the = button

    Change the status of the APPLYMRU process to

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

    Notice the addition: application as ('CREATE'). Now the process will also work when a new order is created.

    Nicolette

  • 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

  • Change my child dwt.php and the pages update dwt

    Hello

    I need to convert my BPD in php. My site is not that great at the moment so I can manually change the links and extensions on the pages of the child if necessary. How can I convert the model and ensure that it remains attached to the child pages? A test, I used "save under" and saved the model as mytemplate. DWT.php. I edited a region in the template and saved. The child content of the pages is not all update. They don't seem to be attached.

    Thank you very much

    Andrea

    Not so fast. PHP templates are named with the extension php - foo.dwt.php! In this way, if someone downloads the template, and someone else is smart enough to try to download it, the PHP gets removed by the server before it is transferred to the "intruders".

    @A.Cambria - this is how to do what you want:

    Method 1

    * apply the model of php for each page of the child (this could be a bit messy in execution

    Method 2

    * create a new page from the php template and copy and paste the content of each page of the child. Then save the new page with the old page file name

    Method 3

    * with all THE closed pages, do a find and replace to "filename.dwt" and replace by "filename.dwt.php".

    * After you have done this, open the model of php, make a negligible change and then reverse the trend and save the page - who must collect all the child pages.

    Method 3 is the best method (make sure that all pages are closed).

  • 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

  • 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 create a master page and detail? Insert > object missing panel data

    Hello

    So I created a database, and I want to read data from the database table. I want when someone clicks on an element of the database to get on a new page and see all the other information on this element. I looked for how to do this and found the master page and detail 'system '. But for this I need an option in the Insert > data panel, the master and detail Page set option. And that's the problem, actually there is no sign of 'data' in the insertion bar in my Dreamweaver product. I use Dreamweaver CC 2015, Windows 8.1

    nea.PNG

    version.PNG

    Is there another possibility to create the master page and detail?

    If you are coding manually, you need not to buy extensions.

    If you don't code manually, you can do it.

    Nancy O.

  • MySQL Sytax error with master pages and details

    Master and detail pages.
    I get a SQL error when I click on an item in the master page.
    "You have an error in your syntax SQL; "check the manual corresponding to your version of the MySQL server for the right syntax to use near 'ID = 16 LIMIT 0, 10' at line 1"
    If I try to open the details page, I get
    "You have an error in your syntax SQL; "check the manual corresponding to your version of the MySQL server for the right syntax to use near 'ID = - 1 LIMIT 0, 10' at line 1"
    I created this pair by clicking on insert/object / master details page.
    I tried this several ways, but always get the same result.
    Is there a bug in CS3?

    Sorry that I have solved it myself.
    I accidentally put a space in a header of table in the mySQL database.
    Everything works fine now.

  • 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

  • Unable to use the sim card

    I got this mobile in the United States. However, I am not able to use any Indian SIM. Help, please.

  • Triggers the analogue output with PCI-4461

    Hello I'm trying to generate a signal of analog output triggered with a card PCI-4461. First I tried to use the feature OR DAQmx 'start analog edge' with the way analog input AI0 as the source and the channel analog output AO0 as task. After it gave

  • Rise, hold, ramp

    Brand new to Labview, this is my first "task". I need a voltage specified on the rise with a ramp time of entry, then during a time of entry, then crawls with the same pattern of time as the ramp upward.  I'm halfway there, or so I think. Any help wo

  • HP Compaq Desktop Mod CQ511OF: W7, using the upgrade on the new hard drive disc

    Hello everyone; The 5 years, 320 GB hard drive on my HP Compaq CQ5110F desktop model is tired and I would like to replace it with a hybrid drive SSD Seagate 1 TB. My concern is that this computer has been upgraded from Vista to Windows 7. The vignett

  • always blank new tab page with IE11

    Since IE11, when I select the new tab, it opens a blank page.  I change the setting in tools/internet options/tabs but when I restart, it goes back to the blank page