Model with master detail

Hello

How can we create a template with the data in two tables as a master detail report. Each record in table A has multiple records in table B, and the tables have a common column.

Thank you
Machaan

Yes.

see this.

DEP. and EMP - example of relationship

http://download.Oracle.com/docs/CD/E10415_01/doc/bi.1013/e12187/T421739T434255.htm#3547893

That you will get the data for the ship of the teacher-child relationship.

then in model loop through them.

Tags: Business Intelligence

Similar Questions

  • Help with master/detail pages

    Ok.. I want users to be able to update their information... Fortunately, someone showed me in the right direction on here to get started, but as I am new on this I am having trouble... I want the user to be able to click on a link change profile that will lead them to an editable form that is filled with current info... and if they change that info in the form it will change it in the comic book... I use MS Access and a single base table DB... This is the beginning of the code I'm trying to do some work:



    < name cfquery = 'list' datasource = "final" >
    SELECT *.
    OF project_table
    < / cfquery >

    < a href = "edit.cfm? ID = #query.ID #... >"


    < cfquery name = "├editer" datasource = "final" >
    SELECT *.
    OF project_table
    WHERE id = #url.ID # <-I don't understand this part. What I put here
    ...
    < / cfquery >


    < form... >
    < Entry... value = "query.aField" > <-if it was something like "list.last_first" or if it is written, and I guess I need an input field for the largest number areas I want to allow the user to update? "
    ...
    < / make >

    * < cfquery >
    * UPDATE...
    * ALL...
    * WHERE id = #form.id #.
    * < / cfquery >

    I reall am having a difficult time wrapping my head around this... Can anyone help?



    SELECT *.
    OF project_table



    SELECT *.
    OF project_table
    WHERE id = #url.ID #.<---I don't="" get="" this="" part.="" what="" am="">
    meant to put it here--->
    ...



    <--Should this="" be="">
    as "list.last_first" or if it is written, and I guess that I need
    an input field for as many of the areas I want to allow the user to
    Update?---><--- yes="" you="" would="" have="" an="" form="" element="" for="" each="" datum="">
    to allow editing--->
    ...


    **
    * UPDATE...
    * ALL...
    * WHERE id = #form.id #.
    **

  • Problem with the join relationship condition master / detail

    Hello
    I need to join with master detail such as if there is no trace of the foreign key in detail to the primary master key, the foreign key must be attached to another column based on certain conditions in the master. For example:

    Control columns: pk1, rk1, rk2
    Detail of the columns: fk1, a, b, c

    I created a relationship with detail with the join condition, pk1 = fk1 in master.
    But according to value rk1, I actually join fk1 to rk2 in master and if the condition fails then join the pk1. I can't put this condition in the relationship that the form does not accept complex join conditions.

    I hope that my example has not confused everyone.

    Can someone help me to achieve this goal.

    TIA

    TIA,
    I agree with DM, rather than using the RELATIONSHIP between the blocks that I would create logic to manually set the DEFAULT_WHERE clause on the block of RETAIL with the criteria you need to MASTER block. This can be a little difficult if you want to form work the same way if you had defined a relationship because you will have to create all the triggers event coordination. The most difficult part is to choose the right triggers to coordinate the synchronization when a user accesses a folder of master to another. For just the basics (the block of retail is questioned when the user navigates to the retail block), you could do the following:
    1. create a When-new-folder-Instance trigger on the Master block to capture the relevant details to query the block detail and define the DEFAULT_WHERE.
    2 create a trigger in a times - news - block - Instance on the block of retail to run the query on the block of retail and display the details records.

    For example:

    /* Sample When-New-Record-Instance trigger */
    DECLARE
         v_temp_where          VARCHAR2(500); /* make larger if needed. */
    BEGIN
         IF ( :MASTER_BLOCK.First_Item IS NOT NULL ) THEN
              /* this is needed for when the user navigates to a NEW record in the MASTER Block. */
    
              /* Add your conditional logic here to determine how to build your WHERE clause */
              IF ( RK1 = 'Dependent Values' ) THEN
                   v_temp_where := 'PK1 = FK1';
              ELSE
                   v_temp_where := 'RK2 = FK1';
              END IF;
    
              Set_Block_Property('DETAIL_BLOCK',ONETIME_WHERE,v_temp_where);
              /* If you are using Forms 6i, the ONETIME_WHERE property is not available so you will have to */
              /* use the DEFAULT_WHERE property instead. */
         END IF;
    END;
    
    /* Sample When-New-Block-Instance trigger
    BEGIN
         /* This sample code assumes the user has not navigated to a New Record */
         /* so there will always be a NOT NULL default where assigned to the DETAIL BLOCK.*/
         Clear_Block(ASK_COMMIT); /* just in case the user made changes... */\
         Execute_Query;
    END;
    

    Please understand it is the EXAMPLE of Code and is intended to be a starting point for you - not the complete solution.

    I hope this helps.
    Craig...

    If a response is appropriate or useful, please mark accordingly

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

    Scenario is,

    I have a form master detail. using DBSequence on the two keys on the master and detail. But I am facing problem Parent key not found do not where to insert data. I think that Seqnce with master detail creating problem

    J Dev Version: 11.1.2.0.0

    Consult the:

    http://Ahmed-alzamer.blogspot.com/2013/09/entities-Association-not-composition.html

    Liu Wuhua technology and learning of Notes: insert master / detail in ADF BC

    http://docs.Oracle.com/CD/E23943_01/Web.1111/b31974/bcadveo.htm#ADFFD1149

  • MapView - Table | Master detail

    Hello

    I have a plan and I need to update a table accordingly to what the user selects on the plan. For example, the user clicks on a State on the map and watch the State news. I tried to use master detail that connects between the map and the table but I don't seem to work. Does anyone have a suggestion or a workaround?

    Thanks in advance,

    William Janoti

    Probably you have not added State column in Table guest section of the table display. Or maybe the status column in the view map and table are mapped to the columns of different logics.

    Its pretty simple and I never found problems with master-detail map to the Table.

    Thank you

  • Scroll position does not reset the master/detail

    (I posted this in another section, but I thought I should post it here too).

    I work with master/detail and I have the following problem:

    When I scroll to the bottom of a retail box, and then click another item in the main column, it shows the bottom of the new retail area.  This is not what I want.  When I click on an item in the main column, I want to see the top of the new retail area.  How can I get there?

    Help, please!  Thank you!

    SC

    I would like to add a for the link instead of a javascript onclick event: funtion. I noticed that in my first answer, but let him slip so far there

    So, instead of this:

    
    
        
    {content}

    Try this:

    
    
        
    {content}

    OR try this: (removal of the function of the head and placing him in an event onclick for the link.)

    
    
        
    {content}
  • Task flow train bounded with new transaction to add to the master-detail table

    JDeveloper 11 g 11.1.1.0.2
    ADF BC
    ADF RC

    When I implemented workflows task train bounded to add line to the main table and two-step
    first step and first page insert the info from the main table as model of information
    second stage and second page to insert a line in the secondary table as emp info

    I get the error:

    Messages for this page are listed below.
    Constraint "EMP_COMP_FK1" violated during the post operation: 'Insert' with SQL statement ' BEGIN INSERT INTO EMP (EMP_ID, PERSON_ID, COMP_ID, JOB, CONTACT_FLAG, BILL_FLAG, STATUS, CREATED_BY, CREATED_DATE, UPDATED_BY, UPDATED_DATE) VALUES (: 1,: 2,: 3,: 4,: 5,: 6,: 7,: 8: 9,: 10,: 11) in RETURNING EMP_ID INTO: 12; END; ».
    ORA-02291: integrity constraint (DB1. EMP_COMP_FK1) violated - key parent not found
    ORA-06512: at line 1


    I think that this error occurs when trying to insert in master and detail in the same transaction, but what is the solution for my case?

    Note:
    I don't want to use the strong association when define the relationship master detail

    Concerning
    Zuhair

    Zuhair,

    Have a reading of article 34.8 Fusion developer Guide - he talks about how to control the display order as the parent is always inserted before the child - it does indeed sound like this is the cause of your problem.

    John

  • Problem with page validation APEX_APPLICATion master detail.  Help!

    I'm having a problem with the Apex_Application.g_fxx data structure.  I'm trying to validate the lines in my page master detail and need to use apex_application.g_f10 as the name of the variable inside the HTML data source electricity.  The name of the item I need is "f10" because it matches the database column "status" on my page.  I'm trying to validate that all the detail items have the same status, or an error is reported.  I use the following PL/SQL block that returns a Boolean value:

    < code >

    declare
    l_first_value varchar2 (4000);
    Start

    -f10 = column PO_STATUS of PO_DETAILS table on a part as a table on the page.

    l_first_value: = apex_application.g_f10 (1);
    because me in 2... apex_application.g_f10. COUNTY
    loop
    If l_first_value! = apex_application.g_f10 (i)
    then
    Returns false;
    end if;
    end loop;
    Returns true;
    end;


    < code >

    The HTML data that I is not intended to "f10" are the following:

    < code >

    < td headers= "Status" class= "t20data" >

    < label for= "f10_0000" class= "hideMeButHearMe" >status< /label>

    < Select name="f10"  id="f10_0000">

    < option value= "" selected= "selected" >make a selection< /option> ""

    < option value= 'APPROVED' >APPROVED< /option>

    < option valeur= « FERMÉ » >FERMÉ< /option>

    </ Select >

    < entry type="hidden" name="f02" value=""  id="f02_0000" />

    < entry type="hidden" name="f03" value="30427" id="f03_0000" />

    < entry type= 'hidden' id= "fcs_0000" name= "fcs" value= "2158A9B101842608F4CA966C0BC1433D" >

    < entry type="hidden" id="frowid_0000" name="frowid" value="" />

    < entry type="hidden" id="fcud_0000" name="fcud" value="D" />

    </ td >


    < code >

    So I do not know why there could be a problem when used to work before this validation.  The PL/SQL block takes the first line of F10 data and compare it to successive lines.  If the data is not equal, then an error occurs and the user is prompted to adjust the data.

    It doesn't work anymore, although I checked and the status are still of points in F10.

    I left mouth gaping.  I do not use an official page master detail previously.  I used two separate front pages: one for the header and one for show master detail.  I've updated the page for the treatment of the more fluid user. I think that even if the data structure would be the same, but maybe I'm wrong.

    Any ideas?


    Thank you!

    Thank you to reproduce the problem so overall. Note that if you will share your workspace in this way you need to change your username to something else than a direct email address and don't use not the actual data for your test cases. Create a guest account to developer without administrator privileges to work space for the members of the forum to use.

    Validation in this app is coded to use a different picture of the description in this thread. Above, you have identified the point like g_f10 dashboard, but the validation code is using g_f09:

    declare
      l_first_value  varchar2(4000);
    begin
    -- f09 = PO_STATUS column of PO_DETAILS table
      l_first_value := apex_application.g_f09(1);
      for i in 2 .. apex_application.g_f09.COUNT
      loop
        if l_first_value != apex_application.g_f09(i)
        then
            return false;
        end if;
      end loop;
      return true;
    end;
    

    Therefore (thanks to instrumentation code added), the validation is running by using the values of the previous column, which was be the one that I have changed according to your instructions:

    0.09114

    0,00018

    ... Posting type "Status check IN." -: FUNC_BODY_RETURNING_BOOLEAN

    4

    0%

    0.09132

    0,00049

    ... Run the statement: select count (*) in the sys.dual where exists (Select 1 from PO_DETAILS where PO_ID =: P230_PO_ID)

    4

    0 g

    0.09181

    0,00015

    ...... Result = true

    4

    0%

    0.09196

    0.00573

    ... Run the statement: declare function x return boolean is begin declare

    l_first_value varchar2 (4000);

    Start

    -f09 = PO_STATUS table PO_DETAILS column

    l_first_value: = apex_application.g_f09 (1);

    apex_debug.message ('g_f09 (1): %s, l_first_value);

    because me in 2... apex_application.g_f09. COUNTY

    loop

    (apex_debug.message('g_f09(%s): %s, i, apex_application.g_f09 (i));

    If l_first_value! = apex_application.g_f09 (i)

    then

    Returns false;

    end if;

    end loop;

    Returns true;

    end;

    Returns a null value. end; begin wwv_flow.g_boolean: = x; end;

    4

    28%

    0.09769

    0.00005

    g_f09 (1): TEST2

    4

    0%

    0.09773

    0.00010

    g_f09 (2): TEST

    4

    0%

    0.09783

    0,00003

    ...... Result = false

    4

    0%

    0.09786

    0.00004

    ...... Does NOT pass

    I created a new liquidation which uses the correct column, but at some point the validation passes and data, so I didn't get a chance to conduct tests.

  • Master / detail createInsert jumping required attributes validation with part delivery = true

    Hi all

    I use JDev 11.1.1.7.0

    I created master / detail on table emp dept and slipped and fell from CreateInsert in both tables.

    I put partial Submit true for these two buttons.

    Scenario: when I add a record in the master and try to add another rec, mandatory validation fires and it doesnot allow me to add new rec if already a rec void is there.

    But after adding in master, if I add a new rec in child, isn't shooting the validation of required attributes in the parent table. So a new blank record is created is in the child. ]

    If I put part delivery = false for child createInsert, fires of validation.

    Question: in my application, I set partialSubmit = true to CreateInsert child. Although I gave the partial trigger for the main table, validation of required attributes is not get fired for master.

    How to solve this? User should not be able to add a record of the child without filling out the required attributes



    < af:form id = "f1" >

    < af:panelStretchLayout id = "PSL1" topHeight = "400px" >

    < f: facet name = "center" >

    < af:panelCollection id = "pc1" >

    < f: facet name = "toolbar" >

    < af:toolbar id = "t4" >

    < af:commandButton actionListener = "#{bindings." CreateInsert1.execute}"text ="CreateInsert1. "

    Disabled = "#{!}" bindings. CreateInsert1.enabled}" id ="cb2" partialSubmit ="true"/ >

    < / af:toolbar >

    < / f: facet >

    < af:table value = "#{bindings." Var EmployeeVO1.collectionModel}"="row ".

    lines = ' #{bindings. " EmployeeVO1.rangeSize}.

    emptyText = "#{bindings." EmployeeVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmployeeVO1.rangeSize}' rowBandingInterval = '0 '.

    filterModel = "#{bindings." EmployeeVO1Query.queryDescriptor}.

    queryListener = ' #{bindings. " FilterVisible EmployeeVO1Query.processQuery}"="true"varStatus ="vs. "

    selectedRowKeys = ' #{bindings. " EmployeeVO1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection EmployeeVO1.collectionModel.makeCurrent}' = 'single '.

    id = « t2 » "" partialTriggers = ": cb2: pc2:t1: pc2:cb1">

    < / af:table >

    < / af:panelCollection >

    < / f: facet >

    < f: facet = 'top' name >

    < af:panelCollection id = "pc2" >

    < f: facet name = "toolbar" >

    < af:toolbar id = 't3' >

    < af:commandButton actionListener = "#{bindings." CreateInsert.execute text}"="CreateInsert. "

    Disabled = "#{!}" bindings. CreateInsert.enabled}" id ="cb1"partialSubmit ="true"/ >

    < / af:toolbar >

    < / f: facet >

    < af:table value = "#{bindings." Var DepartmentVO1.collectionModel}"="row ".

    lines = ' #{bindings. " DepartmentVO1.rangeSize}.

    emptyText = "#{bindings." DepartmentVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." DepartmentVO1.rangeSize}' rowBandingInterval = '0 '.

    filterModel = "#{bindings." DepartmentVO1Query.queryDescriptor}.

    queryListener = ' #{bindings. " FilterVisible DepartmentVO1Query.processQuery}"="true"varStatus ="vs. "

    selectedRowKeys = ' #{bindings. " DepartmentVO1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection DepartmentVO1.collectionModel.makeCurrent}' = 'single '.

    id = « t1 » "" partialTriggers = ": cb1: pc1:cb2">

    < / af:table >

    < / af:panelCollection >

    < / f: facet >

    < / af:panelStretchLayout >

    < / af:form >



    Kind regards

    Deepti

    This means that it is a bug

    If you put your version Jdev or submit together partial false to get it working in the current version

    and drop a SR with Oracle Support

    Ashish

  • Help with master / multiple details from the collections

    Hello

    I am trying to create multiple details for my master report using collections by the method of Blarman on https://community.oracle.com/thread/1091458. This is my first shot of dagger to collections and I seem to be missing something, but for the life of me, I don't know what. I managed to get the display of collection for the captain, but when this inserts / updates, only the first collection seq_id is already updated or inserted the user entry. I suspect that I'm doing something stupid on BCM_POPULATE_TICKET_REF_COL to avoid updates to all items in the collection, but after much research and trying, I do not know what. Any suggestions would be much appreciated.

    Thank you!
    Michelle

    1. structure of the table

    CREATE THE TABLE DBSCH1. BCM_FINDINGS
    (
    NUMBER OF FINDINGS_ID
    VARCHAR2 (200 BYTE) WORKING GROUP,
    VARCHAR2 (200 BYTE) TEAM.
    DIVISION VARCHAR2 (200 BYTE),
    RAISED_BY VARCHAR2 (200 BYTE),
    ...
    )

    CREATE THE TABLE DBSCH1. BCM_COMMENTS
    (
    NUMBER OF COMMENTS_ID
    COMMENTS VARCHAR2 (4000 BYTE),
    FINDINGS_ID NUMBER NOT NULL
    )

    CREATE THE TABLE DBSCH1. BCM_TICKET_REF
    (
    NUMBER OF TICKET_REF_ID
    TOOL VARCHAR2 (4000 BYTE),
    TICKET_REF VARCHAR2 (4000 BYTE),
    LINK VARCHAR2 (4000 BYTE),
    FINDINGS_ID NUMBER NOT NULL
    )


    2 created master / detail report on BCM_FINDINGS & BCM_COMMENTS.

    3. create the BCM_TICKET_REF collection:

    CREATE or REPLACE PROCEDURE BCM_CREATE_TICKET_REF_COL (full bcm_findings_id)
    as
    I have pls_integer;
    CNTR pls_integer: = 5;
    Start
    apex_collection.create_or_truncate_collection ('POPULATE_TICKET_REF_COL');
    for Rec in)
    Select the tool, ticket_ref, link, ticket_ref_id, findings_id
    of bcm_ticket_ref
    where FINDINGS_ID = bcm_findings_id

    )
    loop
    () apex_collection.add_member
    p_collection_name = > 'POPULATE_TICKET_REF_COL ',.
    p_c030 = > Rec.ticket_ref_id,--primary key
    p_c031 = > Rec.tool, - placeholder text
    p_c032 = > Rec.ticket_ref, - placeholder text
    p_c033 = > Rec.link, - placeholder text
    p_c034 = > Rec.findings_id fk - space
    );
    end loop;
    because me in 1.cntr
    loop
    () apex_collection.add_member
    p_collection_name = > 'POPULATE_TICKET_REF_COL ',.
    p_c030 = > 0, - designates this as a new registration
    p_c031 = > NULL,-placeholder text
    p_c032 = > NULL,-placeholder text
    p_c033 = > NULL,-placeholder text
    p_c034 = > bcm_findings_id - number placeholder
    );
    end loop;
    end BCM_CREATE_TICKET_REF_COL;

    Support - before the header:

    BEGIN
    BCM_CREATE_TICKET_REF_COL (bcm_findings_id = >: P2_FINDINGS_ID);
    END;


    4. definition of standard report for BCM_TICKET_REF region:
    SELECT rownum,
    apex_item. Hidden (30, c030), - ticket_ref_id
    apex_item. Text (31, c031, 20, 20) tool.
    apex_item. Text (32, c032, 15, 15) ticket_ref,.
    apex_item. Text (33, c033, 15, 15) link.
    apex_item. Hidden (34, c034) findings_id
    OF APEX_COLLECTIONS
    WHERE COLLECTION_NAME = "POPULATE_TICKET_REF_COL."

    5. get user input for the update of the collection BCM_TICKET_REF
    CREATE OR REPLACE PROCEDURE BCM_POPULATE_TICKET_REF_COL
    AS
    j pls_integer: = 0;
    Start
    for j1 in)
    Select seq_id apex_collections
    where collection_name = "POPULATE_TICKET_REF_COL."
    the order of seq_id loop)
    j: = j + 1;
    -(number) ticket_ref_id
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id, p_attr_number = 30, p_attr_value = > wwv_flow.g_f30 (j));
    -tool (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 31, p_attr_value = > wwv_flow.g_f31 (j));
    -ticket_ref (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 32, p_attr_value = > wwv_flow.g_f32 (j));
    -link (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 33, p_attr_value = > wwv_flow.g_f33 (j));
    -(number) findings_id
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 34, p_attr_value = > wwv_flow.g_f34 (j));
    apex_application.g_print_success_message: = "loop COUNTER" | j;
    end loop;
    end;

    On present - before the calculations and validations

    BEGIN
    BCM_POPULATE_TICKET_REF_COL;
    END;


    6 update DB with the data in the collection BCM_TICKET_REF
    CREATE OR REPLACE PROCEDURE DBSCH1. BCM_UPDATE_TICKET_REF
    AS
    j pls_integer: = 0;
    Start
    -Obtaining records from Collection
    for y in (select TO_NUMBER (c030) ticket_ref_id,
    C031 tool,
    C032 ticket_ref,
    C033 link,
    TO_NUMBER (c034) findings_id
    OF APEX_COLLECTIONS
    WHERE collection_name = "POPULATE_TICKET_REF_COL") loop
    j: = j + 1;
    If y.ticket_ref_id = 0 then - new record
    insert into BCM_TICKET_REF (ticket_ref_id, tool, ticket_ref, link, findings_id)
    values (BCM_TICKET_REF_SEQ.nextval, y.tool, y.ticket_ref, y.link, y.findings_id);
    APEX_DEBUG. MESSAGE (p_message = > 'INSERT the LOOP COUNTER': j);
    "exit";
    elsif y.ticket_ref_id > 0 then - existing record
    Update BCM_TICKET_REF
    adjustment tool = y.tool,
    ticket_ref = y.ticket_ref,
    link = y.link,
    findings_id = y.findings_id
    where ticket_ref_id = y.ticket_ref_id;
    APEX_DEBUG. MESSAGE (p_message = > 'UPDATE the LOOP COUNTER': j);
    "exit";
    on the other
    APEX_DEBUG. MESSAGE (p_message = > "NUTHIN'");
    "exit";
    end if;
    end loop;
    end;

    Present on - after calculations and validations

    BEGIN
    BCM_UPDATE_TICKET_REF;
    END;

    HA! Well it took me several tries, but I finally saw him, you have a 'out' right after insertion (and updated).  That could leave the loop and record #2 would never happen.

    Just remove it. In your case you are inserting/updating all your lines.

    -Jorge

  • How to use createRowSetIterator with 3 level master-detail?

    Hi experts,


    I use Jdev 12.1.3 and I need to iterate over objects in view of the AM lines (I have 3 level master-detail).

    With this code, I had access to the VO parent and create an iterator:

    ViewObjectImpl viewObject = getParentVO();  
    RowSetIterator rsIterator = viewObject.createRowSetIterator(null);  
    rsIterator.reset();  
    while (rsIterator.hasNext()) {  
       Row row = rsIterator.next();  
       // DO what do you want in Row  
    }  
    rsIterator.closeRowSetIterator(); 
    

    .. .but I don't know how to create iterators according to the parent of the child

    Any idea?

    Best regards
    Jose.

    OK, suppose that a relationship of master-detail Department and employees of the HR db schema. The link to the view that defines the master detail between the tables looks like

    The name of the accessor is EmployeesView. In the t generate line interfaces, including the accessors

    Make the avlailable of the accessor to the VO clinet interface

    and now you can iterate the children lines as

    private static ADFLogger _logger is ADFLogger.createADFLogger (DepartmentsViewImpl.class);.

    public void dummyTest() {}

    get the first line of the departmetns

    Line first = this.first ();

    DepartmentsViewRow depRow = (DepartmentsViewRow);

    lines children handler for employees

    RowIterator empView = depRow.getEmployeesView ();

    iterate over employees of the Prime Ministry

    Line row2 = empView.first ();

    While (row2! = null) {}

    do something with line 2

    _logger.info ("Emp:" + row2.getAttribute (0));

    row2 = empView.next ();

    }

    }

    This method is implemented in the DepartmentsViewImpl class.

    Timo

  • Problem with vertical scroll bar of the block master detail

    Have a TC of canvas by tabs with 3 tabs - tab A, B and C

    Tab C contains a block of master child multi. Each block can display 5 records.

    C tab

    -> Master Block can display 5 records

    -> Child block can show 5 records. Child block has nearly 20 columns to display. It is therefore a big canvas

    question

    It comes with vertical toolbars on Master Block and child block.

    The horizontal toolbar works very well.

    But if there are more than 5 records, we are not able to scroll the vertical toolbar.

    Remember reading somewhere that for a block of single bar scrolling can be active. Please specify if this is correct and indicate what are the appropriate actions that we can take.

    Thank you

    951614 wrote:

    But if there are more than 5 records, we are not able to scroll the vertical toolbar.

    You have a separate master and detail block, right scroll bar?

    If so, then which bar scroll creating problem for you, master? detail? or both?

    Make sure you have the block with the appropriate scroll bar card, it can possible you have set the bar of scrolling detail with master block and main scroll bar with detail block.

    951614 wrote:

    Remember reading somewhere that for a block of single bar scrolling can be active. Please specify if this is correct and indicate what are the appropriate actions that we can take.

    It is not correct.

    You used the scroll bar with individual block. There is no restriction.

  • Master detail relationship with condition enforcement in the secondary table

    Hello

    I have two tables are Dept (Master), PMCs (Detail). I have to show emp details with somewhere condition.

    Ex;

    I have a "Dept_effect_date" field in the dept table. When I m showing PGE details in the Details view, it must the EMOS who are hired after the dept_effect_date.

    Sainaba.

    Hello

    The request of the employees table looks very good. Although it seems more logical to get the service id of the employeesEO instead of DepratmentsEO.

    The next step should be to create a viewLink between the DepartmentsVO and the EmployeesVO based on the service ID field.

    Once you have done this, add the EmployeesVO as a DepartmentsVO child in yout request module (and it will appear as such in the DataControl), so use these your to create master/detail table.

    Updating the data based on the selected master will be automatically managed by ADF.

    Kind regards

    Elias.

  • Master with several details

    Dear all,

    I use Apex 4.2, oracle database 11g R2 and internet explorer 9.

    I have three tables, A, B and C.

    A is the main table.

    B and C are tables of details for A.

    How could I create a master with 2 details form so that data entry are possible in the details of these two?

    I have search the Internet, but am not with that.

    kindly Guide accordingly.

    Kind regards.

    Hai,

    Now you can connect my application, see the mother of passage key to another table of two child and use it. your page needs: http://apex.oracle.com/pls/otn/f?p=32172:19

    How to use my application?

    * Download the script > open the text file > change all schema name > run

    * Download the data of my link (Ramani_vadakadu June 25, 2013 16:17), inserted into the DMS_TOPMGT_PROCESSES table.

    export enforcement > run >homeApplication BuilderApplication 32172components sharedauthorization schemes consult users

    * Run the application, it will work very well.

Maybe you are looking for