Master detail report/form FK problem

Anyone...anybody!!!
I'm using APEX 4.0.1... and Oracle 10g.
I have two tables that are linked with FK in the detail table
Master table
ID_ENDURGR     NUMBER --PK populated with a trigger
KT_UMSAEKJANDI     VARCHAR2(10 BYTE)
TIMABIL     NUMBER
NUMER_UMSOKN     NUMBER
HEILDARKOSTNADUR     NUMBER
Detail table
ID_EIGENDUR     NUMBER --PK populated with a trigger
KENNITALA     VARCHAR2(10 BYTE)
EIGNARHLUTI     NUMBER
KOSTNADUR_VINNA     NUMBER
ENDURGR_ID_FK     NUMBER -- FK on ID_ENDURGR in the master table
If I create a application with a master detail page using the wizard, pages with a report and a tabular form are created. This works fine and the FK field in the detail table is automatically populated with the PK from the master table.
If I create an application with a blank page an on that page create a region > form > master detail > same tables >use existing triggers > default > Edit detail on separate page ... three new pages are created: Report, master form and a detail form.
If I create a new detail record with this application the FK field is not automatically populated.
Why? What am I doing wrong?
The trigger on the detail table:
create or replace
TRIGGER "bi_RSK_541_EIGENDUR"
before insert on "RSK_1018_EIGENDUR"
for each row
begin
if :new."ID_EIGENDUR" is null then
select "RSK_541_EIGENDUR_SEQ".nextval into :new."ID_EIGENDUR" from dual;
end if;
end;
Do I need to add something here... or what?
Please help.
Edited by: 805740 on 2.12.2010 07:14

Thanks for your reply. I have created my pages on apex.oracle.com
ws: RSK_APEX
user: demo
pwd: demo
There are two tabs. Different solutions on each one.

Similar Messages

  • Master details report/form

    Hi Friends,
    I want to create a Master-Detail report/form.
    I have one Master Table and it has 3 Detail tables.
    Example:
    Master Table: Members
    Detail Tables: Contributions
                   Loans
                   Benefit ClaimsI want to show when I click on a specific Member in the report edit , I can make entry/update to all
    the 3 detail tables. And not going each entry separately.
    Is this design requirement good?
    Thanks a lot

    You can look here on how to create multiple detail tables:
    http://htmldb.oracle.com/pls/otn/f?p=31517:163
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Error in Master-Detail report form

    Hi every one,
    I am a beginner to Oracle APEX, i am learning from this "Building an Application using Oracle Application Express: Part 1" tutorial, i went through this, but i got error while in detail field, from tutorial, detail table shows, tasks table, but in my detail field it doesn't shows tasks table, Please help me........
    Thankyou,
    Suresh

    Hello 942793 -- Do you have a name / nickname? -- We still don't know how to address you,
    Say, could you tell us -- because sometimes different versions have different capabilities:
    Full APEX version number,
    Full database version number,
    APEX web browser architecture (EPG, OHS, or APEX listener)
    Browser(s) and version(s) used,
    Operating System with version number and architecture (32/64 bit),
    [If you mentioned these before we don't have access to that info in this thread.]
    Also, are you using ARP (Automatic Row Processing) for this Master-Detail or have you programmed your own updates?
    Did you use an APEX wizard to create the Master-Detail or have you written you own code for the Master-Detail?
    To the problem:  In short, APEX is ensuring update consistency by preventing an update of a record/row that has changed since the code retrieved it.  So, one needs to figure out where/why it changed and what to do about it.
    ?  Is this Master-Detail part of you application fairly simple?  Could you put just that part out on apex.oracle.com for folks to look at?  That can speed resolution of these, sometimes difficult, update problems.
    Regards,
    Howard

  • Binds in Master/Detail Reports: Problems and Solutions

    I've been trying to use bind variables in the master report of master/detail reports with multiple detail reports; but, I've been getting a problem with the detail reports not displaying data.
    Here's a sample sequence of events:
    1) Select the master/detail report under User Defined Reports.
    2) Connect to a DB (if necessary).
    3) Enter any value(s) for the bind(s) for the master report.
    4) Select a row in the master report.
    5) The currently selected detail report displays column names and data.
    6) Select a different detail report.
    7) Nothing displays except column names.
    8) Select a different detail report.
    9) Nothing displays except column names.
    10) Click the currently selected row in the master report.
    11) Now the current selected detail report displays (column names and) data.
    I have found that if, I am more selective with my bind variable names, I can get things to work as expected.
    First, let me show an example of some SQL that was giving me problems.
    Master Report:
    select distinct OWNER
    from SYS.ALL_OBJECTS
    where (OWNER like :OWNER or :OWNER is NULL)
    Detail Reports:select *
    from SYS.ALL_OBJECTS
    where OWNER = :OWNER
    and OBJECT_TYPE = 'INDEX'replacing 'INDEX' with other values for the other detail reports.
    (I did have this problem with other SQL too but hopefully this SQL will run on everyone's DB.)
    The first solution I found was to change the name of the bind in the master to something like OWNER_BIND.
    The second solution I found was to change the master to
    select distinct OWNER as POWNERand change the detail reports to
    where OWNER = :POWNERAnother solution might be to adjust the bind variable names' case, but I didn't look at that.
    While I was trying different things to get this to work, one of the goofy things that SQL Developer did was add <binds>s to the <query>s of the detail reports in my UserReports.xml. IIRC, it even did this to a master/detail report that I was not editing. So, if you run into this problem, you might want to open your UserReports.xml and clean it up by hand. (Actually, that might be good advice for other problems too.)
    Tip: I've had other problems with my User Reports such as disappearing reports; so, not only do I regularly make copies my UserReports.xml, I also save report(s) into separate XML files and use Tools > Preferences... > Database > User Defined Extensions to add REPORT-type extensions to SQL Developer. (Kris Rice talked a bit about REPORT-type extensions in this blog entry: http://krisrice.blogspot.com/2006/11/xml-extension-points-reports.html)
    FYI: I'm using sqldeveloper-1.1.2.2579 on Windows XP w/ SP2. The DB is Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.

    Here is the complete XML exported from a problem report. If you want to use this, save it as an XML file then import that file from within SQL Developer (ie, right-click on User Defined Reports and choose Import).
    Notice that there are <binds>s on the detail reports. They don't belong there; only the one on the master report belongs. (The <binds> is specified by the Binds tab when creating a report. They are for prompting the user for value(s) and you cannot do that in child reports.) Even if I removed the <binds>s from the detail reports before importing the XML file, I still see the problem. SQL Developer also ends up putting them back. I think that it might happen to each detail report individually as it is visited when using (ie, not editing) the master/detail report.
    <?xml version="1.0" encoding="UTF-8" ?><displays><display id="" type="" style="Table" enable="true">
         <name><![CDATA[Sad]]></name>
         <description><![CDATA[]]></description>
         <tooltip><![CDATA[]]></tooltip>
         <drillclass><![CDATA[null]]></drillclass>
         <CustomValues>
              <TYPE>horizontal</TYPE>
         </CustomValues>
         <query>
              <sql><![CDATA[select distinct OWNER as OWNER
    from SYS.ALL_OBJECTS
    where (OWNER like :OWNER or :OWNER is NULL)]]></sql>
              <binds>
                   <bind id="OWNER">
                        <prompt><![CDATA[OWNER (like)]]></prompt>
                        <value><![CDATA[NULL_VALUE]]></value>
                   </bind>
              </binds>
         </query>
         <display id="null" type="Detail" style="Table" enable="true">
              <name><![CDATA[INDEX]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
              </CustomValues>
              <query>
                   <sql><![CDATA[select *
    from SYS.ALL_OBJECTS
    where OWNER = :OWNER
    and OBJECT_TYPE = 'INDEX']]></sql>
                   <binds>
                        <bind id="OWNER">
                             <prompt><![CDATA[OWNER]]></prompt>
                             <tooltip><![CDATA[OWNER]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
         <display id="null" type="Detail" style="Table" enable="true">
              <name><![CDATA[PACKAGE]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
              </CustomValues>
              <query>
                   <sql><![CDATA[select *
    from SYS.ALL_OBJECTS
    where OWNER = :OWNER
    and OBJECT_TYPE = 'PACKAGE']]></sql>
                   <binds>
                        <bind id="OWNER">
                             <prompt><![CDATA[OWNER]]></prompt>
                             <tooltip><![CDATA[OWNER]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
         <display id="null" type="Detail" style="Table" enable="true">
              <name><![CDATA[PACKAGE BODY]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
              </CustomValues>
              <query>
                   <sql><![CDATA[select *
    from SYS.ALL_OBJECTS
    where OWNER = :OWNER
    and OBJECT_TYPE = 'PACKAGE BODY']]></sql>
                   <binds>
                        <bind id="OWNER">
                             <prompt><![CDATA[OWNER]]></prompt>
                             <tooltip><![CDATA[OWNER]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
         <display id="null" type="Detail" style="Table" enable="true">
              <name><![CDATA[SEQUENCE]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
              </CustomValues>
              <query>
                   <sql><![CDATA[select *
    from SYS.ALL_OBJECTS
    where OWNER = :OWNER
    and OBJECT_TYPE = 'SEQUENCE']]></sql>
                   <binds>
                        <bind id="OWNER">
                             <prompt><![CDATA[OWNER]]></prompt>
                             <tooltip><![CDATA[OWNER]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
         <display id="null" type="Detail" style="Table" enable="true">
              <name><![CDATA[TABLE]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
              </CustomValues>
              <query>
                   <sql><![CDATA[select *
    from SYS.ALL_OBJECTS
    where OWNER = :OWNER
    and OBJECT_TYPE = 'TABLE']]></sql>
                   <binds>
                        <bind id="OWNER">
                             <prompt><![CDATA[OWNER]]></prompt>
                             <tooltip><![CDATA[OWNER]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
    </display>
    </displays>

  • Problem in Master detail report

    Hi Team,
    I want to generate a master detail- report on table employees(empno,ename,sal,jobid,deptno,deptname,dept_mobileno,dept_pincode).
    The report should be display in the format which is shown in the image present at URL:- http://www.uploadup.com/di-DC37.jpg
    For each unique combination of columns (empno,ename,sal,jobid) , i want to display the detailed records ( more than one ) (deptno,deptname,dept_mobileno,dept_pincode).
    Please see the image present at URL :- http://www.uploadup.com/di-DC37.jpg
    Please help me on this how to edit templates for my requirement and what sql query is required to solve this problem.
    Thanks and Regards,
    Rajendra Yadav

    913508 wrote:
    Hi Team,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "913508".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    I want to generate a master detail- report on table employees(empno,ename,sal,jobid,deptno,deptname,dept_mobileno,dept_pincode).
    The report should be display in the format which is shown in the image present at URL:- http://www.uploadup.com/di-DC37.jpg
    For each unique combination of columns (empno,ename,sal,jobid) , i want to display the detailed records ( more than one ) (deptno,deptname,dept_mobileno,dept_pincode).
    Please see the image present at URL :- http://www.uploadup.com/di-DC37.jpg
    Please help me on this how to edit templates for my requirement and what sql query is required to solve this problem.Thanks for making the effort to create the demo screenshots, they're helpful but with APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Please create sample tables and data on apex.oracle.com and post guest developer credentials for your workspace here.
    +{message:id=9816577}+ covers a similar problem.

  • MASTER -DETAILS ENTRY FORMS PROBLEM

    THIS IS MY TABLE, HOW I WILL MASTER -DETAILS ENTRY FORMS IN APEX.
    PLEASE HELP
    CREATE TABLE BUY_INFO_MST
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12),
    ITEM_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)
    CREATE TABLE BUY_INFO_DTL
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12) ,
    ITEM_CODE VARCHAR2(3) NOT NULL,
    ITEM_DETAILS_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    ROLL VARCHAR2(3) ,
    UNIT_CODE_M VARCHAR2(3) ,
    UNIT_CODE_I VARCHAR2(3) ,
    QUANTITY_M NUMBER(10,4) ,
    QUANTITY_I NUMBER(10,4) ,
    UNIT_PRICE NUMBER(15,4) ,
    BUY_AMOUNT NUMBER(15,4) ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO_DTL PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,ITEM_DETAILS_CODE, BUY_DATE),
    CONSTRAINT FK_BUY_INFO_DTL FOREIGN KEY(SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)REFERENCES BUY_INFO_MST
    JAHANGIR

    THIS IS MY TABLE, HOW I WILL MASTER -DETAILS ENTRY FORMS IN APEX.
    PLEASE HELP
    CREATE TABLE BUY_INFO_MST
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12),
    ITEM_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)
    CREATE TABLE BUY_INFO_DTL
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12) ,
    ITEM_CODE VARCHAR2(3) NOT NULL,
    ITEM_DETAILS_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    ROLL VARCHAR2(3) ,
    UNIT_CODE_M VARCHAR2(3) ,
    UNIT_CODE_I VARCHAR2(3) ,
    QUANTITY_M NUMBER(10,4) ,
    QUANTITY_I NUMBER(10,4) ,
    UNIT_PRICE NUMBER(15,4) ,
    BUY_AMOUNT NUMBER(15,4) ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO_DTL PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,ITEM_DETAILS_CODE, BUY_DATE),
    CONSTRAINT FK_BUY_INFO_DTL FOREIGN KEY(SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)REFERENCES BUY_INFO_MST
    JAHANGIR

  • Master Detail Report for PDF Printing

    Dear All,
           While trying to create a master detail report using Oracle APEX 4.2 and BI Publisher. I tried creating report queries and report layout following the below mentioned steps.
    CREATE TYPE emp_row AS OBJECT (
      EMPNO NUMBER(4),
      ENAME VARCHAR2(10),
      JOB VARCHAR2(9),
      MGR NUMBER(4),
      HIREDATE DATE,
      SAL NUMBER(7,2),
      COMM NUMBER(7,2)
    CREATE TYPE emp_tab AS TABLE OF emp_row;
    CREATE TYPE dept_row AS OBJECT (
      DEPTNO NUMBER(2),
      DNAME VARCHAR2(14),
      LOC VARCHAR2(13),
      EMP_LIST emp_tab
    SELECT SYS_XMLAGG (
      SYS_XMLGEN(
      dept_row(
      d.deptno, d.dname, d.loc,
      CAST(MULTISET(SELECT e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm
      FROM emp e
      WHERE e.deptno = d.deptno) AS emp_tab)
      SYS.XMLGENFORMATtYPE.createFormat('DEPT')
      ) AS "XML_QUERY"
    FROM dept d
    WHERE d.deptno = 10;
    Though the above steps generates xml output while trying to generate in APEX it says unsupported datatype. Tried using DBMS_LOB as well no luck. Any inputs will be quite helpful. Should there be any other way to incorporate master detail report printing in APEX kindly advise.
    Thanks
    Ahmed

    Hi Ahmed_Jed,
    Ahmed_Jed wrote:
    Thanks Kiran for your prompt response. I tried following the steps already using this link (How To Create a Master-Detail PDF Report) somehow the detail record was not getting processed perhaps was trying to generate xml data using the above query. Any other reference will be highly appreciated.
    Regards
    Ahmed
        Well the problem lies here:
    SELECT SYS_XMLAGG (
      SYS_XMLGEN(
      dept_row(
      d.deptno, d.dname, d.loc,
      CAST(MULTISET(SELECT e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm
      FROM emp e
      WHERE e.deptno = d.deptno) AS emp_tab)
      SYS.XMLGENFORMATtYPE.createFormat('DEPT')
      ) AS "XML_QUERY"
    FROM dept d
    WHERE d.deptno = 10;
        The Report Query itself generates XML data (in the required BI Publisher format). So, no need to generate it like this.
        As you are using table functions your query should be of the type:
    SELECT EMPNO
                , ENAME
                , JOB
                , MGR
                , HIREDATE
                , SAL
                , COMM
        FROM TABLE ( EMP_PKG.GET_EMPLOYEES ( :PXX_DEPTNO ))
        where EMP_PKG.GET_EMPLOYEES is packaged table function which returns the Object Table of type EMP_TAB mentioned above.
        When you test the above Report Query with sample DEPTNO, it will generate the sample XML, which you can use to generate Report Layout in RTF format using BI Publisher Desktop.
        Hope this helps!
    Regards,
    Kiran

  • Group above master/detail report; page break causes repeat of master frame

    Hi
    I have a a group above master/detail report; when there is a page break part way through the master frame it causes the whole master frame to be repeated on the next page. I don't want this to happen, I just want the remainder of the master frame to be displayed on the next page. any ideas?
    TIA

    Hi
    I've tried switching the "Page Protect" to No at the page level and the "Print Object On" is set to "First Page" but it doesn't solve the problem. The whole master frame is repeated on the next page when a page break occurs part way through. The master/detail Repeating Frame "Print Object On" is set to "Last Page".
    Any other ideas?
    TIA

  • Master-Detail Report

    Hi Gurus,
    I am trying to implement master-detail report in single window without navigating to other window in OBI 10g by following the below link
    http://108obiee.blogspot.in/2010/02/obiee-master-detail-requests-navigation.html
    but i am facing problem in creating iframe column and including that column in the report
    Can we achieve this requirement in OBI 10g if yes please suggest me how can we do this.
    Thanks,

    Hi Muram,
    For implementing Master-detail for the product report when we click on Prod-Cat from master report(Year, Prod-Cat, Tot-Sales) it as to show the detail report (Prod-SubCat,Tot-Sales) in the same window without navigation to the other window for this scenario I implemented the steps as per the below URL which was send in the previous post.
    http://obiee10grevisited.blogspot.in/2012/05/master-detailed-report-on-same-page.html
    but I am facing problem in 5th,6th,7th steps could you please suggest me on these.
    1>First I created master report with columns (Year, Prod-Cat, Tot-Sales)
    2>Second I created detail report with columns(Prod-SubCat,Tot-Sales)
    3>I have created two prompts Year and Prod-Cat
    4>Now in the dashboard page I kept prompts and two reports in separate sections
    5>To build intermediate report for validation which columns I have to take in that report and what I have to give in the fx.
    6>In the detail report sections in the edit dashboard how to give the reference to the intermediate report and how to make the report not visible at the initial view of the user.
    7>In the main report how to give the navigation to the same page which consist of main and detail report together we can navigation either main report or detail report how we can navigation which consist of both.
    Thanks,
    Rafi
    Edited by: Rafi.B on Aug 29, 2012 11:42 AM

  • Master Detail Report + Tab navigation error

    Hello All,
    I built a master detail report and included a standard tab set. I built it with the wizard. When tabbing from the report page there is no problem. When tabbing from the associated master detail page you always get "web page not found" with this in the address bar-"http:///apex/wwv_flow.accept". I understand why you would not want to tab out from this type of page. Can anyone point me in the right direction to remove the tabs from view on this page. All my attempts want to remove the tabs at the application level. I am using the one level tab page template. Thanks ...

    Wayne,
    If you can put your application on apex.oracle.com and tell me how I can see this problem, that might be easiest. Just need your workspace name and application ID (plus instructions).
    Scott

  • Master-detail reports in SqlDeveloper

    Hello,
    I recently read this article by Sue Harper.
    www.oracle.com/technology/oramag/oracle/07-may/o37sql.html
    I am using Sqldeveloper for a little while now, but never created a user-defined report.
    This morning I read this article about it, and I am really thrilled.
    The problem is: I cannot get a master-detail report to work.
    I followed the instructions:
    Master query:
    select a.master_column
    from not_important a
    The type of the detail report is "DETAIL" and I refer to the master-column like this : where blabla = :MASTER_COLUMN
    I Tried:
    * changing caption of the bind variable.
    * adding a column alias in the master query
    * changing type to child
    nothing works
    Tried it in sqldeveloper: 1.5.4 and 1.1.2.25
    neither work.
    Of course I am missing the obvious. Can somebody please point out, what I am doing wrong.
    Regards.

    I finally figured out, what I was doing wrong.
    I tested my report with a single master-record by pressing the detail run-button (>) immediately after the report openend, WITHOUT first actually selecting this single master record with my mouse.
    So when I hit the detail run-button (>) Oracle returned with a "All Rows Fetched: 0". So I never realized I was actually querying with a NULL value in the bind variable.

  • Is it possible to create a Master-Master-Detail JClient Form?

    Hi,
    I've been trying to create a Master-Master-Detail JClient Form, where both master-values will be displayed in a seperated drop-down-list.
    First I've tested this with a single Master-Detail (is it correct, that a single drop-down-list, working as master will not work with LoV-Binding!?) - However, the combobox-model must be set to Navigation-Binding...
    After adding another combobox (the second master), and testing the result, it seems that the detail-table only corresponds to the selection of the first master.
    The problem with LoV-Binding was, that the drop-down-list starts with the value at ID '0' (which doesn't exists) instead of '1'...
    The Question is, how can I create a Master-Master-Detail JClient Form!?
    thanks,
    hubi

    Hi,
    I've been trying to create a Master-Master-Detail JClient Form, where both master-values will be displayed in a seperated drop-down-list.
    First I've tested this with a single Master-Detail (is it correct, that a single drop-down-list, working as master will not work with LoV-Binding!?) - However, the combobox-model must be set to Navigation-Binding...That's true for navigation as you want to use the Combo as the navigator for the Master VO iterator. Lov Binding is used to "update" certain attributes based on selection. You are trying to drive the detail rowset for a selected master and NavigationBinding is the appropriate binding for this purpose.
    After adding another combobox (the second master), and testing the result, it seems that the detail-table only corresponds to the selection of the first master.That's the behavior you get from the default data model.
    The Question is, how can I create a Master-Master-Detail JClient Form!?First you need to create a ViewUsage structure that implements Master-master-detail. This is not allowed by Bc4j wizards. However you can create such a structure at runtime by using createViewLink method on the ApplicationModule to link the "second" master with the detail (same VO as the first Master's detail).
    Assuming both the comboboxes are bound to individual Master VOs using NavigationBinding, you should now be able to traverse the details using both ComboBoxes (which represent the master).

  • Repeating  field values per paage in Master Detail Report

    I know there are lots of threads about repeating fields values across pages but not seem to work that I have tried and I was looking for a simple resolution to my problem.
    I have a master detail report like:
    Deptno: 10 Dname: Accounting
    Empno Surname Job Sal
    1234 Smith Clerk 1000
    1235 Jones Clerk 1200
    Deptno: 20 Dname: Research
    Empno Surname Job Sal
    2234 Smith Clerk 1000
    2235 Jones Clerk 1200
    etc. The employee data is displayed in a Word table.
    Now if I use the standard emp/dept tables (with only 14 employees) the report paginates properly and I see one department per page and the corresponding employees per page. I have used the <?split-by-page-break: ?> tag. A sample of the rtf file is:
    <?for-each:dept?>Dept: <?deptno?> Name: <?dname?>
    TABLE of EMPS (via insert -> table ->advanced etc)
    <?split-by-page-break: ?>
    <?end for-each?>
    Everything works fine but if I then apply a larger xml file to this rtf where the number of employees spill over onto another page the deptno and the dname do not print before the table when I want them to.
    I have tried putting things into Word headers, using the <?start:body?> tag and a couple of other ways (like @section). Could someone be quite explicit about the steps I need to follow (rather than just say put it in a header) to make sure that if the employees spill over the page the deptno and dname will display. I don't know if its made more difficult because I have multiple departments but any help would be appreciated.

    I sent a template to Chris who was able to solve the problem.
    The change that he made was from:
    <?for-each:dept?>Dept: <?deptno?> Name: <?dname?>
    TABLE of EMPS (via insert -> table ->advanced etc)
    <?split-by-page-break: ?>
    <?end for-each?>
    to:
    Dept: <?deptno?> Name: <?dname?>
    <?start:body?><?for-each@section:dept?>
    TABLE of EMPS (via insert -> table ->advanced etc)
    <?end for-each?><?end body?>
    That is, he used the start and end body tags and the section attribute and took out the <?split-by-page-break: ?> tag. I put back in the split page tag on the template he gave me but it gave me an extra page each time the department changed. So maybe you can really only use one of the other.
    Regardless, Chris sorted it out for me, so thanks.

  • Master-detail report, hide detail on new search

    Hi, I'm newbie, so I need help. I have Master-detail report on same page. Master is interactive report, detail is SQL report which use hidden item as condition.
    For display detail data I use edit link. But I have problem when I make new search on master, detail still shows the old data.
    Can somebody tell me, how can I hide details , when I make new search on master? Or set hidden item to null, when I make new search?
    Example you can see in http://htmldb.oracle.com/pls/otn/f?p=51834:4 . Login : demo/demo
    Thanks
    Igor
    PS: Sorry on my broken English

    Hi,
    This can be achieved by doing something like the following:
    Have a single SQL statement that joins the two tables together. eg,
    select p.project_title,
    d.project_detail1,
    d.project_detail2,
    etc
    from projects p
    inner join details d on d.project_id = p.project_id
    This will provide a flat table with the project title in the first column for all records.
    Then, in the Report Attributes, you need to switch on Column Breaks:
    In the Break Formatting section, set Breaks to "First Column"
    In the When displaying a break column use this format, enter #project_title#
    In the Identify how you would like your breaks to be displayed, select "Repeat headings on break"
    Finally, clear the "Show" tick for the project_title column
    There's probably something you could do to improve formatting etc, but this should give you a start.
    Regards
    Andy

  • Master/Detail report on same page.

    Hi, I am trying to put together a report (10g HTML DB) and can't seem to put together a master/detail report.
    I would like to have a header, something like
    Project Title -- Project Status etc... for each project. Then below this section
    Project Detail 1
    Project Detail 2
    Project Detail 3
    Loop through the projects
    It's just two tables. projects and details. Details has a fk project.id.
    I tried to do a Form -> Master Detail but it puts them on seperate pages and also allows the data to be edited. I don't need that, this is simply for display.
    This is something I can put together just creating an html table in an anonymous PLSQL block but if ability is there in HTML DB I should probably try it that way.

    Hi,
    This can be achieved by doing something like the following:
    Have a single SQL statement that joins the two tables together. eg,
    select p.project_title,
    d.project_detail1,
    d.project_detail2,
    etc
    from projects p
    inner join details d on d.project_id = p.project_id
    This will provide a flat table with the project title in the first column for all records.
    Then, in the Report Attributes, you need to switch on Column Breaks:
    In the Break Formatting section, set Breaks to "First Column"
    In the When displaying a break column use this format, enter #project_title#
    In the Identify how you would like your breaks to be displayed, select "Repeat headings on break"
    Finally, clear the "Show" tick for the project_title column
    There's probably something you could do to improve formatting etc, but this should give you a start.
    Regards
    Andy

Maybe you are looking for

  • Windows failed to start. winload.exe corrupt

    Been having a few problems with my Equius so decided to boot, do F8, and do a toshiba system restore. Started up, and began formatting the disk. All of a sudden it blue screened. Trouble is now I cant even boot that far to get the recovery/restore op

  • Star up disk

    hello, i have a mac pro 2,6 man with a 250gb start up disk, split 50/50 running mac osx and windows xp. it made some funny noises and didnt start up today, so i held my finger on the button until it restarted and it worked fine...i thought its a good

  • Lightroom 4 / Camera RAW 6.7 causing Premiere Problems?

    I've also posted this in the Premiere Forum, but wanted to copy it here too.... After installing Lightroom 4 and the Camera RAW 6.7 beta, my Premiere Pro CS5.5.2 Win7Pro stopped working, popping up this garbled error message: (The other program which

  • IPhone 3G is dead

    I clicked erase all content so I could sell my iPhone 3G. Then the battery died in the middle of the process. I have held down the power and home and it did not do anything. Please tell me what to do so I can sell it. Is there something I can press,

  • How to parse xml in sap abap

    Hello, Can anyone help me to know how to parse xml in sap abap. I have a xml file which i want to parse and store it in internal table. <?xml version="1.0" encoding="UTF-8"?>##<data><name>menaka<name></data> Regards, Menaka.H.B