How to create One Master - and 2 detail records region

Hi,
My requirement is to have three regions on a single page, one for master record and two for detail records.
Also, one detail record region needs to upload images (photos) to database.
Can some one tell me how to do this in APEX.
Thanks
Aali

Hi Aali, I have the same issue in a master detail form, I don't know how to upload images in the detail form, can you help me please.
Thanks and regards,
Wilson

Similar Messages

  • How to create a partner and header record using CRM_ORDER_MAINTAIN?

    Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
    I tried to  create a record, but i only managed to create a header record and the partner record is not reflected in the transaction.  Why is that so? is there any indicator that i need to include?
    Thanks..
    Jen

    Hi Jen!
    I use this FM and it works perfectly.
    Use this to create a partner:
      gs_partner-ref_handle    = '0000000001'.
      gs_partner-ref_kind      = 'A'.
      gs_partner-ref_partner_handle = '0001'.
      gs_partner-partner_fct   = '00000001'.
      gs_partner-partner_no    = NO_PARTNER. "number of the partner, bu_partner
      gs_partner-display_type  = 'BP'.
      gs_partner-no_type       = 'BP'.
      gs_partner-kind_of_entry = 'C'.
    *  ls_partner_l-ref_handle    = '1'.
      gs_partner-ref_guid      = '00000000000000000000000000000000'.
      APPEND gs_partner  TO gT_partner .
      ls_input_field-ref_kind  = 'A'.
      ls_input_field-logical_key   = '0001'.
      ls_input_field-objectname  = 'PARTNER'.
      ls_input_field-ref_handle  = '0000000001'.
      ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'NO_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_FCT'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_NO'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      INSERT ls_input_field  INTO TABLE  gt_input_fields.
      clear ls_input_field-field_names[].
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      EXPORTING
    *    it_schedlin_i   = gt_schedlin_i_com
        it_partner      = gt_partner
    *    it_sales        = gt_sales
    *      it_orgman       = gt_orgman
    *      it_appointment  = gt_appointment
    *      it_ordprp_i     = gt_ordprp_i
    *   it_product_i    = gt_product_i
    *      it_activity_i   = gt_activity_i
    *      it_pridoc       = gt_pridoc_com
      CHANGING
        ct_orderadm_h   = gt_orderadm_h
    *   ct_orderadm_i   = gt_orderadm_i
        ct_input_fields = gt_input_fields.
    *      ct_doc_flow     = gt_doc_flow
    *      cv_log_handle   = gv_log_handle.
    Hope it helps u,
    Regards,
    Mon.

  • Displaying the master and detail records ....

    Hi ,
    There is a master - detail form. The end-user make some insertions/updates in the detail block...
    How is it possible to display these detail records and its master when the user presses a custom button 'refresh' which just requery the records in both master and detail blocks...?????
    When i write "to display these detail records and its master " i mean that the current record (the one which the cursor would be focused in ) would be this master record... however,all other records would be displayed as well....
    Many thanks,
    Simon

    From what I understand you want to re-query and go to the record where you were just before re-querying??
    Interesting requirement, why you wanna do this? if for the user to see the changes of the updates, that is the default behavior.
    You can do this in two ways.
    1- in your "Refresh" button save the :system.trigger_record in a parameter :parameter.record_num, for the Master block and after the query you do a go_record(:parameter.record_num) .
    BEGIN
         GO_BLOCK('EMP'); --Master Block
         :PARAMETER.RECORD_NUM := :SYSTEM.TRIGGER_RECORD;
         EXECUTE_QUERY;
         GO_RECORD(:PARAMETER.RECORD_NUM);
    END;2 you can loop through the block with next_record built-in and an exit condition of a key value you saved in a parameter.
    BEGIN
         GO_BLOCK('EMP'); --Master Block
         :PARAMETER.EMPNO := :EMP.EMPNO;
         EXECUTE_QUERY;
         FIRST_RECORD;
         LOOP
              EXIT WHEN :EMP.EMPNO = :PARAMETER.EMPNO;
              NEXT_RECORD;
         END LOOP;
    END;Tony

  • Master and Detail records in the same table

    Hi Steve,
    I have master and detail address records in the same table (self-reference). The master addresses are used as templates for detail addresses. Master addresses do not have any masters. Detail addresses have three masters: a master address, a calendar reference and a department. Addresses change from time to time and every department has its own email-account, but they refer to the same master to pre-fill some common values.
    Now I need to edit the master and detail address records on the same web page simultaneously.
    My question is: Can I implement a Master-View and Detail-View which refer to the same Entity-Object? Or should I implement a second Entity-Object? Or can it be done in a single Master-Detail-View?
    Thanks a lot.
    Kai.

    At a high level, wouldn't this be similar to an Emp entity based on the familiar EMP table that has an association from Emp to itself for the Emp.Mgr attribute?
    You can definitely build a view object that references two entity usages of the same entity like this to show, say, an employee's ENAME and at the same time their manager's ENAME.
    If there are multiple details for a given master, you can also do that with separate VO's both based on the same entity, sure. Again, just like a VO that shows a manager, and a view-linked VO of all the employees that report to him/her.

  • How to create one master table and two detail for it

    I have one table , imagine it like mastertable( empid,deptid );
    and two different tables like employeetable(empid ) , departmenttable ( deptid )....
    I dont have any relation on database side. I need to create view link and ı need to use only one master table for two detail tables.
    How can ı manage this scenerio ?
    thanks...

    yes Shay ı really want to use two detail table in one UI as you suggest in your blog. But in that scenerio probably tables have link in database side with foreign key. My detail tables dont have any connection in database side with my master table. How can ı link them under one mastertableVO ?
    I am really sorry about my bad explanation. I am a newbie and probably ı dont know the correct words to tell my problem.
    Thanks for your time...

  • OAF matester detail page : How to have a "Show All" feature on screen, so that all the master and details records are expanded .

    Hi ,
    I was trying to have a "SHOW ALL" feature on the master - detail page,
    the detail table is an advancec table.
    Please help me with inputs on how to have  "SHOW ALL" feature,
    Currently, we have to click on  ":Show" for each record at master level to view the child data.
    Trying to achive "Show All" Feature so that on click of this the master records on the page 'Expands"  showiing all master records with respective detail records.
    Regards
    bhuvanm

    Hi,
    You should not set DetailFlag = "Y" in whereclause because there is no such record.
    Also detail flag is transient attribute and not the query column, hence the error "Invalid indentifier".
    I asked you to use DetailFlag as query column with static value "Y".
    for example:
    SELECT "Y" detail_flag
    FROM <table_name>
    This will display all the table records in expanded format. if you want it conditionally then use decode on some bind parameters.
    For example:
    SELECT DECODE(:1, "SHOWALL", "Y", "N") detail_flag
    FROM <table_name>
    This bind parameter should be passed whenever you want to execute query for the table.
    Regards,
    Sandeep M.

  • How to create one master with more than one detail

    Hi
    I am using jdev 11.1.2.1.0
    I want to add more than one detail view object under one master view object in application module
    Please solve this asap
    Thanks

    Hi Frank
    I have 5 view objects (Suppose A,B,C,D,E) and I have created view links between them like
    A->B
    A->C
    A->D
    A->E
    Then I am shuttling views in Application module (In Data model Tab) to create A as master and rest as details.
    But it is not creating as i want.
    I add new instance of view object independently.
    Please solve this
    Thanks
    Edited by: 7668489779 on ३० अप्रैल, २०१२ ४:०७ अपराह्न

  • Example of how to create a master-mutiple detail BI Publisher 10.1 Report

    Hi,
    Are there any examples out there on how to do this? Basically for each master record from table A,
    need multiple related detail records from table B AND multiple related detail records from table C.
    Ie. A is master to B AND A is master to C.
    For master-single detail reports, writing a single query that joins master to detail works fine,
    but for master-multiple detail reports, I don't see how this approach will work.
    Thanks,
    Jed

    Sure, here is one (hand edited, but shows some structure).
    Detail rowset2 relates to rowset1 via STDINV_ID.
    Detail rowset3 related to rowset1 via STUDY_ID and STDINV_ID.
    Thanks for your consideration.
    -Jed
    <?xml version="1.0" encoding="UTF-8"?>
    <DATA>
    <ROWSET1>
    <ROWSET1_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STUDYNAME>TEST293</STUDYNAME>
    <INVNAME>Flinstone, Fred</INVNAME>
    <COUNTRY>USA</COUNTRY>
    <STDINV_ID>3721</STDINV_ID>
    <ROWSET2>
    <ROWSET2_ROW>
    <STDINV_ID>3721</STDINV_ID>
    <TEMPLATESENT>11/02/2006</TEMPLATESENT>
    <FINALCONTRACTRECEIVED>11/13/2006</FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>11/13/2006</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    </ROWSET2>
    </ROWSET1_ROW>
    <ROWSET1_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STUDYNAME>TEST293</STUDYNAME>
    <INVNAME>Bell, Taco</INVNAME>
    <COUNTRY>USA</COUNTRY>
    <STDINV_ID>3157</STDINV_ID>
    <ROWSET2>
    <ROWSET2_ROW>
    <STDINV_ID>3157</STDINV_ID>
    <TEMPLATESENT>07/12/2005</TEMPLATESENT>
    <FINALCONTRACTRECEIVED></FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>04/05/2006</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    </ROWSET2>
    <ROWSET3>
    <ROWSET3_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STDINV_ID>3157</STDINV_ID>
    <EXPIRATION>10/02/2007</EXPIRATION>
    <IRBNAME>Big Kahuna IRB</IRBNAME>
    </ROWSET3_ROW>
    <ROWSET3>
    </ROWSET1_ROW>
    <ROWSET1_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STUDYNAME>TEST293</STUDYNAME>
    <INVNAME>King, Burger</INVNAME>
    <COUNTRY>USA</COUNTRY>
    <STDINV_ID>3112</STDINV_ID>
    <ROWSET2>
    <ROWSET2_ROW>
    <STDINV_ID>3112</STDINV_ID>
    <TEMPLATESENT>07/10/2005</TEMPLATESENT>
    <FINALCONTRACTRECEIVED>11/21/2005</FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>11/23/2005</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    <ROWSET2_ROW>
    <STDINV_ID>3112</STDINV_ID>
    <TEMPLATESENT></TEMPLATESENT>
    <FINALCONTRACTRECEIVED></FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Amendment 1</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>04/01/2008</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    </ROWSET2>
    <ROWSET3>
    <ROWSET3_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STDINV_ID>3112</STDINV_ID>
    <EXPIRATION>08/16/2011</EXPIRATION>
    <IRBNAME>Top Notch Healthcare</IRBNAME>
    </ROWSET3_ROW>
    </ROWSET3>
    </ROWSET1_ROW>
    </ROWSET1>
    </DATA>

  • How to create one department and creating many employees in it in one page

    Hello
    I want my page to include a form to insert a department
    and a table to create many employees and inserting them into the department in one transaction

    here is what i did
    I used view links only to link betwwen the parent & child
    I created bounded task flow
    I dragged and dropped a "createinsert" operation from the master iterator and "createinsert" operation from the detail and linked them to a page
    In the page I dragged a form for the master and a table for the detail ( so I can create multiple records)
    I added "createinsert" and "delete" operations on the table on the form of ADF Buttons so i can add & remove child records
    Here is the problem:
    when I enter some data in the parent form and then try adding child records in the table using the buttons, it refreshes the parent form and clears the data in that form

  • Example of how to create a master-multiple detail PDF report using BI Pub

    Hi,
    Are there any examples out there on how to do this? Basically for each master record from table A,
    need multiple related detail records from table B AND multiple related detail records from table C.
    Ie. A is master to B and A is master to C.
    For master-single detail reports, writing a single query that joins master to detail works fine,
    but for master-multiple detail reports, I don't see how this approach will work.
    Thanks,
    Jed

    You MIGHT have a better response if you ask this question in the BI Publisher forum...: BI Publisher
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.

  • Master and detail in the same page

    db11xe , apex 4.0 , firefox 24 ,
    hi all ,
    i am trying to insert the master and detail data in one step in the same page :
    i have two tables (clients) and (tests_administered)
    the client table's region contains theses items
    client_id
    client_name
    the other table's region contains these columns -- the tabular region
    row selector
    test_admin_id -- pk,  hidden
    client_id          -- hidden , this is the one i should populate with values
    and more columns
    i've done this :
    1- removed the condition of the tabular region .
    2- Added the request CREATE to the list in condition of the APPLYMRU process -- or :request like ('CREATE')
    3- Added new process with following code : -- with sequence before the applymru process and after process row of clients process
    for i in 1..apex_application.g_f02.count
    loop
    apex_application.g_f02(i) := :p2_client_id ;
    end loop ;
    but nothing happened . why ? what did i miss ?
    thanks

    Hi,
    Create a Master Detail Form through the APEX Wizard 
    Make sure you choose the Primary Keys for the Master Detail as one of your Column and not the ROW ID.
    Selecting an existing Sequence for the Primary Key is preferred.
    Select the option the where your Master and Detail appears in the same page.
    Initially when you run the page your master and detail will not appear at the same time in the page when your Master Detail Form is in the entry form mode. For this you have to go to your Tabular Form(Detail Form) region, and below you will have to remove the Condition for the display of your Tabular form and set it to “No Condition”.
    Now when you run the page both the Master and Detail form will appear together in the create mode but you will not be able to insert or create both master and detail records at the same time when u click the create button. For this the following needs to be done: You need to create a PL SQL Tabular Form process :
    Let's say your master form is based on DEPT and your detail tabular form is based on EMP. Make sure the following things are configured:
    The DEPT insert/update DML process runs before the new tabular form PLSQL process. (ie) the new PL SQL Tabular Form Process that you create should be inbetween Automatic Row Processing(DML) and Multi Row Update Process , so create the new Tabular Form Pl SQL process with a sequence number inbetween these two Processes.
    Make sure you choose Tabular form while creating this PL SQL process.
    The new tabular form PL/SQL process executes the following as the source
       :DEPTNO := :P1_DEPTNO;
    Where DEPTNO is the Foreign Key column in the Tabular Form that links the Primary Key Item P1_DEPTNO of the Master Form.
    Finally this new PL SQL process conditionally runs when DEPTNO is null, so you need to add the following condition to the process:
    The final step to accomplish in creating both the Master and Detail records at the same time is to make a change in the condition of the Multi Row Update Process. :request in ('SAVE','CREATE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%'
    -We make this change so that records get inserted into the Detail table when we click the ‘’Create” button.
    Now you can Run your page and create both the Master and Detail records at the same time.
    Thanks and Regards,
    Madonna

  • How to create one Oprations button (Create Button Or CreateInsert Button )for all master And Detail block?

              hi
       I have master And Detail with 4 level ,I want to have on operations button for all block in data control .
      (similar to Oracle form toolbar)
    how to do it ?

    Well, if you tell us your jdev version and what exactly you try to do, without just telling us 'as in forms' we might be able to help.
    Most of us don't know how it's done in forms. So be specific when you describe your use case.
    Timo

  • How get all record from master and matching record from detail

    hi master
    sir i have master detail table
    i have many record in master table but some record in detail table how i get
    all record from master and matching record from detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m, detail d where m.accid=d.accid
    this query not work that get only related record i need all record from master
    please give me idea
    thanking you
    aamir

    hi master
    sir i have master detail table
    i have many record in master table but some record in
    detail table how i get
    all record from master and matching record from
    detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m,
    detail d where m.accid=d.accid
    this query not work that get only related record i
    need all record from master
    please give me idea
    thanking you
    aamir
    select m.accid,m.title,d.dr,d.cr
    from master m, detail d
    where m.accid=d.accid (+)The outer join operator (+) will get you all the details from master and any details from the detail if they exist, but the master details will still be got even if there are not details.
    Note: Oracle 10g now supports ANSI standard outer joins as in:
    select m.accid,m.title,d.dr,d.cr
    from master m LEFT OUTER JOIN detail d on m.accid=d.accid

  • How to insert  new records in Master and detail Forms.

    Hi,
    I am having trouble inserting values in both master and detail view at the same time. The scenarios is I have a Dept Table (View Object-VO1) and Employee Table(View Object -VO2) both linked with a foreign key, as per Default HR schema in Oracle DB XE.
    Now I want to insert new record in both Dept(VO1) and EMP(VO2) table via a New page say ( Page2 ). There is a button on Page1 with button INSERT .I can only drag-drop "CreateInsert" operation on that button for VO1 or VO2. So only text box for Dept records are enable to insert data but not Emp records. Is there a way I can insert data in both the tables at the sametime??
    Thanks,
    MB

    Hi MuradRabbani,
    You can programmatically call both createInsert Operations,
    Add to your pageDef both CreateInsert Operations.
    Create a button tha will call insert method from Master (VO1) and then call insert method for Detail (VO2)
    Here is an Example code of calling the operations:
    DCBindingContainer dcb = ADFUtils.getDCBindingContainer(); //you need 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 should have set values that compine the ViewLink on the master in order the detail will know where to link the new record there are many ways to do it.
    As an approach try to overrdi the create Method on the in the ViewRowImpl of your Master vo (VO1)
    e.g.
    @Override
    protected void create(AttributeList attributeList) {
    //before
    attributeList.setAttribute("NameOfAttribute", valueHere);
    super.create(attributeList);
    After that you should call the operation for your detail VO2
    e.g.
    DCBindingContainer dcb = ADFUtils.getDCBindingContainer();
    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO2");
    oper.execute();
    The detail record will now have the values from your master automatically.
    Regards,
    Dimitris.

  • How to show master and detail tables in different pages?

    Hi,
    Can somebody expalin me how to include or bind the master and detail tables to different pages which are included at runtime.
    thnaks,
    Naresh.

    Hello!
    you have ti create a Master/Detail data structure.
    In the first page drag the master table, on the second drag a detail table.
    It should work out of the box. Selecting a record on the master table selects
    the details on the detail table automatically!
    regards,
    Mario Udina

Maybe you are looking for

  • Maximum open cursors exceeded prblm , code attached for review

    I am getting the following exception in my code java.sql.SQLException: ORA-01000: maximum open cursors exceeded My code is as follows      public ResultSet getFiles() throws Exception           ResultSet rs = null;           PreparedStatement pst = n

  • Can't open one website on any browser on mac

    I have a MacBook Pro running Yosemite 10.10 (up to date) I also have Safari 8.0.2 and Chrome 40.0.2214.91 (64-bit). I have been trying to open a website (home insurance) for months now and assumed the website was just down every time I checked. Yeste

  • Artwork ok in iTunes but 50% of it not syncing

    99% of the songs in my iTunes library have artwork, largely from google. Until recently, all of my songs synced to my 4th gen Nano complete with their artwork. However, now only about half of the songs have their artwork when viewed on the iPod. The

  • OIM 11gR2 - Error when trying to view task details

    I am having an issue [very similar to this one|https://forums.oracle.com/forums/thread.jspa?messageID=10667996]. When we are in the identity module (/identity), under the Pending Approvals tab, and we click on one of the approval or fulfillment tasks

  • Multi Source Instance in DAC

    Hi all, We have the requirement to load data from two different instances For Ex: From instance A:We need to extract the data for procurement,EAM and Finance. From Instance B:We need to extract the data for HRMS. Pleae provide me the Steps to impleme