JSP, getting Master-Detail to work

JDeveloper 3.2.3
JSP, getting Master-Detail to work
- I've made a project with a master table Dept and a detail table Emp via the wizards. Automatically views for both are made.
- Secondly i created an association between Dept and Emp (based on the field Deptno), the association is exposed to both entities.
- I followed the Help example 'Creating Maser-Detail JSP Pages Using Data Web Beans'.
4 Data Web Beans are created with this example
* NavigationBar Master
* ViewCurrentRecord Master
* NavigationBar Detail
* RowSetBrowser Detail
The resulting JSP page shows, unfortunately, no link between the master and the details.
For one department all employees (of all departments) are shown.
What do i have to do to make the JSP Master-Detail work with JDeveloper
Thanx in advance
Lion Smiers

I resolve my problem to create a third level detail as viewobject as a own instance, without link to second level detail (as I supposed it to work). And manually make a new search with where clause inside working detail iterate loop (below).
I still wonder, is there any way to automatically update second details current row, which might also update third level details information as sophisticated way?
my solution to show third level in master-detail-detail information.
inside first details loop...
<jbo:ApplicationModule id="MyService" definition="DataBindings.MyServiceDataControl" releasemode="Stateless"/>
<%-- search criteria from detail --%>
<c:set var="whereLauseIn" value="MYKEY_ID = '${Row['secondId']}'" scope="page" />
<jbo:DataSource id="Lausu" appid="MyService" viewobject="ViewObjMyThirdDetailInst" whereclause="<%=pageContext.getAttribute(\"whereLauseIn\")%>" rangesize="-1"/>
<jbo:RowsetIterate datasource="Lausu" changecurrentrow="true">
<tr>
<td >
<jbo:ShowValue datasource="Lausu" dataitem="Col1" ></jbo:ShowValue> 
</td>
<td>
<jbo:ShowValue datasource="Lausu" dataitem="Col2" ></jbo:ShowValue> 
</td>
<td>
<jbo:ShowValue datasource="Lausu" dataitem="Col3" ></jbo:ShowValue> 
</td>
<td >
<jbo:ShowValue datasource="Lausu" dataitem="Col4" ></jbo:ShowValue> 
</td>
</tr>
</jbo:RowsetIterate>
<jbo:ReleasePageResources />

Similar Messages

  • Af:tree with master-detail doesnt work

    Hi,
    I created master-detail(used updateable VO's) and test it from the application module and everything worked as expected.
    Now I try to show all master and detail data in af:tree component.
    At the runtime I can see only master data, but there's no detail data at all. I tried all of this before and everything worked fine, and now I cant get this work.
    <!-- jsf page page1.jspx-->
    <af:tree value="#{bindings.Master1.treeModel}"
    var="node">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}"/>
    </f:facet>
    </af:tree>
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.39.84" id="app_page1PageDef"
    Package="main.userinterface.pageDefs">
    <parameters/>
    <executables>
    <iterator id="Master1Iterator" RangeSize="10"
    Binds="Master1" DataControl="AppModuleServiceDataControl"/>
    </executables>
    <bindings>
    <tree id="Master1" IterBinding="Master1Iterator">
    <AttrNames>
    <Item Value="IdMaster1"/>
    <Item Value="Name"/>
    <Item Value="MasterValue1"/>
    <Item Value="MasterValue2"/>
    <Item Value="MasterValue3"/>
    </AttrNames>
    <nodeDefinition DefName="main.datamodel.queries.Master1"
    id="Master1Node">
    <AttrNames>
    <Item Value="MasterValue1"/>
    </AttrNames>
    <Accessors>
    <Item Value="Detail1"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="main.datamodel.queries.Detail1"
    id="Detail1Node">
    <AttrNames>
    <Item Value="DetailValue1"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Thank you in advance.
    Alex

    Note, that PanelCollection is a naming container. So if you have wrapped your table in a PanelCollection you will have to add PanelCollection's ID to master table's ID when refering the master table as a partial trigger for the detail one. For example, if the value of detail table's partialTriggers attribute has been <tt>partialTriggers="::masterTable"</tt> now it should become <tt>partialTriggers="::pnlColl:materTable"</tt> (supposing that PanelCollection's ID is <tt>pnlColl</tt>).

  • Master-details fails working after exportCollectionActionListener init

    hi,
    in application developed in jdev 11.1.2.3, in bounded task flow i have a standard master table-detail table page generated by default wizard.
    on master table i defined an export-to-excel button:
    <af:commandButton text="To Excel" id="cb1">
    <af:exportCollectionActionListener type="excelHTML" exportedId="t1" filename="file1.xls"/>
    </af:commandButton>
    in pagedef the underlying table's ChangeEventPolicy is ppr.
    <tree IterBinding="Tab2View1Iterator" id="Tab1View1" ChangeEventPolicy="ppr">
    when i start application ,master-detail works fine.
    if i press button to call export to excel, the ppr stops working.
    i.e. when i change record in master table, no refresh happens in detail table
    what can it be? isn't it an jdev bug nobody noticed before?
    can it be fixed somehow?

    Timo,
    when you say ppr component, could you provide an example, a piece of code?
    what i proved as a working cure is execute query on master...
    as i found out further, the problem is somehow related to region.
    after export to excel button is pressed, i try to refresh current page fragment by navigating to another fragment and back.
    then i receive an error: component region1:1:t1 is not registred for active data...server exception during PPR, #1
    (region1 is my region, t1 is defined in page fragment)

  • Master Detail stops working when i try to download a blob filed

    Hi All,
    I am working on Jdeveloper 11g.
    I have a master table with detail , the detail table has a blob field.
    when the user tries to download the blob field every thing works fine, but the master detail relation stops working , when the user clicks a row in the master table the detail is not refreshed.
    I have to refresh the whole page to start working again .
    This is the code I am using for download , along with fileDownLoadActionListener():
    public void researchDownloadAction(FacesContext ctx, OutputStream out) {
    ExternalContext ectx = ctx.getExternalContext();
    Row currentRow = ADFUtils.getIterator("Documents2Iterator").getCurrentRow();
    String fileName = (String)currentRow.getAttribute("FileName");
    BlobDomain content = (BlobDomain)currentRow.getAttribute("Content");
    Long length = content.getLength();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    response.setHeader("Content-Disposition", "attachment;filename=\"" + fileName + "\"");
    response.setContentLength(length.intValue());
    try {
    InputStream in = content.getBinaryStream();
    byte[] buf = new byte[1024];
    int count;
    while ((count = in.read(buf)) >= 0) {
    out.write(buf, 0, count);
    in.close();
    out.flush();
    out.close();
    ctx.responseComplete();
    catch (IOException ex) {
    System.out.println(ex.getMessage());
    ex.printStackTrace();
    Thanks.

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • 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

  • Master/detail doesn't work in IE

    I know this has been asked in other ways, but I can't find the answer to my particular situation. Why doesn't the master/detail list work in IE 8, but it does in Firefox? Here is the URL: http://www.boilerbuddy.com/rep_lookup_new.htm. For example, choosing CO should bring up a company listing.

    Try the following
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet">
    </head>
    <body>
    <div class="MasterDetail">
      <div spry:region="ds1BBrep4" class="MasterContainer">
        <select name="myselect" id="myselect" onChange="ds1BBrep4.setCurrentRowNumber(this.selectedIndex);">
          <option value="">Please chhose a state...</option>
          <option spry:repeat="ds1BBrep4" value="{State}" spry:setrow="ds1BBrep4">{State}</option>
        </select>
      </div>
      <div spry:detailregion="ds1BBrep4" class="DetailContainer">
        <div class="DetailColumn">{Rep}</div>
      </div>
      <br style="clear:both">
    </div>
    <script src="SpryAssets/SpryData.js"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js"></script>
    <script>
    var ds1BBrep4 = new Spry.Data.HTMLDataSet("data/rep_db.htm", "reps", {sortOnLoad: "State", sortOrderOnLoad: "ascending"});
    ds1BBrep4BBrep4.setColumnType("Rep", "html");
    </script>
    </body>
    </html>
    Gramps

  • Master-details problem: How to access the parent EO/VO in child side?

    Hello
    Refer to the reply of posting
    Re: How to insert  new records in Master and detail Forms.
    I have got the following questions
    The approach for setting the master-details relationship works well, however, in this example,
    I have overriden the create(AttributeList attributeList) method of VO2, so after calling
    DCBindingContainer dcb = ADFUtils.getDCBindingContainer();
    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO2");
    oper.execute();
    , it will enter the create() method of VO2, at this point, i can only access the argument attributeList
    which stored the key value that link up parent and child, however, how can i get the entire VO1
    for accessing the value of all VO1's attribute?
    Thanks

    Neon wrote:
    I have mapped a createInsert action in the blinding layerThis is OK.
    Neon wrote:
    Do you mean that i have to create createRow and insertRow action in blinding layer?No. The createInsert operation does just that
    Neon wrote:
    Or call these function in the VO overridden create() method?No. You can't do that.
    In conclusion, I don't understand why the accessor returns null. Maybe someone else can shed some light... ?:|
    One last suggestion from me is to try getting the VO1 directly from the AM instead.
    This should work - it is not a recommended practice through.
    Use the following code:
    VO1RowImpl vo1 = (VO1RowImpl)this.getVO1();
    // ensure that the VO1 VL accessor is properly initialized
    if (vo1 == null) {
       vo1 = (VO1RowImpl)((YourApplicationModuleImpl)this.getApplicationModule()).getVO1().getCurrentRow();
    }

  • Problem w/ Nested Datasets and Master/Detail regions

    Hi, I'm being using spry for a couple of applications and
    really love it. This is the first time I've tried to utilize a
    nested dataset and I'm having some difficulty loading the nested
    data. I'm getting a js 'Object does not support this property or
    method' error in IE and a 'Failed to retrieve data set (dsCreds)
    for spry:repeat' in FF.
    I've tried to map examples to my application but of course
    it's slightly different. I have a master/detail region dynamically
    generated from a .php file and part of the detail region has the
    nested dataset. Maybe (hopefully) it's something obvious. I've
    broken out a test case that demonstrates what's happing - If anyone
    could take a look I would be extremely grateful!
    The .htm file is on:
    htm
    file
    The .PHP file that generates the dynamic XML is on:
    PHP
    file
    A sample .XML (generated from the .PHP file is
    Sample XML
    file
    Even without the Nested set getting generated the
    Master/Detail section works fine.
    Thanks so much for any help!
    Edit - Apologies for all the inline css - still developing
    :)

    Hi,
    The dataset name in the NestedDataSet constructor does not go
    in quotes.
    Try var dsCreds = new Spry.Data.NestedXMLDataSet(dsAgents,
    "credentials/cred");
    and see if that helps.
    Don

  • Master Detail Relation

    Can I design Master detail using one block for master and display like 5 records and each of this has 10 detail records. I am not sure if I can achieve this.
    Other scenario is have one master block(5 records) and have 5 detail blocks. Please give any information related

    Husna,
    1. To only show 5 reords in teh master block, just set the display record property to 5 (records displayed). Selecting one of teh master records queries the detail records (as many as there are available)
    2. Master/Detail navigation works only for the current selected master record. i get th eimpression that you want to show all detail records that belong to the five master records currently visible. If this is the case then I would'nt use a master-detail relation in Forms, but read the PK from the block record and set it as the where clause to one of the detail blocks.
    Frank

  • Master-detail  in forms 4.5

    I am trying to make a master-detail form work, but so far the details in the form does not correspond to the master block.
    What I did was
    1. created a primary key in table1
    2. created a foreign key in table2 referencing the primary key in table1
    3. created a new block (master block based on table1)
    4. created another block (detail block based on table2)
    5. under the tab master/detail of detail block I
    5.1 selected the master block from the block LOV
    then the "Join Condition" textbox automatically showed the relational keys
    or Join
    But when I ran the program, only the master block showed different records when navigating.
    Thanks for any help you can give.

    Bob,
    check the property palette of the relation node (build under the detail block) for the "deferred" property. This should be set to "no", otherwise the query only gets updated if you navigate into it.
    Frank

  • Limit on number of columns details of a master detail form/report

    Hi,
    I understand that there is a limit to the number of columns you can have in a master detail form/report. I am on Apex 4.01 and have a detail section that shows 24 months at a time as columns with integer hours assigned each month. My master detail was working fine with as many as 24 months/columns in this detail section, but I tried to re-use months by 'recycling' months, clearing them out of values and adding the months to the end of each row but now I am getting errors even though I had more columns showing before my 'recycliing' of the columns. The error is:
    "ORA-06502: PL/SQL: numeric or value error: character string buffer too small "
    What I don't understand is -- why am I getting this error now when I actually had more columns in the detail section months ago, and all I am doing is 'recycling' prior columns back into the detail report, not actually adding columns.
    Thanks for any insights anyone can give.
    Pat

    DBA tells me that we are at 9.0.2.2.14, (higher version than the one you suggested) but I still get the same error.
    Thanks,
    Karuna

  • Obiee 11g - Master/detail : How to initialize details ?

    Hi gurus,
    I'm using the last version of obiee.
    I have a dashboard with master/detail. The master/details are working great when I click on cells.
    But I have some "initialization" problems.
    - master/detail with a prompt list on the master table
    a change on the list won't initialize the detail. I would like to have the detail refreshed with the first row of the master.
    - master/detail with different order by on master and detail
    the initialization value of the detail does not fit with the first row of the master.
    Is it possible to achieve this ?
    Thanks in advance for your help.
    Emmanuel

    Hi Dpka,
    Thanks for sharing your view . I ,even observe the same 'error' message returining false value at the bottom-left of my browser when set up the Master detail even and clicked my table column to reflect the value in the graph .
    But my situation is bit tricky . I can't expose two different views to see if separating the interaction works well or not . In my case I have only 1 report with 4 compound layout(with pivot table(master) and Graph(detail)) having view selector . So this is practically not separable as this incurs loss of other functionalities.
    Do you have any suggestion in mind . I tried to see Supportweb and doesn't have any valid bug reported :(
    Rgds,
    DxP

  • Master Detail FK Problem

    I have created a Master/Detail set of pages. Using just the wizard. This is the option that creates 3 pages:
    1-Master Page
    2-Master Page detail, show a summary of the detail page
    3-Form for detail
    The data is being added to the database but the Master Page foreign key (master table fk) is not populating at all. I can see the data in the table, but the FK that points back to the Master table is blank.
    Having a real problem with this, please advise.

    Steve,
    Firstly, good luck for Gustav, keep your head down and hope it doesn't hit too hard. I was just in New Orleans for ODTUG and obviously would hate to see you guys go through something like that again.
    Secondly, I was just looking through the patch notes for Apex 3.1.2, and spotted these bugs had been fixed -
    6999393 - Master Detail Wizard creates processes with incorrect sequence
    7013435 - MRU process in Create Application Wizard-generated master detail not working correctly
    7016267 - 3 page Master Detail should not allow edit of Foreign Key Field on Detail PageI'm not sure if any of them directly related to your problem, but it could be worth looking them up in Metalink (those are the Bug numbers) to see if they are, or alternatively do the upgrade and see if it fixes your problem.
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • Master Detail Linking between Views

    Hi All,
    I have checked that Master Detail linking works between an Analysis and a Graph etc. But is it possible to have a Master Detail Linking between a Gauge and a Graph such that when I drill down on a Gauge my Graph should reflect the same results.
    Thanks.

    I'm facing the same issue.Has anyone worked on it?

  • Master-detail basics

    The JD3 "Creating a Tree Control" example found under Help/Help Topics/Tree Control and other Master/Detail examples work completely when used with with the Oracle 8i DEPT & EMP tables but not with tab1 & tab2 tables below. When using DEPT & EMP, JD see the data in both Master and Detail tables; When using tab1 & tab2, JD see only the data in Master (tab1).
    In contrast, SQL*PLUS sees the contents of both tab1 and tab2.
    drop table tab2;
    drop table tab1;
    create table tab1
    (col1 number(2) primary key,
    col2 varchar2(18));
    insert into tab1 values (1,'A');
    insert into tab1 values (2,'B');
    create table tab2
    (col1 number(2) primary key,
    col2 varchar2(18),
    col3 number(2) references tab1(col1));
    insert into tab2 values (1, 'X', 1);
    insert into tab2 values (2, 'Y', 1);
    How are tab1 and tab2 different from DEPT and EMP as far as JD is concerned? That is, how can I modify the the script above to create a tab1 and tab2 so that JD can see the contents of both.

    Are you sure you have defined an
    association (Join Condition) in the
    JDeveloper wizard which generated this.
    The Script which creates the default
    Scott/Tiger schema (Scott.sql) has the
    following:
    DROP TABLE DEPT;
    CREATE TABLE DEPT
    (DEPTNO NUMBER(2) CONSTRAINT PK_DEPT PRIMARY KEY,
    DNAME VARCHAR2(14) ,
    LOC VARCHAR2(13) ) ;
    DROP TABLE EMP;
    CREATE TABLE EMP
    (EMPNO NUMBER(4) CONSTRAINT PK_EMP PRIMARY KEY,
    ENAME VARCHAR2(10),
    JOB VARCHAR2(9),
    MGR NUMBER(4),
    HIREDATE DATE,
    SAL NUMBER(7,2),
    COMM NUMBER(7,2),
    DEPTNO NUMBER(2) CONSTRAINT FK_DEPTNO REFERENCES DEPT);
    You may want to look at scott.sql for more details.
    Sincerely,
    Oracle JDeveloper Team http://technet.oracle.com

Maybe you are looking for