Reg:Master Child Details - AdvancedTable

Team,
I have a below requirement.
1.Dept (Master Table)
2.Emp (Child Table)
I implemented above design in Advanced Table in Master-Child Fashion.
Please suggest me how to implement the below requirement .
1. I should allow the user add rows in Child Table. But For Dept(*IT*), i should render the child table as either read only or disable Add Row Button.
2. Can we implement dependent poplist in Master-Child Table ?
Regards
Sridhar

Sridhar
I know u Discuss about Master Detail page.
When User Select row of Master table a Event is fire we capture that event and find out That Dept name of that perticular row if Dept is IT then we Set SPEL value of Detail Table is true for Read only.
I hope it will Help U
Azad

Similar Messages

  • Office 2013 - SharePoint Web App: How can I link a subform on two Master/Child controls?

    I have a form in which I have placed a subform in a SharePoint Web App.
    I also have 2 controls on the form, from which I'd like to link to two columns on the subform.  How can I have two Master/Child linking relationships to a subform. 
    In Access desktop, it is done in a window "Subform Field Linker", like this:
    Master Fields:          Child Fields:
    <sorry I could not include a link until my account is verified>
    Thanks,
    Keith

    Hi Bruce,
    >>Are subforms in web apps different in this regard?<<
    Yes, there are two kinds of database. In an on-premise environment, Access 2013 apps are hosted by SharePoint 2013 while the data is stored in SQL Server 2012. SharePoint 2013 provides authentication, authorization, and security for Access 2013 apps.
    The back-end tables, views, macros, and queries are stored in a SQL Server 2012 database.
    You can get more detail about Access 2013 web app from link below:
    What's new for Access 2013 developers
    How to: Create and customize a web app in Access 2013
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Master table, detail table, detail table not getting refreshed selection

    i have a page where i am displaying data as master table and detail table. both table VOs are based on SQL queries which use bind variables.
    i have a view link between vos of type 1:M
    i created master table detail table page by dropping detail iterator from data control panel under master and selecting master table detail table
    on my page i see detail table records getting populated only for first record of parent table.
    on changing parent record, child table shows same records and does not refresh
    i am using partial triggers on both tables to be populated on a button click as i need to pass some bind variables to VOs which are taken as input from users
    how can i show corresponding rows in detail table when parent record in table changes
    will i have to use table selection listener
    is it possible declaratively to have master detail table view when both VOs have bind variables
    jdev 11 1 1 5

    these are the SQLs used
    Parent SQL Based VO Query
    SELECT to_char(d.status_date,'yyyymmddhh24') TIME123, count(DISTINCT d.c4)
    FROM t1 d,
    t2 w
    WHERE w.c1 = nvl(:ou, w.c1)
    AND UPPER(w.c2) = UPPER(nvl(:tt, w.c2))
    AND d.c3 >= :startTime AND :startTime IS NOT NULL
    AND d.c3 <= :endTime AND :endTime IS NOT NULL
    AND d.c4 = w.c4
    AND UPPER(d.status) = 'CLOSED'
    GROUP BY to_char(status_date,'yyyymmddhh24') ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    Child SQL Based VO Query
    SELECT w.c1,
    w.c5 - w.c6 processing_time,
    w.c3,
    w.c6,
    w.c7,
    w.c8,
    to_char(d.status_date,'yyyymmddhh24') TIME123 FROM t1 d,
    t2 w
    WHERE w.c2 = nvl(:ou, w.c2)
    AND UPPER(w.c3) = UPPER(nvl(:tt, w.c3))
    AND d.c4 >= :startTime AND :startTime IS NOT NULL
    AND d.c4 <= :endTime AND :endTime IS NOT NULL
    AND d.c1 = w.c1
    AND UPPER(d.status) = 'CLOSED' ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    view link is based on column TIME123

  • Master table detail table with SQL based read only VO with bind variables

    i have a page where i am displaying data as master table and detail table. both table VOs are based on SQL queries which use bind variables.
    i have a view link between vos of type 1:M
    i created master table detail table page by dropping detail iterator from data control panel under master and selecting master table detail table
    on my page i see detail table records getting populated only for first record of parent table.
    on changing parent record, child table shows same records and does not refresh
    i am using partial triggers on both tables to be populated on a button click as i need to pass some bind variables to VOs which are taken as input from users
    how can i show corresponding rows in detail table when parent record in table changes
    is it possible declaratively to have master detail table view when both VOs have bind variables
    jdev 11 1 1 5
    these are the SQLs used
    Parent SQL Based VO Query
    SELECT to_char(d.status_date,'yyyymmddhh24') TIME123, count(DISTINCT d.c4)
    FROM t1 d,
    t2 w
    WHERE w.c1 = nvl(:ou, w.c1)
    AND UPPER(w.c2) = UPPER(nvl(:tt, w.c2))
    AND d.c3 >= :startTime AND :startTime IS NOT NULL
    AND d.c3 <= :endTime AND :endTime IS NOT NULL
    AND d.c4 = w.c4
    AND UPPER(d.status) = 'CLOSED'
    GROUP BY to_char(status_date,'yyyymmddhh24') ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    Child SQL Based VO Query
    SELECT w.c1,
    w.c5 - w.c6 processing_time,
    w.c3,
    w.c6,
    w.c7,
    w.c8,
    to_char(d.status_date,'yyyymmddhh24') TIME123 FROM t1 d,
    t2 w
    WHERE w.c2 = nvl(:ou, w.c2)
    AND UPPER(w.c3) = UPPER(nvl(:tt, w.c3))
    AND d.c4 >= :startTime AND :startTime IS NOT NULL
    AND d.c4 <= :endTime AND :endTime IS NOT NULL
    AND d.c1 = w.c1
    AND UPPER(d.status) = 'CLOSED' ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    view link is based on column TIME123

    Instead of doing the master-detail layout by dragging the details over, can you try a new page where you first drag the master VO over and then drag the detail VO over, and then set partialTrigger from the detail to point to the master?

  • MASTER-CHILD REPORT in JASPER REPORT

    Hi,
    How can i print a Master and Two child details in a Pre Printed Bill using Jasper Reports?
    Please give me some guid lines to achive this.
    Thanks
    Suresh

    http://forum.java.sun.com/thread.jspa?threadID=692499
    Cross-post.
    And please note that this is not a Jasper Reports support forum.

  • Master-Child-Grand Child problem [Solved]

    I've created a form with one master, a detail for this master and a detail for the detail (next generation too is created!). Once i query the master, the detail and the subsequent generations automatically show the required data, but if i click on the child (Generation 1) the data in the child and the subsequent generations is lost. Is this a form bug? Am I not supposed to use multiple generations in a single form - because it is too convenient!
    Message was edited by:
    Sudhamshu
    Subject changed to notify that the error was solved

    Hi Gerd,
    I apologise for the partial information provided. The problem occurs with a mouse-click and not keyboard movement.
    Let me explain briefly. I have 3 data blocks A, B and C.
    A -> Master block. (No of records displayed 2)
    B -> Detail block of A (No of records displayed 5)
    C -> Detail block of B (No of records displayed 10)
    I query the block A and the blocks B & C get populated with respective values for the first record in A. Now i'd like to view the values in block C corresponding to the 2nd record in B. If i navigate through blocks (from A to B)using keyboard everything is fine. But if I simply click on record #2 of block B, the records in blocks B & C disappear. I have to requery A and then navigate using keyboard only.
    I hope i could explain the problem clearly.
    Thanks,
    Sudhamshu

  • Maintaining Master-Child relationship during ODI transformation

    ODI Gurus
    For following requirement, we need the best approach to transform data from Source to Target instance(Both Source and Target instances are running on Oracle Database)
    Tables in Source Instance
    a) Source_Master
    b) Source_Detail (One to many relationship with Source_Master)
    Tables in Target Instance
    a) Target_Master
    b) Target_Detail (One to many relationship with Target_Master)
    In ODI need to create interfaces to transform data from
    a) SOUCE_MASTER table to TARGET_MASTER table and
    b) SOUCE_DETAIL table to TARGET_DETAIL table
    NOTE: Value for Primary Key column in Target Instance tables Target_Master and Target_Detail are generated from Database Sequence.
    Once the transformation is completed using ODI, the master-child relationship should be maintained in Target Instance between Target_Master and Target_Detail table. How do we achieve this in ODI ?
    Thanks
    Uma Shankar

    For this, create the first interface for MASTER, in the mapping for the primary key you should map the database sequence, something like: MYSCHEMA.MYSEQUENCE_NEXTVAL.
    Create the second interface for DETAIL, and on the sources pane of the interface, drag the SOURCE_DETAIL and TARGET_MASTER datastores. Make the joing between the two using the keys from the source. In the Primary key mapping of the DETAIL_TARGET make sure you select the new PRIMARY KEY of the TARGET_MASTER, mapping in staging area. This "lookup" will be done in the target data server.
    If you are going to be doing updates and inserts in the target, you should make sure you set the Update Key selected for each of the targets to the same keys as on the source (obviously you won't have the target values!)
    If you are not going to do any updates, then use the IKM SQL Control Append rather than the incremental update IKM.
    You can optionally set the COMMIT option of the first interface to NO, and only commit on completion on the second interface if you want to ensure the full 'all or nothing' transactionality - but bear in mind, large volumes of uncommitted changes use resources....

  • Pagination for Master Form, Detail Table

    Hi,
    I am using JDev11.1.2.1.0
    I am creating a page having master detail relationship (master as a form and detail as a table). On click of First, Prev, Next, Last pagination button of master should change the data and refresh child table data.
    So created a Master VO & Child VO joined with View Link and dragged into page as Master form, Detail table. But during pagination, NEXT works once, then it seems to stop there. LAST works and FIRST & PREVIOUS seem to both go to the first record.
    Can anyone suggest me when I went wrong.

    Yes Frank, its st. forward use case. I tired with master table with detail table works fine but master form with details table behaviors differently.
    Below snippet of code in JSPX page master form detail table as shown below :
    <af:panelFormLayout id="pfl6">
    <af:panelLabelAndMessage label="Name:" id="plam1">
    <af:outputText value="#{bindings.EMP_NAME.inputValue}" id="ot2"/>
    </af:panelLabelAndMessage>
    <af:panelGroupLayout id="pgl15" layout="horizontal">
    <af:commandButton text="First"
    disabled="#{!bindings.First.enabled}"
    partialSubmit="true" id="cb1"
    actionListener="#{bindings.First.execute}"/>
    <af:commandButton text="Previous"
    disabled="#{!bindings.Previous.enabled}"
    partialSubmit="true" id="cb2"
    actionListener="#{bindings.Previous.execute}"/>
    <af:commandButton text="Next"
    disabled="#{!bindings.Next.enabled}"
    partialSubmit="true" id="cb3"
    actionListener="#{bindings.Next.execute}"/>
    <af:commandButton text="Last"
    disabled="#{!bindings.Last.enabled}"
    partialSubmit="true" id="cb4"
    actionListener="#{bindings.Last.execute}"/>
    </af:panelGroupLayout>
    </af:panelFormLayout>
    <af:table rows="#{bindings.EmpSchemesViewObj1.rangeSize}"
    fetchSize="#{bindings.EmpSchemesViewObj1.rangeSize}"
    emptyText="#{bindings.EmpSchemesViewObj1.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row" styleClass="AFStretchWidth" autoHeightRows="5"
    columnStretching="column:c2"
    value="#{bindings.EmpSchemesViewObj1.collectionModel}"
    rowBandingInterval="0" contentDelivery="immediate"
    selectedRowKeys="#{bindings.EmpSchemesViewObj1.collectionModel.selectedRow}"
    selectionListener="#{bindings.EmpSchemesViewObj1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1"
    partialTriggers="::cb1 ::cb2 ::cb3 ::cb4">
    <af:column headerText="#{msg.LONG_NM}"
    sortProperty="#{bindings.EmpSchemesViewObj1.hints.REGISTERED_NAME.name}"
    sortable="false" id="c1">
    <af:outputText value="#{row.REGISTERED_NAME}" id="ot9"/>
    </af:column>
    </af:table>
    Edited by: 879073 on Jan 22, 2013 3:36 AM

  • Displaying master child relationship using datatable??

    Hello,
    I want to display master child data using a datatable or a datalist or any other component ( if can be used for this purpose )....I mean i have a particular role and the nominees in that particular role to be displayed...how can this be achieved....any suggestions....thanks in advance.
    thanks & regards,
    Gaurav.

    For this, create the first interface for MASTER, in the mapping for the primary key you should map the database sequence, something like: MYSCHEMA.MYSEQUENCE_NEXTVAL.
    Create the second interface for DETAIL, and on the sources pane of the interface, drag the SOURCE_DETAIL and TARGET_MASTER datastores. Make the joing between the two using the keys from the source. In the Primary key mapping of the DETAIL_TARGET make sure you select the new PRIMARY KEY of the TARGET_MASTER, mapping in staging area. This "lookup" will be done in the target data server.
    If you are going to be doing updates and inserts in the target, you should make sure you set the Update Key selected for each of the targets to the same keys as on the source (obviously you won't have the target values!)
    If you are not going to do any updates, then use the IKM SQL Control Append rather than the incremental update IKM.
    You can optionally set the COMMIT option of the first interface to NO, and only commit on completion on the second interface if you want to ensure the full 'all or nothing' transactionality - but bear in mind, large volumes of uncommitted changes use resources....

  • Doubt about  Master-Child relationships.

    Hello,
    I've a doubt about master-child relationships.
    Any row in the master table need to has at least one row in the child table. What do I guarantee that?
    Please, any ideas.
    Thnx.

    If im correct you are asking that any row in master table should have a corresponding child record in detail
    (transaction) table.
    WELL , There is no compulsion that the child table should have a record linking to record in master table.
    Master table is not depended on child table. Child table is dependent on data reference on master table.
    Pls note that Master table is independent of the child table ( in terms of data reference only) .
    This doesnt mean that if you want to delete the master records when child records exists. it gives an error in that case.
    check the following example
    SQL> create table master(n number primary key);
    Table created.
    SQL> insert into master values(1);
    1 row created.
    SQL> create table child(t number references master(n));
    Table created.
    Hello,
    I've a doubt about master-child relationships.
    Any row in the master table need to has at least one row in the child table. What do I guarantee that?
    Please, any ideas.
    Thnx.

  • Get all records in multi selected master child tables

    Hi,
    I am using JDeveloper 11.1.1.4 version and using ADF-BC in my project.
    I have a simple master child[one to many] relationship in my project.
    In my view page,I display this master child [Ex: EmpVo1--->DeptVo2] as tables.
    I have multi-slection enabled for master table.
    My requirement is that,on multi selecting the rows in master tables,I want to get all the child records in my backing bean.
    that is if a master row has 3 child records and another master row has 4 child records and on multiple selection of these two records in master table,I should get all the child records in my backing bean.
    I need this to implement cascade delete functionality.
    Following is sample piece of code
    1) called on selecting the rows in master table
    public void onRSCGrpSelect(SelectionEvent selectionEvent) {
    // Add event code here...
    ADFUtil.invokeEL("#{bindings.RscGroupVO1.collectionModel.makeCurrent}",
    new Class[] { SelectionEvent.class },
    new Object[] { selectionEvent });
    RowKeySet rowKeySet = (RowKeySet)tblRSCGrp.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)tblRSCGrp.getValue();
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding)cm.getRowData();
    Row row = rowData.getRow();
    System.out.println("\n" +
    row.getAttribute(0) + " :: " + row.getAttribute(1) +
    " :: " + row.getAttribute(2));
    System.out.println("Displaying Child Records");
    displayChildRecords(row.getAttribute(0));
    2. private void displayChildRecords(Object rscGrp) {
    ViewObject rscMapVo = getRscMapViewObj();
    RowSetIterator rsI = rscMapVo.createRowSetIterator(null);
    while (rsI.hasNext()) {
    Row row = rsI.next();
    System.out.println("\n" +
    row.getAttribute(0) + " :: " + row.getAttribute(1) +
    " :: " + row.getAttribute(2));
    rsI.closeRowSetIterator();
    But the problem is that ,it is always giving me the last selected rows child record details
    Please suggest the error I am doing.
    Thanks,
    Praveen

    Your problem is that you use makecurrent, which should not be used on a multi select table. Next if you have master detail relationship you should have a view link between them. In this case you can expose a method in you master to get the related child row. No need to get the VO itself as you can use the child iterator accessors to get the child record.
    public void onRSCGrpSelect(SelectionEvent selectionEvent) {
    // Add event code here...
    RowKeySet rowKeySet = (RowKeySet)tblRSCGrp.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)tblRSCGrp.getValue();
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding)cm.getRowData();
    Row row = rowData.getRow();
    //cast to the right row class
    EmpEmpVoRow empRow = (EmpEmpVoRow) row;
    // now you cann access the child row iterator
    RowSetIterator it = empRow.getDepVO();
    //now you cna iterate over the child rows
    System.out.println("\n" +
    row.getAttribute(0) + " :: " + row.getAttribute(1) +
    " :: " + row.getAttribute(2));
    System.out.println("Displaying Child Records");
    //use hte child rows here
    }Not sure if the code compiles out of the box (doing this on the train :-)
    Timo

  • Not getting the child details

    Hi Friends,
    Iam implementing a master detail page.
    Here I have taken two sequences...one(emp id sequence)  for emp  custom table and  one (dependent id) for family details.
    empid is common column for them. Based on this empid I should get child details (family details)
    In my search page,create/update page  Iam getting the master details , but Iam not able to get child details for the  selected employee.
    I have created a ASSOCIATION  say EmpFamAO  between two EO's (emp table    and   family details table)...................Based on empid column
    AND
    I have created a VIEW LINK  between this EO's  from master (EmpFamAO) left side  and child(EmpFamAO) right side of the view link editor
    But the issue is Iam not getting this common column (emp id) in my child table when querying  therfore Iam not getting related child details...when Iam clicking on details icon or update icon .
    Let me know for any clarifications.
    Thank you.
    Aravinda.

    Hi Aravind just you have to fallow these methods.
    public void createEmployee()
            EmpHeadersEOVOImpl hVo = getEmpHeadersEOVO();
            OADBTransaction tr = getOADBTransaction();
            if(!hVo.isPreparedForExecution())
                hVo.executeQuery();
            Row row = hVo.createRow();
            hVo.insertRow(row);
            row.setNewRowState(Row.STATUS_INITIALIZED);
            Number empId= tr.getSequenceValue("KSK_EMP_ID_SEQ");
            hVo.getCurrentRow().setAttribute("EmpId", empId);
        public void createEmpFamily()
            EmpFamilyEOVOImpl sfVo = getEmpFamilyEOVO();
            EmpHeadersEOVOImpl ehVo = get EmpHeadersEOVO();
            OADBTransaction tr = getOADBTransaction();
            sfVo.setMaxFetchSize(0);
            Row row = sTVo.createRow();
            sfVo.first();
            sfVo.insertRow(row);
            row.setNewRowState(Row.STATUS_INITIALIZED);
            Number familyId= tr.getSequenceValue("KSK_FAMILY_ID_SEQ");
            String empId = ehVo.getCurrentRow().getAttribute("StudentId").toString();
            sfVo.getCurrentRow().setAttribute("FamilyId", familyId);
            sfVo.getCurrentRow().setAttribute("EmpId", empId);
    now above first method show for master table and
    second one show Child Creation methos
    so in that method we are inserting empid into Child table and inserting child id also.
    So now your requirement will fullfill.
    Let me know if required any details.
    Thanks
    San
        public void save()
            OADBTransaction tr = getOADBTransaction();
            tr.commit();

  • Master Child Table

    Hi,
    I am using JDeveloper 11.1.1.4 version.
    In my page I have master child relation to be displayed.
    I am displaying this by following the standard adf-bc master child example.
    i.e add the id of the master child as partialTrigger to the child table.
    But my requirement is that, multiple row selection is enabled for the master table and when multiple rows are selected in master table,
    child table should not display any records.
    How can I achieve this??
    Also,I have a details panel displayed right under master table which displays selected row values in a form.
    Here also,when multiple rows are selected,I should not display any values in the details panel.
    Please advice on how to achieve this.
    Thanks,
    Praveen

    Hi,
    have a selection listener set on tabe to bean method and in bean getAllSelectedRowKeys from table. If you get more than or equal 2 entries hide the detail panel or write code so that u reresh ur detail vo to contain no rows

  • XSQL Master Child

    Dear All,
    I need to develop the reports using XSQL. Generate the report as master child table relation wise.
    I will give sample format of my report.
    <MasterVaue>
    <child-value></childvalue>
    </mastervalue>
    i.e
    each department wise i want show the employee names
    How we can achive in XSQL in ADF
    TIA

    Hi,
    Can anyone helpout me.
    - <ROWSET>
    - <ROW num="1">
    <DEPTID>100</DEPTID>
    <EMP_ID>82</EMP_ID>
    <NAME>Ganesh</CHGVALUE>
    </ROW>
    - <ROW num="2">
    <DEPTID>100</DEPTID>
    <EMP_ID>85</EMP_ID>
    <NAME>Rajesh</CHGVALUE> </ROW>
    </ROWSET>
    - <ROW num="2">
    <DEPTID>101</DEPTID>
    <EMP_ID>81</EMP_ID>
    <NAME>Raju</CHGVALUE> </ROW>
    </ROWSET>
    Here i need <DEPTID> wise employee details
    TIA

  • Master Child tables how to get the latest rows from both

    Hi,
    Need some help with the sql. I have two tables Master & Child. In my Master table I have multiple rows for the same record and in the child table also multiple rows for the same master row how can I get the latest one's from both.
    For example Data in my Master table looks like
    CONT_ID                  SEQ_NUM        DESCRIPTION
    1                         189             Update 2
    1                         188             Update 1
    1                         187              NewNow in the child table for the same CONT_ID I may have the following rows
    CONT_ID                   UPDATED_DATE                                     STATUS
    1                        3/16/2010 2:19:01.552700 PM                          P
    1                        3/16/2010 12:29:01.552700 PM                         A
    1                        3/16/2010 12:29:01.552700 PM                         P
    1                        3/16/2010 12:19:01.552700 PM                         NIn my final query how can I get the row with seq_num 189 as it's the latest in Master table and from child table the row with status of P as it's the latest one based on the time. Here is the query i have but it returns the latest row from the child table only and basically repeats the master table rows as opposed to one row that is latest from both:
    Thanks

    Hi,
    You can use the analytic ROW_NUMKBER function to find the latest row for each cont_id in each table:
    WITH     got_m_rnum     AS
         SELECT     cont_id,     seq_num,     description
         ,     ROW_NUMBER () OVER ( PARTITION BY  cont_id
                                   ORDER BY          seq_num     DESC
                           ) AS m_rnum
         FROM    master_table
    --     WHERE     ...     -- any filtering goes here
    ,     got_c_rnum     AS
         SELECT     cont_id, updated_date,     status
         ,     ROW_NUMBER () OVER ( PARTITION BY  cont_id
                                   ORDER BY          updated_date     DESC
                           ) AS c_rnum
         FROM    child_table
    --     WHERE     ...     -- any filtering goes here
    SELECT     m.cont_id,     m.seq_num,     m.description
    ,     c.updated_date,     c.status
    FROM     got_m_rnum     m
    JOIN     got_c_rnum     c     ON     m.cont_id     = c.cont_id
                        AND     m.m_rnum     = c.c_rnum
                        AND     m.m_rnum     = 1
    ;If you'd like to post CREATE TABLE and INSERT statements for the sample data, then I could test this.
    If there happens to be a tie for the latest row (say, there are only two rows in the child_table with a certain cont_id, and both have exactly the same updated_date), then this query will arbitrarily choose one of them as the latest.

Maybe you are looking for