Master-Detail Form Questions

Master-Detail Form Questions
I have two questions in regards to master-detail forms:
First, the form I am working on has 25 detail rows displayed to the user. If the user has more than 25 detail records for the master, I want them to be able to add more. For instance, after they enter the 25th record, I would like a pop up window to ask them if they would like to add more detail records for this master. If they select yes, then the records they have entered would be saved and then the form would repopulate with the current master record and another empty 25 detail records.
Second, I would like the Detail Action to be set to Insert if the user moves to a new detail row and selects an item from a combo box.
Thanks for any and all help.
Jeremy.

Hi Sharmila.
Is there a way to repopulate only the Master information without populating the detail after the 'Save' button is pressed? I have written code that uses the session variables and repopulates the form with all the data that has just been saved, but I need only the master without the detail.
Thanks.

Similar Messages

  • Master Detail Form Question

    I would like to create a master detail form that is essentially 2 tabular report regions. Is this possible?
    Basically I would like to have region A that shows all of the relevant information for higher level items (there are multiple of these higher level items). I would then like to have region B which would show me all of the lower level details for the higher level item that was selected in region A. Is there a way to read the row that you are on in region A and only show those related items in region B?
    Thank you!
    Amber

    Are you asking to create two tabular reports on one page (Reports that are editable), or do you just want two reports on one page (non editable) where you select a row in the first and the second displays the detail records of the selected row in the first, highlighting the the selected row in the first report?
    If you want the two editable reports, then the answer is no, you can only have one tabular form on a page.
    If you only want two reports, or perhaps the top report as a non editable report and the second as an editable report, then it is possible to do this.

  • Parameter on Master Detail Form

    How do I set a bind variable in a Master Detail Form?

    I suspect that he may have the same question I do. Namely, if I have four tables (employees, projects, tasks, and project_assignments) how do I create a master detail form where I can specify the project and the employee via LOVs? The project_assignments table contains foreign keys for employee, project, and task, as well as additional fields relating to the task status.
    Currently, I have it set up so that the employee name can be selected and the project is hard coded to the current project.
    Is there an easy way to populate the detail records based on two LOVs in the master form?
    Thanks in advance,
    Fritz

  • Insert error in master-detail form

    Probably a stupid question. When I populate the master block of
    a master detail form from an LOV, I am asked to save the form.
    Since the information is loaded from the LOV, there are no
    changes to save. If I answer yes, it gives an Insert error due
    to the primary key violation in the master block table. If I
    answer no, it opens the detail block and gives the correct
    information. The problem is that when I enter information into
    the detail block and try to save it, I get the same error
    message regarding the primary key violation in the master block.
    The form works fine if I do not populate the master block from
    the LOV (or from select statements in triggers). Any suggestions
    will be appreciated.
    LS

    Hi,
    Check for the form or block status.Looks like the status has
    changed.Thats why u r getting the message.If any of the base
    table item has changed then u will get such a message.Try
    working on this an check it out.
    Thanks
    Vinod

  • To get value in detail part of master detail form

    hi all
    i am using forms 6i
    there is a master detail form
    in the master part
    i am just mentioning one field as per the requiremnt
    FIELD BELONGS TO DATA BLOCK XXNP_JL_001.FIELD
    this FIELD field is populated by a flexfield NAP_GL_WELL
    VALUES are
    abc                           123
    def                            456
    fgh                            875
    in the master part of the form there is also a button called POPULATE which populates values  for the fields in the detail form
    in the detail part of the form
    i am mentioning two fields
    item_number belongs to data block XXNP_JL_EST_002 and      opn_value belongs to data block XXNP_JL_RES_005
    now the requiremnt is as follows
    say the WELL field has a value 'abc'
    then in the detail part
    whenever and only when the item_number is '1010103002' the opn_value field should have value 123
    similarly when the WELL field has a value 'def'
    in the detail part
    when the item_number is '1010103002' the opn_value  field should display value '456'kindly guide on how this can be achieved
    thanking in advance
    i did a when validate trigger on opn_value field
    BEGIN
    IF  :XXNP_JL_RES_005.OPN_UOM_CODE='PKU' and :XXNP_JL_EST_002.ITEM_NUMBER='1010103002' THEN
            SELECT hierarchy_level
            INTO :XXNP_JL_RES_005.OPN_VALUE
            FROM fnd_flex_values
            WHERE flex_value_set_id = 1009757
            AND FLEX_VALUE=:XXNP_JL_001.FIELD ;
            END IF;
            END;Edited by: makdutakdu on Jul 4, 2012 12:40 PM
    Edited by: makdutakdu on Jul 4, 2012 1:05 PM
    Edited by: makdutakdu on Jul 4, 2012 1:09 PM

    HI
    If i understood your question on overview, your requirement is
    get master details in details column.
    If this is correct,
    YOu can write a simple plsql to get master value in details columne thru trigger
    If my understanding is not correct, please tell me

  • File Browse Item in Master-Detail Form

    Hi,
    This is what I need to do.
    I have a master table called Regulations. As part of the Regulation Creation process, users need to upload supporting files. The number of files is not fixed, so I have a detail table for the uploaded files. I was planning to create a Master Detail form and have a File Browse item in the detail region? Is there a way I can put a File Browse item in the detail region of the Master Detail form?
    Any other implementation suggestions are welcome.
    Thanks,
    Ramesh

    See
    http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/
    It has some interesting implementation ideas relating to your question.
    Also see
    Upload Multiple Files
    Re: insert multiple files from a single form

  • Problem in Master Detail form

    Hello I am new to Form Developer and the question I am asking may be very simple for experienced programmers but as I said I am new to forms development so I am finding it a bit hard.
    I have got the following three tables in database.
    1. Student (roll_no, name) Primary key is roll_no
    2. Fee_type(Fee_code, Type, Amount) Primary key is Fee_code
    3. Fee_Receipt(roll_no, Fee_code, Date_of_Payment) roll_no & fee_code are foreign keys
    I want a form containing a combo box filled with all the roll numbers of students, a combo box containing all the fee types and then fields for entering data into fee_receipt table by using text items.
    I dont want to see the names of students, just their roll numbers filled in the combo box. I dont want to see the fee code i just want to see the fee types in the second combo box.
    how would i be able to do that. Any sort of help big or small will be appreciated. Thanks in advance

    Hi,
    Check this out... *[url http://www.holowczak.com/oracle/dev9i/#creatingmasterdetail]Creating Master-Detail Form*
    It is a similar kind of master-detail form. But you have to adapt your requirement accordingly.
    Hope it helps

  • Bind variable in Master Detail form

    Is there any way to go to a specific master record (bind variable) and it's associated detail information in a master detail form using a link from another report?
    Louis

    I suspect that he may have the same question I do. Namely, if I have four tables (employees, projects, tasks, and project_assignments) how do I create a master detail form where I can specify the project and the employee via LOVs? The project_assignments table contains foreign keys for employee, project, and task, as well as additional fields relating to the task status.
    Currently, I have it set up so that the employee name can be selected and the project is hard coded to the current project.
    Is there an easy way to populate the detail records based on two LOVs in the master form?
    Thanks in advance,
    Fritz

  • Master detail form

    Hi team, I am trying to create a Master detail form.
    I have two tables artist_master, pk group_code
    Artist_detail pk group_code. I have linked it as foreign key to Artist_master
    I have used the wizard to create the form.
    In the report page when I click on create button It shows me only the Master screen not the detail tabular form below.
    However when I click on the edit link of report it shows me both the master and detail screen.
    Another question how can I add a Insert/Update button in master form.
    My workspace aceigo
    user name demo password demo123

    Thanks Mark for replying.
    Firstly I would like to thank you for informing me about the Apply changes button. Thanks for that.
    About my project I would like to inform you that I am creating an application form for Artists. One application form can have multiple artists. In the Data Entry screen I need to collect all this information.
    This is the same concept as in Invoice data entry. We have a master and then a detail block.
    It will be quite frustrating to first enter the master data save it then go back click on edit and then enter the details page.
    I was wanting that when I click on create both the screens will come up. During data entry after the last item in master it should now go to details
    I saw a link in the forum where other people were also facing the same problem. They did not get a solution
    Master Detail
    Any help will be a blessing.
    Nigel

  • About having multiple blank  rows on master detail form

    Can I have multiple blank rows on detail form when I create master detail form?
    please help me
    shuyue

    Let me answer my own question.
    Set the number of rows to 500 and it will dynamically set to the number of rows.

  • Master-Detail form Problem

    Hi,
    I've made a Master-Detail form, but I'm getting a weird behavior... When I query a record from the master block it shows the rocords associated from the deatil block, but if I move to the deatil block and click on any field of the records queried, the block gets cleared and the cursor moves to the first line and enters in insert mode, like if I wanted to insert a new record. This same thing happens when I click on an empty line of the detail block... the rows queried get cleared and it moves the cursor to the first line to insert a new record. I don't want this to happen... When I click an empty line to insert a new record, I want the other records to remain there, not to be cleared from grid... I don't know if that's a property or something, I've checked triggers trying to find something weird, but nothing.
    I want to add that the records are not deleted from the tables, just cleared from the grid.
    Thanks for your help!

    It would help knowing how you have set up your data blocks.  Are they Base Table blocks or do you populate the blocks manually through code?
    If your tables are Base Table blocks, do you have a Releationship created between your Master and Detail blocks?  How many records are displayed in your Detail Block?
    Too many questions...not enough information. 
    Craig...

  • Problems with Master-Detail Form not retrieving Detail Rows

    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.

    I experienced performance problems. The simpiest MD form takes about 10 secs. to requery. I's not answer to your question, but there is more problems with this concept.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Finch ([email protected]):
    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.<HR></BLOCKQUOTE>
    null

  • Look and feel master detail form

    Hello
    i have difficulties at the time of trying to decorate a master detail form
    i have 2 blocks one is the master and the other is the detail
    the question is
    can i change the text item of the master which are in the same tab canvas that the detail
    the detail block have 8 records
    i can paint the detail but it get a bit crazy

    <p>And I can also combine two different block decorations like on the this image
    this screenshot.</p>
    with the following code in th When-Timer-Expired trigger:
    Begin     
      If lower(Get_Application_Property( TIMER_NAME )) = 'laf_timer' Then
           --    form main initializations    --
           Set_Custom_Property( 'LAF_BLOCK.LAF_BEAN', 1, 'SET_SCHEME', 'purple' ) ;
           If PKG_Look_And_Feel.Open_Css(:PARAMETER.PM$CSS_FILENAME) Then
             -- read the global GUI properties --
             PKG_LOOK_AND_FEEL.Set_GUI_Properties( '.GUIProperties1', 'LAF_BLOCK.LAF_BEAN' ) ;
             -- paint the canevases --
             PKG_LOOK_AND_FEEL.Paint_Canevas(:PARAMETER.PM$CANVAS, 'LAF_BLOCK.LAF_BEAN' ) ;
             -- paint the blocks --
             PKG_LOOK_AND_FEEL.Paint_Block
               PC$Block      => 'DEPT'
              ,PC$BeanName   => 'LAF_BLOCK.LAF_BEAN'
              ,PC$VA_Name    => :PARAMETER.PM$VA
              ,PC$HeadClass  => :PARAMETER.PM$HEADER
              ,PC$BodyClass  => :PARAMETER.PM$BODY
              ,PC$TitleClass => :PARAMETER.PM$TITLE
              ,PC$Title      => 'Departments'
              ,PB$ScrollBar  => True
             PKG_LOOK_AND_FEEL.Paint_Block
               PC$Block      => 'EMP'
              ,PC$BeanName   => 'LAF_BLOCK.LAF_BEAN'
              ,PC$VA_Name    => :PARAMETER.PM$VA
              ,PC$HeadClass  => '.tableHeader2'
              ,PC$BodyClass  => '.tableBody2'
              ,PC$TitleClass => '.tableTitle2'
              ,PC$Title      => 'Employees'
              ,PB$ScrollBar  => True
           End if ;
      End if ;
      go_block('DEPT');
         execute_query ;
    End ;Francois

  • Add multiple rows in detail form in master detail form

    Hi,
    I have a master detail form to enter survey responses. The master form captures the participant information and the detail form will carry the survey responses. After entering the master record, I need the detail rows to be populated with the survey questions stored in another table. The respondent will then update the response for each row in the detail form. Only after all the responses are filled out, clicking the save button should the detail records be committed.
    Is there a good way to achieve this.
    Thanks in advance
    Gopal

    Sorry, did not check OTN until this afternoon. Busy checking existing Apex pages on my project :)
    Our region to populate the tabular form has the tabular form fields defined as Display As Text (saves state). Non-enterable fields are defined as "Display as Text (saves state)". A tabular form results from these definitions.
    Because Apex won't generate code to handle multipe row tabluar form inserts we wrote our own as an After Submit PL/SQL process, something like
    DECLARE
      v_rows_found_n number;
    BEGIN
      --code for debugging
      raise_application_error(-20000,'Hello World: '||
        apex_application.g_f03(12)||':'||
        apex_application.g_f04(12)||':'||
        apex_application.g_f05(12)||':'||
      for i in 1..apex_application.g_f01.count loop
        BEGIN
          --attempt update first
          update whatever
             set field4 = apex_application.g_f05(i)
           where field1 = apex_application.g_f03(i)
             and field2 = apex_application.g_f04(i)
             and field3 = apex_application.g_f02(i);
          v_rows_found_n := SQL%rowcount;
        --if no rows were updated perform an insert
        if (v_rows_found_n = 0) then
           insert into oe_metric_values(
             field1,         --1
             field2,         --2
             field3,         --3
             field4          --4
          values(
            apex_application.g_f02(i), --1: field1
            apex_application.g_f03(i), --3: field2
            apex_application.g_f04(i), --2: field3
            apex_application.g_f05(i)  --4: field4
        end if; --did update operate on any rows?
      --exception
      --  when others then
      --    raise_application_error(-20000,'i'||':'||
      --      apex_application.g_f03(i)||':'||
      --      apex_application.g_f04(i)||':'||
      --      apex_application.g_f05(i)||':'||
        END; --internal loop block
      end loop; --loop through tabular form submit elements
    end; --pl/sql blockI had to get the identities of the f01, f02 etc. identifiers by looking at the HTML code in the rendered form because Apex assigns those values as it will. Anytime the column display changes in any way i have to go through and make sure the identifers have not changed.
    Hope this helps.

  • Unable to View records in a master-detail form

    In a master-detail form, I am not able to view records of the master/detail table
    by accepting the values of the PK of the header table items.
    Please tell me the exact steps, so that I can view the detail table records based on the header table PK items.
    Thanks.

    Yes I wrote the LOV code in a different procedure. Now, the view is showing correctly. But I am now trying to update the viewed records.
    The steps I am following in View Option is as below:
    go_block('header');
    clear_block(no_validate);
    execute_query;
    proc_lov;
    go_block('item');
    execute_query;
    I am unable to commit the changes made in the blocks
    The reason it is showing is : UNABLE TO update.....I saw the display_error.
    The system is trying to update the PK part also..Why....Though PK party is clearly defined in the table as well as property palette. Pl. explain how to go about it. Uregent help is required once again.

Maybe you are looking for