Detailed form of Master - Master prevent / header to refresh

Hi all

I have a question about the detailed form of Master.

For standard APEX to create new record, I need to start the page. Then I need to click on the button create.

She will launch the master form where I can create the master part first and then save. He will return to the page again.

From there on, I need to click on the newly created link folder, so I can go to the main form and add the component in detail.

I have a scenario when I create the master part first, then the part details without having to return to the page of the report.

So after I recorded the master part and can I directly add the retail component.

I tried to remove the part of branches after treatment.

The problem is after I have save the page, while it remains in the form of master page, but the page is refreshed.

Is it possible that I can do the script works?

Please give me some advice.

Thanks and regards,

Troy.

Hi Troy Lagi,

Lagi Troy wrote:

But the scenario I want like step by step below:

1. from the report page, I click on the button CREATE. It will redirect to master details page.

2. in the master page in detail, I filled all fields in master / header part, then I click on the button CREATE. It will save the header part. I want after having saved the process, it does not report page, but remains in the page master detail.

3. after that I click on the button Add a LINE to add line to part detail.

4. I click APPLY the CHANGES to save the retail part, and she returns to the page of the report.

I already tried, but stuck to save the process from the part of the header. It is always refresh the page and the record is gone.

Of course, can achieve this with the help of a branch with 'Point of branch'-> "On submit - after transformation, calculations" and Validations

  • Change the Master 'Automated line processing (DML)' process and returns the primary master key in a hidden item.
  • Create a branch "Target Type" to "Page in this application" with above mentioned "Point branch.
  • Redirect to the same page number. The value 'Empty the Cache' your page number and:

Place these items: P1_PK_ITEM (point of primary key for your form of DML Master)

With these values: & P1_HIDDEN_ITEM. (The hidden item in which you return the primary master key in step 1)

NOTE: You can use the element for both attributes of 'Automated line of treatment (DML).

If you still have problems of implementation of this, re - produce this on apex.oracle.com and share the credentials from the workspace.

Kind regards

Kiran

Tags: Database

Similar Questions

  • Unique constraint in the form of master detail error

    Hi all

    I need help, the following requirement.

    I have a master detail form developed on master-child table. the tables have the composite key.

    Old masters has a composite key on columns (A, B)

    Children table has a composite key on columns (A, B, C)

    Child block look something like below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    30 CCC 1400

    40 DDD 1200

    Increments of column C with 10 for each record, and if a new record is insert in intermediaries the records it is incremented to 5.

    My requirement is when an end user attempts to insert record between 20 and 30 or 30 and 40 and clicks on save, the value of the C column must regenerate as shown below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    XXX 30 900

    40 CCC 1400

    50 DDD 1200

    Button Save I wrote the following code

    Declare
      ln_Count NUMBER :=0;
      ln_c number :=0
      cursor c1 is
      select c
      from child
      where a=:child.a
      and b=:child.b
    Begin
      Go_Block('Child');
      First_Record;
      LOOP
      ln_Count:= ln_Count+10;
      :child.C := ln_Count;
      EXIT When :System.Last_Record = 'TRUE';
      Next_Record;
      END LOOP;
    
    
      For c_cur in c1 Loop
      update child
      set c:=ln_c+10
      where a=:child.a
      and b=:child.b 
      and c=c_cur.c
      end loop;
      Forms_DDL('commit');
         
         commit_prc('Commit');  -- We have our own program unit to call commit_form
    
    END;
    

    I tried above in a way because, before approving the changes to the table, I update the existing values in the table of the C column so I would not get unique constraint error.

    When you click the button Save, I get a constraint exception. Hope I made my requirement clear.

    Can someone give me a clue to this implementation.

    Thank you

    malandain

    With this update, all your C-columnvalue became negative. When you post the form thereafter, forms update agaion records one by one the new positive figures. Because the numbers of 'old' in the db are now negative, there will be no violation-UK.

  • Detailed form Master in Apex - creating main records and details at the same time

    I m trying to create a master form / retail.
    The master is a simple standard form and below on the same page there is a tabular presentation containing the details.

    I am facing a problem when you try to save a new record from the master at the same time with new details.
    If I create a new record of the master and at the same time create detail records for this master (on the same page), when I submit that the foreign key of the details field is not filled in. So only one master record gets inserted into the table and record line is not inserted.

    When I have everything first create a master without a detail and edit this master and then add details so everything's allright (since the primary key field is filled out at the time).

    I just need to confirm that whether in the APEX form master detail, can save master and line record at the same time or is it as master must be registered the 1 and then line must be enterd and saved?

    Please let me know, if this functionality can be achieved in the APEX.

    Hello

    There was an error in the process of pl/sql, you referenced f01 (F01. COUNT) in the loop condition and which should have been f03, also you have assigned the wrong field to what should have been P3_DEPARTMENT_ID

    I fixed that. Also, I'm not 100% sure but I think in order to use the table in the column must be of type text or something (and not hidden), but I can't check now because of lack of time.

    A few mistakes during the presentation, but they are still due to constraints on the other fields.

    FOR I IN 1.APEX_APPLICATION. G_F03. COUNTY

    LOOP

    APEX_APPLICATION. G_F03 (I): =: P3_DEPARTMENT_ID;

    END LOOP;

    Concerning

    Bottom

  • How to display two dept details at the same time in the form of master-detail

    Hi Experts

    In Forms 6I, using the Scott schema, table DEPT & EMP has created a simple form of master-details relationships.

    Currently when user Dept Block shows all lines dept and EMP block display data based on the selection of deptno.

    It's only a deptno both.

    If the user in the No. 10, block EMP Dept will display all the data related to 10

    If the user moves to 20 Deptno, block EMP will display all the data related to 20.

    And so on.

    But our requirement, what happens if we want to see the 10 and 20 at once (both several deptno)

    Thank you

    Thanks for your information.

    In fact, our requirement is only to display data, he own be no matter what update of data/insertion.

    So below and working for our requirement

    • Remove relationship
    • Additional box on master block.
    • Write code cursor on the box selection - which will fill/clear data block information based on the checkbox selection on block Master.

    Oracle Apps training: how to display two Department employee details at the same time in the master/detail relationship

  • Master detail form can not insert foreign key

    Hello

    I Master detail form, in the data block master, I Header_ID primary key and it is generated through trigger on the main table and this field is found in the data block but is hidden on the Web, this Header_ID is a key in another table, on the form, I created the main form and has also created the good relationship. now, when the new record is inserted, the Header_ID in the main table is filled properly while in the secondary table that goes with the NULL value. I have no idea how to solve this problem, any help will be appreciated

    Rather than use a database trigger, select INSERT before triggering in the basic data block to fill the HEADER_ID.

    In the before INSERT trigger, you'd have a line like:

    select seq.nextval into :MASTER.HEADER_ID from dual;
    

    When you do this in the before INSERT trigger will fill the element in the block MASTER that feeds in turn the question into the DETAILS or blocks.

  • How to determine the ROWNUM in a Master detail form

    Hello

    I work in a master detail form with controls and information in order of points; I have created a process that allows users to select a product on a tabular presentation ID and the next column is filled automatically with the Product Description.

    To achieve this, I followed some instructions by Denes Kubicek (http://apex.oracle.com/pls/otn/f?p=31517:241), but my case is slightly different:

    < ul > I use a form tabular-created by Wizard, instead of manual tabular form; and < /ul >
    < ul > instead of using another page as a Popup to pass the parameter of the ROWNUM, I use a plugin called "tabular form Super LOV" which is a modified version of Super LOV the SkillBuilders who works on tabular forms. < /ul >

    The product ID is returned in the line by the plug-in; but in the case of the Description of the product, it is always returned in the first row; and my problem is that I don't know how to determine the line where the user clicked to call the plugin.

    I created an example in apex.oracle.com in case someone wants to look at:
    Workspace: ediazjorge
    User name: test
    Password: test
    App name: Sample App
    The app number: 1550

    BTW, I use Apex 4.1.1.00.23 and Oracle DB 10.3.2.

    Thanks in advance,

    Erick

    See what {message identifier: = 10436048}

    OR

    {message: id = 10458307}

    You must use something like below

    //in your case currIndex means the ROWNUM value you have
    $('input[name="f03"]')[currIndex].val('some thing')
    

    And for the jquery selector try this

    $('img[alt="Popup Lov"]')
    
  • Master / detail prevent insertion line detail if the master does not exist

    Hello

    I have a complex page that has several pairs of master / detail on it. I have what should be a simple problem to work around that I can't understand. On each table (master or detail), I have a button create header and a delete button in each row. I have a few questions, I can't seem to cross.

    1. how to turn off the details create button if there is no master of the line or one has not been selected by the user? (At the moment you can create detail without a valid master line rows)
    2. how to disable the removal of main line button, if there is (or not) details of current lines?

    I think I only got 2 having a transient attribute on the main line that uses groovy and the accessor to link views to count the detail rows. It seems to work, but if there is a better solution, cleaner I'm all ears. I can't seem to operate 1 little matter what I try.

    Thanks for any help you can provide.

    Hello

    You can use iterator estimatedRowCount to disable the button of

    disabled="#{!(bindings.mastervoIterator.estimatedRowCount ge 0)}"
    

    and use the currentRow determint property if the current row is selected as

    disabled="#{!(bindings.mastervoIterator.currentRow ne null)}"
    

    Thus, the combination will be as follows

    disabled="#{!(bindings.mastervoIterator.estimatedRowCount ge 0 and bindings.mastervoIterator.currentRow ne null)}"
    

    I hope this helps...

    Kind regards.

  • Master detail form

    Apex 4.0 master detail form

    In my Application

    1 page 2 is the report
    2 page 3's master detail form

    Press the button create on page 2, it displays the page 3 i.e. control the detailed form

    After entering in detail the form master I press the button create is back on page 2 that is create to communicate their data page and master
    but to go into detail for the same record I change and enter on page 3.

    I'm looking for the solution. When I press on create button on the master page 3 it will not return to page 2 page report i.e.
    recode newly created on the same screen (no return on page 2) and appear I get recode in detail for the master above.

    After completing data entry master detail, I will return that is page 2 to report.

    You can also visit my request and suggest but how to solve the problem

    http://Apex.Oracle.com/pls/Apex/f?p=50199:2:3351945796035428:no:

    What happened to change the branching (to be submitted on page 3) page 2 page 3? Or by adding a (conditional) branch on page 3 before this one?
    Maybe with some restrictions (so only when you press the button create).

  • Master detail form based on single Table

    Hi all.
    I have a table like

    daily_transaction
    (
    TRANSACTION_DATE DATE,
    LINE_ID NUMBER,
    ITEM_CODE VARCHAR2 (10),
    NUMBER OF BALANCE,
    DESCRIPTION VARCHAR2 (500)
    )

    Now, I want to build form master detail

    master form have only transaction Date all in the form of retail have row id, item, balance, date of transaction, description code

    I join date of the main transaction with the date of the transaction in detail

    now the problem is when I enter two archives in the form and save it, it save 3 record in the table, an empty line except transaction date
    Please guide me how to save two archives:

    Secondly when I update / edit date of master on the date of the operation blank line change, how do I update details form

    In order to perform an update on a view - it must be a "editable view. You try to update the MASTER block (based on the view)? Otherwise, make sure that you change the property update block allowed to 'No' as it is default to 'yes '. If you do not update the MASTER block, make sure that your point of view is "can". Read this article from Tom ask article on editable views. http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5226026422731.

    Craig...

  • Details of a master record on the new Page

    Hi guys,.

    I have a requirement where I have a page named Page1 for example.

    1 page 1:

    This page has a few form fields that form the master file and here is that there is an array of advanced, which shows the child records for the master domain

    I've implemented this successfully via ViewLinks and objects of the Association and Page1 works very well

    Now, for each of these child records in Page1, consist of several records of children, which should be displayed in a new Page, suppose for example, Page2

    2 page 2:

    In this 2 page, I would like to enter data into an advanced table (there may be several lines), for each of the child records in Page1.
    After you have entered the data on page 2, I need to go back to page 1.

    In the same way on each of the child records in page 1, I would like to go into details in page 2 and return to page 1.

    Finally, I should be able to Commit or rollback at the end.

    But so far I was not able to do this in the new page. :( Data on page 2 is too much.

    Someone told me that it is not possible in a new page.

    Could someone help me?

    Also good season to all!

    its Possible.
    All you have to do is, just create the same module of RootApplication for 2 pages.
    and use retainAM = is in the navigation between pages.
    That should be enough...

    And when you navigate to the second page, do not call vo.executeQuery () or whatever it is which evacuates the changes pending in the VO.
    When you navigate to the second page, just find the line of girl, that you want to update using vo1.findByprimarykey)
    and use the method vo.setCurrentRow (firstChildRow) the first child VO to refresh the lines of the second child

    See also the exercise of updating in the Toolbox tutorials where the transaction is maintained between the three pages.

    Prasanna-

  • Why is the text in my master page header reformatted after the publication of Business Catalyst?

    Everything goes well with the text in my master page header in Muse, but when you are viewing my site online, the text is reformatted and a biased. I contacted tech support, and they told me that there is a problem with Business Catalyst, they are working on right now. The workaround is to open your site in Muse, click 'File', choose 'Properties of the Site' and under "Advanced", uncheck «Enable in the browser Edition.» Once you publish the site again, the problem should disappear. I'm curious to hear if anyone else has had this problem and if this workaround is successful or if you know other solutions.

    Hi Rebecca,.

    If you are publishing to Business Catalyst, go to file > properties of the Site in Muse. The 'Advanced' Panel will turn off IBE. We will address this problem in an update very soon.

    Kind regards

    _Ankush

  • highest graphic need to master page header

    Hello

    I am a new user and start to take.  However, I need a graph displays a master page header.  I looked into this and found the following:

    "If you want a master item to appear in front of objects on the document page, assign a top layer of the object on the master. An element of master on a top layer appears in front of all objects on lower layers. »

    But how do I do this - the main page of layers do not show on the page of the document.

    Thank you very much!

    I think it's because of the blending Mode. Outer glow by default to the screen, and the shadow cast by default are multiplying. If you change the outer glow blending Mode to multiply, it will behave exactly as in the shadow of a fact.

  • How to validate the columns in detail on a master page / retail

    How do you add validation for detail on a master page items/columns / detail? For example I want to run a validation 'not null' on a column in a detail row when the user tries to add a new line.

    Published by: user9108091 on October 12, 2010 08:58

    You are here http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_app.htm#CHDDADIE

    and here are all the documentation
    http://www.Oracle.com/technetwork/developer-tools/Apex/documentation/index.html

    ___________________
    Be sure to mark the appropriate fix/useful messages. :)

  • manually assign primary key and copy to the detailed form

    Hi experts,

    Oracle Apex 4.2, 11g database, using windows 7.

    I created a form and created automatic product no. (not only sequence) with logic and SQL. SQL query produced good wise exercise, and exercise begin from 01 July and ends 30 June each year. This means if the 07/01/2015 start it will create a new voucher No.

    The main Table name is GL_PV and the columns are:

    Number of PV_No

    Date of PV_Date

    Number of CC_code

    number amount

    Remarks varchar2 (100)

    Created a process to submit before the calculations and validations.

    The codes are

    NVL SELECT (MAX (to_number (nvl(pv_no,0))) + 1, 1) AMENDMENTS

    IN: P15_pv_no

    OF GL_PV

    WHERE pv_date

    BETWEEN to_date (' 01-07-' |) (extract (year from to_date (: P15_pv_date, "dd-mm-yyyy")))

    + case when extracted (month of to_date (: P15_pv_date, "dd-mm-yyyy")) < = end of another 0, then 6-1), "dd-mm-yyyy")

    AND to_date (30 - 06-' |) (extract (year from to_date (: P15_pv_date, "dd-mm-yyyy")))

    (+ case when extracted (month of to_date (: P15_pv_date, "dd-mm-yyyy")) < = 6 then 0 otherwise 1 end), "dd-mm-yyyy")

    and cc_code =: P15_cc_code;

    and press the button when Conditions = Generate_Button

    In the form of master I put the data and click on create button is working well and generating good can result.

    Now that I've created a detail of my detail table is pv_detail and the columns are

    pv_voucher_no

    pv_date

    account_code

    Remarks

    amount

    I want to create the relationship of the master / detail form.

    I tried:

    • primary key and foreign key, but does not. column GL_PV table primary key (PV_NO, PV_DATE), PV_DETAIL (pv_voucher_no, pv_date) foreign key table columns: -.
    • has created one for master and 2nd 2 form for details, good master shape generates but not detail of.

    I want to assign pv_no, pv_date in both value table (master / detail), in other words copy value pv_no and pv_date of main table in detail table pv_voucher_no and pv_date.

    Please advise how I can solve this problem.

    Thank you forum oracle to solve my problems.


    error report: ORA-01790: expression must have the same type of data, matching expression

    Find the solution on this forum

    Solution:

    Attributes and the tabular form:

    Change the default type = PL/SQL Expression on the function

    Default = to_date(:P15_PV_DATE,'DD-MON-YYYY')



  • Insert the record into the detailed form.

    Hello! I have some paintings of master and detail. In a form I insert record for the main table, but in others, I insert record for the secondary table.

    So, I visit my main table, do not enter any value, only PK is entered using DBSequence. Then this main table I go to detailed form and try to insert values it created record and have the following error: entity detail with null line keys cannot find or invalidate its owner entity, see: http://my.jetscreenshot.com/2677/20120530-qcpy-36kb

    As you can see, there is value to DBSequence: '-4 '. So why this error?

    If I enter some values in the main form and then go to detailed form to enter values, then this error disappeared, I can enter data. Why this is the case, can someone explain to me?

    If you have some questions or misunderstanding, please let me know!

    Best regards, Debuger!

    Of the newly created entity is not displayed until a call setAttribute() is invoked on this subject. Simplest to try thing is:

    1 implement ViewRowImpl to master VO.
    2 substitute create() and call a call setAttribute() on any attribute of in.

    You can go through 't-fit-all.blogspot.in/2008/07/adf-bc-eovo-initial-state-post-create.html http://one-size-doesn for more details and alternatives.

Maybe you are looking for