CUBE detail rows being lost

Hi,
I have a problem where the lowest level of my CUBE is losing data and the aggregated levels are correct. My CUBE is sales dimensioned by assets, customer, geography and time. The lowest level of geography is branch, the previous level called area has the correct total but the branch level doesnt include all the rows.
Is there a way to check the cube build, I dont get any errors during build.
Any help appreciated,
Brandon

Hi again,
I have made some inroads into my problem but am still without understanding of why this is happening. Basically I have found that when I choose to compress my CUBE then cells are being lost from my CUBE although their values are included in the aggregate levels above.
So i re-created the CUBE with no compression and the lowest levels look correct BUT my CUBE now takes an hour where it used to take 20mins to refresh.
So I have logged a SR with Oracle but wondered if anyone had any ideas why creating a compressed CUBE would “lose” cells with valid values ??
This led me to thinking about sparsity of my CUBE and whether my definitions are correct and should I be trying to compress it in the first place. BTW , am using AWM 10.2.0.2a DB= 10.2.0.2
I have 4 dimensions Asset, Customer, Time and Geography and my CUBE is just SALES at this stage.
Is this a correct way of calculating the sparsity for each dimension and if so then what should my implementation details of my CUBE be :-
SUMMARY :-
TIME DIMENSION SPARSITY RATING = (TUPLES_WITHOUT_TIME * LEAF_VALUES) / TOTAL_TUPLES = (784046 * 12) / 1729961 = 5.4
GROGRAPHY DIMENSION SPARSITY RATING = (TUPLES_WITHOUT_GEOGRAPHY * LEAF_VALUES) / TOTAL_TUPLES = (1604895 * 433) / 1729961 = 401.69
ASSET RATING = (TUPLES_WITHOUT_ASSET * LEAF_VALUES) / TOTAL_TUPLES = (193253 * 176269 ) / 1729961 = 19690
CUSTOMER RATING = (TUPLES_WITHOUT_CUSTOMER * LEAF_VALUES) / TOTAL_TUPLES = (1642 * 23494 ) / 1729961 = 22
DETAILS :-
1.) TIME DIMENSION
-- tuples_full = 1729961
select count(distinct to_char(fisc_month_id)||to_char(tbid_company_geography_id)||to_char(tbid_asset_id)||to_char(cus_customer_no))
from bi_monthly_sales
-- TIME Leaf Values leaf_values = 12
select count(distinct(fisc_month_id)) from bi_time
--tuples_without_time = 784046
select count(distinct to_char(tbid_company_geography_id)||to_char(tbid_asset_id)||to_char(cus_customer_no))
from bi_monthly_sales
TIME DIMENSION SPARSITY RATING = (TUPLES_WITHOUT * LEAF_VALUES) / TOTAL_TUPLES = (784046 * 12) / 1729961 = 5.4
2.) GEOGRAPHY DIMENSION
-- tuples_full = 1729961
select count(distinct to_char(fisc_month_id)||to_char(tbid_company_geography_id)||to_char(tbid_asset_id)||to_char(cus_customer_no))
from bi_monthly_sales
-- GEOGRAPHY Leaf Values leaf_values = 433
select count(distinct(tbid_company_geography_id)) from bi_geography
--tuples_without_geography = 1604895
select count(distinct to_char(fisc_month_id)||to_char(tbid_asset_id)||to_char(cus_customer_no))
from bi_monthly_sales
GROGRAPHY DIMENSION SPARSITY RATING = (TUPLES_WITHOUT * LEAF_VALUES) / TOTAL_TUPLES = (1604895 * 433) / 1729961 = 401.69
-- ASSET Leaf Values leaf_values = 176269
select count(distinct(tbid_asset_id)) from bi_asset
--tuples_without_assets = 193253
select count(distinct to_char(tbid_company_geography_id)||to_char(fisc_month_id)||to_char(cus_customer_no))
from bi_monthly_sales
-- ASSET RATING = (TUPLES_WITHOUT * LEAF_VALUES) / TOTAL_TUPLES = (193253 * 176269 ) / 1729961 = 19690
-- CUSTOMER Leaf Values leaf_values = 23494
select count(distinct(customer_no)) from bi_customer
--tuples_without_customer = 1642
select count(distinct to_char(tbid_company_geography_id)||to_char(fisc_month_id)||to_char(fisc_month_id))
from bi_monthly_sales
CUSTOMER RATING = (TUPLES_WITHOUT * LEAF_VALUES) / TOTAL_TUPLES = (1642 * 23494 ) / 1729961 = 22
Sorry for the long posting, any help appreciated.
Cheers,
Brandon

Similar Messages

  • How can i use row set iterator to create multiple dummy detail rows upfront

    Hello i am new to ADF and jdeveloper and have a Forms 9i/PLSQL background.
    I have a 1 to many master to detail view link and 2 vo's one for each of the master and detail table.
    I am trying unsuccsessfully to create 7 unique detail rows up front to populate at a later stage.
    I have created a master record with primary key being staff number and week ending date.
    i then use code below to try and create 7 detail records - P.S i have trimmed it to the first 2 for demonstration.
    I am using
    RowSetIterator rsi = this.mydetailVO.getRowSetIterator();
    Row newRow1=rsi.createRow();
    newRow1.setAttribute("Staff Num","123456A");
    newRow1.setAttribute("Week_Ending_Date", "2010-01-01");
    newRow1.setAttribute("Claim_Date", "2010-01-01");
    newRow1.setAttribute("Day", "Sun");
    rsi.insertRow(newRow1);
    Row newRow2=rsi.createRow();
    newRow2.setAttribute("Staff Num","123456A");
    newRow2.setAttribute("Week_Ending_Date", "2010-01-01");
    newRow2.setAttribute("Claim_Date", "2010-01-02");
    newRow2.setAttribute("Day", "Sat");
    rsi.insertRow(newRow2);
    However it does create two rows but it always writes over the first row with the details of the second row so they are not unique.
    How can i get a new unique row inserted with different details to the firat and how then do i access it uniquely.
    Thanks

    John thanks for reply.
    I have tried the following and still i get 2 rows created but the first one gets overwritten with the last one. I'm confused as to why the inbuilt insert row doesnt move it on to the next available row. Any idea what i'm not doing in between inserting rows?
    ViewObject vo1 = this.getmyVO1();
    vo1.executeQuery();
    Row newRow1 = vo1.createRow();
    newRow1.setAttribute("Staff Number","123456A");
    newRow1.setAttribute("Week_end_date", "2010-04-04");
    newRow1.setAttribute("Date", "2010-04-01");
    newRow1.setAttribute("Day", "Sun");
    vo1.insertRow(newRow1);
    Row newRow2 = vo1.createRow();
    newRow2.setAttribute("Staff Number","123456A");
    newRow2.setAttribute("Week_end_date", "2010-04-04");
    newRow2.setAttribute("Date", "2010-04-03");
    newRow2.setAttribute("Day", "Sat");
    vo1.insertRow(newRow2);
    P.S Yes they are dates but i made them strings for the time being until i get this working thanks for noticing.
    Edited by: user13012264 on 20-Apr-2010 04:19
    Edited by: user13012264 on 20-Apr-2010 04:20

  • Detail rows not fetched in af:iterator for the first time

    Hi,
    I have a table with 3 columns. Column 3 is a detail record with column 1 being the parent.
    Column 3 is displayed in the table using af:iterator #{row.detailRows}.
    The detail records are created in a different page.
    When I add the detail records to the master in this page and navigate to the page where the table is rendered, sometimes I do not see the column 3(detail rows) displayed immediately. The iterator #{row.detailRows} returns no rows.
    When I go back to the previous page wait for sometime and navigate to the page with table, I see the detail rows.
    This is happening intermittently and not always.
    Why is the iterator returning no rows sometimes(even though it returns values after a while)?
    When this happens, I checked the back end data and all the data is inserted into the db tables immediately.
    Jdev version: 11.1.1.4.0
    Any help is appreciated.
    Thanks!

    Srini,
    Should I set the 'Target Data Source' to the detail iterator?
    I want detail rows displayed in column 3 for all rows in the table on page load, not on row selection.
    The page on load should display the table in below manner, irrespective of row selection all rows' detail values should be rendered.
    S No.
    Master key
    Detail values
    1
    master1
    detail1-1
    detail1-2
    detail1-3
    2
    master2
    detail2-1
    detail2-2
    detail2-3
    detail2-4
    3
    master3
    detail3-1
    detail3-2
    detail3-3
    Thanks!

  • Multi line details row

    Morning all,
    I am trying to build a master detail form and spread each detail line over a couple of rows (to save lots of horizontal scrolling). I have read many discussions on this topic but I have been unable to get it working under Apex 4.2. I have created a Named Column template and using the Row Templates section split each row across two lines. The problem I have found is that when rendering, Apex takes a copy of the row template and sets its style to display:none presumably so that when you hit add row it can use this hidden row to build subsequent rows. However, Apex only hides the first <tr> tag so you end up with part of the row being rendered every time. Can anyone point me in the right direction?
    Thanks,
    Ben.

    Actually, I wouldn't say that addRow needs changing. It's the tabular.init function which is causing the issues.
    In short, these are some the things that matter:
    <ul>
    <li>when the tabular form is rendered, the first row (first tr element) has an id of type "#init_row_"+pRegionId
    <li>The tabular form is set to the parent of this element (tabular.gTabForm). This will be the element to which new rows will be appended.
    <li>The tabular form background is set to the css property "background-color" of the td elements. This is used nowhere I think.
    <li>The init tab row (tabular.gTabFormInitRow) is set to a concatenation of beforeRow + the #init_row + afterRow. These before and afterRow strings are parameters to the init function.
    <li>After that the #init_row is removed (page load, region refresh)
    <li>A beforesubmit handler is set to also remove this element (not sure when the element would be there at this point, but i suppose it has to be possible?)
    </ul>
    AddRow actually just takes the constructed gTabFormInitRow element and appends this to gTabForm.
    So basically, if the init could be 'fixed' then I believe all should be well. If only you could define the 'initial row' code in a template or something, then this wouldn't be much of an issue. It's not sufficient to call the init yourself, because the looking up of the init_row is hardcoded in it.
    I just checked on apex.oracle.com and ran a page with a default tabular form on it. I don't get the "display: none" style, i can't see this happening, and the tabular form init code has no "hiding" in it, only removing. In this case this should mean that of your first "row" with multiple rows in it, the first tr element would get tagged with init_row_ and then be removed, while the other row(s) remain. And "Add Row" will not work as expected.
    What is hard however is determining automatically which rows are the 'first' rows. In a regular tabular form the first row is alway the init row, and this is visible when you inspect the gTabFormInitRow too as all ids are "_0000". As far as I see this would be the only way to identify the init rows, except for the first row.
    It's probably possible to get this to work with some javascript/jQuery by executing some code before, to catch the init rows properly, and after the tabular form init call, to remove the init rows correctly.
    Just as highly customized as the other options probably.

  • New detail rows not showing

    Hi,
    Here's a little background on my problem. We have a simple master-detail hierarchy. Both have a ViewObject. The problem lies in the fact that our detail VO has a filter using a bind variable. The bind variable value is determined (most of the time) at the VO execution time: bindParametersForCollection is overriden and passes a value for the bind variable if it is null. In our specific case the variable represents the username of the authenticated user.
    The main complexity lies in the UI. We present all the masters and their children in a single table in edit mode. We are using a tree binding with an accessor from the master node to the child node.
    Example
    Row 1: Master 1 Column 1 | Master 1 Column 2 | Master 1 Detail 1 Column 1 | Master 1 Detail 1 Column 2
                                                 | Master 1 Detail 2 Column 1 | Master 1 Detail 2 Column 2
                                                 | Master 1 Detail 3 Column 1 | Master 1 Detail 3 Column 2
    Row 2: Master 2 Column 1 | Master 2 Column 2 | Master 2 Detail 1 Column 1 | Master 2 Detail 1 Column 2
                                                 | Master 2 Detail 2 Column 1 | Master 2 Detail 2 Column 2
                                                 | Master 2 Detail 3 Column 1 | Master 2 Detail 3 Column 2
    Row 3: Master 3 Column 1 | Master 3 Column 2 | Master 3 Detail 1 Column 1 | Master 3 Detail 1 Column 2
                                                 | Master 3 Detail 2 Column 1 | Master 3 Detail 2 Column 2
                                                 | Master 3 Detail 3 Column 1 | Master 3 Detail 3 Column 2Everything works until we try to create new rows. In our use case, whenever we create a new master row, we also create a fixed number of detail rows. The number of detail rows depends on the context. Whenever we do this, the details rows do not show up in the UI.
    In my experimentations, I found that the problem was caused by the bind variable on the detail VO. Tracing the detail VO query execution I came to the conclusion that unposted rows where rejected from the QueryCollection when there’s a bind variable. The debugger shows that in VO#executeQueryForCollection the QueryCollection#mUnpostedRows list is empty when there’s a bind variable while it is not when there’re no bind variable.
    This is a major issue in our case, so I would like to know if you consider this as a bug (in my opinion it is). If yes, when can we expect a fix or workaround? Otherwise we’ll have to get around this problem by either finding a way to remove the bind variable OR do everything manually in a managed bean (which I would prefer not to have to do).
    I have reproduced the problem in a SRDemo test case. Test case has been sent to Steve Muench.
    Thanx!
    Olivier

    This looks very similar to Bug# 6412612 "New Row Lost After Executequery In Vo W/ Bind Variable In Where Clause", reported in the Tech Preview #2 release, and fixed in Tech Preview #3 (due out before the end of December 2007). Will try confirming with an in-house TP3 build that this fix fixes your testcase, too.

  • Master-Detail and Auto Insert Detail rows

    Apex 3.0
    I'm trying to do a Master-Detail form. I have it set to stay on the same page when I Create a new Master Record.
    Now, what I would like to do is auto insert data into the Detail Rows some predefined information and have it ready for the user to enter the rest of the information. I did this by creating a Page Process to trigger on the Add Row button for the Details region. The code I used is:
    begin
    insert into purch_insurance_type (Contract_ID, INSURANCE_TYPE) values(:P7_Contract_ID, 'General');
    insert into purch_insurance_type (Contract_ID, INSURANCE_TYPE) values(:P7_Contract_ID, 'Automobile');
    insert into purch_insurance_type (Contract_ID, INSURANCE_TYPE) values(:P7_Contract_ID, 'Excess');
    insert into purch_insurance_type (Contract_ID, INSURANCE_TYPE) values(:P7_Contract_ID, 'Workers Comp');
    insert into purch_insurance_type (Contract_ID, INSURANCE_TYPE) values(:P7_Contract_ID, 'Others (Builders Risk)');
    end;
    P7_Contract_ID is the PK on the Master table and I predefine the Insurance Type. The rest of the table the user is able to enter as needed.
    When I run it, the new rows show up but the Insurance Type is NULL and browsing from one record and back the new rows are gone. It seems like the PK for the Detail rows are not being filled. I have a Sequence Trigger set to fire on Update:
    CREATE OR REPLACE TRIGGER "BI_PURCH_INSURANCE_TYPE"
    before insert on "PURCH_INSURANCE_TYPE"
    for each row
    begin
    if :NEW."INSURANCE_TYPE_ID" is null then
    select "PURCH_INSURANCE_TYPE_SEQ".nextval into :NEW."INSURANCE_TYPE_ID" from dual;
    end if;
    end;
    ALTER TRIGGER "BI_PURCH_INSURANCE_TYPE" ENABLE
    What am I missing? Any ideas or suggestions?

    Hi All!
    I think there is no solution to this problem, only single selection is the solution.
    If any one has anyother solution plz let me know.
    Thanks and regards.
    Abbasi

  • New inserted detail row is not showing through accessor

    I have to insert master and detail row. I insert row in master view  and then I get detail row using getAttribute on master view. Then I insert row into detail row. Result is one inserted master row and no data display in detail view.
    How ever in managed bean when I get master view using finditerator and then get detail row also using finditerator on the specific page then rows inserted on master and detail view appear.
    DCIteratorBinding dcIter =             ADFUtils.findIterator("PlotMst1Iterator");
    ViewObject mvo = dcIter.getViewObject();
    mvo.insertRowAtRangeIndex(0, row);
    mvo.setCurrentRow(row);
    Row row = mvo.createRow();
    // DETAIL ACCESSOR  not working
      //  RowSet Pd = (RowSet) row.getAttribute("PlotDtl");
    DCIteratorBinding dcIter2 =       ADFUtils.findIterator("PlotDtl2Iterator");      
    ViewObject dvo = dcIter2.getViewObject();
    nvp.setAttribute("FabricCode",r.getAttribute("FabricCode"));
    Row drow = dvo.createAndInitRow(nvp);      
    dvo.insertRow(drow);   

    Hi,
    its a classical programming mistake you do. You create a new row on the model layer and not the binding layer. The proper way of doing this would be to
    1) either create a method binding for the "CreateInsert" operation in the PageDef file and call it from there
    or
    2) DCIteratorBinding dcIter = ADFUtils.findIterator("PlotMst1Iterator");
        Row rw = dcIter.getRowSetIterator().createRow();
    Same for your attempt to create the detail row. Again you can expose the createInsert operation in the PageDef file or use the RowSetIterator. As you create a master and detail row at the same time, be aware of a constraint problem that may arise from this as you have no guarantee that the master is inserted first. Read this http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcentities.htm#CEGJAFCF to learn about the problem.
    Note that use case often matters. While I can see where your coding goes wrong, I can't tell if your approach in general could be chosen better
    Frank

  • Master Detail Form - unable to add detail row

    Dear,
    I have a test application that runs for years on apex.oracle.com.
    Since 3rd of june 2010 I am unable to add rows on a detail form.
    Any ideas?
    Help is welcome!
    Kind regards
    Lorenz

    4.0 Conversion Issue
    Lorenz stated I can create the orderheader, but unable to create orderlines.Simply nothing happens, when I click the add row button.>
    I share the same issue as Lorenz, on a Master/Detail form, I am able to create my Master row and but nothing happens when attempting to create detail rows. I was able to switch my application to theme 13 (Traditional Blue) from 2 (Blue and Tan) and was then able to create and add details rows.
    My dilemma. When switching to theme 13 and others, none appear to support Two Level Tabs in the same manner as Theme 2. Essentially the applications look and feel is not going to go over well with my user base of 3+ years.
    Is there another standard theme that will support Two Level Tabs like Theme 2 and allow the addition of detail rows on a Master/Detail form?
    Is this a reported 4.0 conversion issue?
    Jeff

  • Master-Detail: create detail-row(s) with id already filled in

    I have two tables with an one-to-many relationship (connected by 'id'). If you select a row from the master-table, you'll see the detail-table (with the various row's belonging to the master-record). Now I made a button which users can use to add additional rows to the detail-table. They get a form which they can fill in and submit, the only problem is... I don't want them to manualy fill in the id, this should be the only field that should already be filled in (or better should be invisible, but filled in). So they should select a master-row first and then click 'add' to add a detail-row(s) to it. But I have absolutely no clue how I can do this... I tried creating custom create methods in the view-object or entity-object... but the problem I keep running into is where to get the row-iterator... I have know idea if this is the right direction to look for, maybe somebody can give me some advice.
    Thanks in advance...!

    Steven, hope you can help me out once more...
    I have the same problem with a different view object, I'll explain...
    First of all I set jbo.locking.mode to 'optimistic', now the problem...
    I have two entity objects (Mbrships and Mbrshiphistory) which are connected by a foreign key (created in the database) on MbrshipID. Mbrshipshistory is also connected to the Aff entity object by a foreign key on AffID. The idea is simple... there are affiliates and a couple of memberships. An affiliate has/had a membership, that's where the membershiphistory-table comes in, which stores AffID, MbrshipID, DateFrom, DateTo and some other values.
    Now, what I created... JDeveloper created entity-objects of all the tables and made associations of the foreign keys. I created the following view objects: http://213.93.142.238/oracle/datamodel.jpg and application module: http://213.93.142.238/oracle/applicationmodule.jpg The (MemberToMembershipHistory) view link between Members and MembershipHostory is based upon the association between the two tables.
    The following is a screenshot of my struts-config.xml: http://213.93.142.238/oracle/struts-config.jpg
    Editing mbrshiphistories works fine, but I get the following error when I try to add one: oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity. I also don't see the AffID already filled in in the add/edit-screen (same problem as in the opening-post) when I try to add one. I double-checked everything, but I can't find the problem. Do you know what I do wrong...?

  • Creating master detail rows

    using adf/bc with jsf. I have defined a master detail relationship between two entities. This relationship is a composition relationship. The entities are related by a view link which link the master and detail view objects. i have a need to create/insert a master row and a detail row programmatically "on the fly" so that when the jsp renders, the user will see blank inputs for both the master and detail view objects. The problem is that the primary key of the master record is not known at creation time ( it will be entered by the user) and therefore the detail record cannot be created by the framework because of the unknown value of the parent's primary key. I was hoping the following section in the adf guide would eliminate my problem, but it doesn't appear to:
    This is from section 26.7.3.2 of the adf developer's guide
    Note: An alternative to the programmatic technique discussed
    above, which solves the problem at the J2EE application layer, is the
    use of deferrable constraints at the database layer. If you have control
    over your database schema, consider defining (or altering) your
    foreign key constraints to be DEFERRABLE INITIALLY DEFERRED.
    This causes the database to defer checking the constraint until
    transaction commit time. This allows the application to perform DML
    operations in any order provided that by COMMIT time all appropriate
    related rows have been saved and would alleviate the parent/child
    ordering described above. However, you would still need to write the
    code described in the following sections to cascade-update the foreign
    key values if the parent’s primary key is assigned from a sequence.
    This approach did not help in allowing me to create the detail record without first knowing the value of the parent's primary key record in a composition relationship. The only thing i've found to work is define the relationship as just an association, and not a composition. However, this is a true one to many (composition) relationship and i would like to take advantage of some of the features of the framework that are there when a relationship is defined as a composition relationship. Is there any way to do what i need to do with a composition relationship defined between these two entities? Thanks.

    Hi,
    I guess you need a "Cascading LOVs".
    1) Create viewObject for country values list. Named VO1.
    2) Create viewObject for state values list. Named VO2.
    3) Create view criteria for (bind variable) VO2 which can restrict the result by country.
    4) Create view accessor to get VO1.
    5) Create view accessor to get VO2. Define the bind variable value which can provide country info dynamically. I guess it should be a Groovy expression.
    6) Create country LOV on step 4) view accessor.
    7) Create state LOV on step 5) view accessor.
    Done
    On the view layer, you may enable PPR between country and state attributes.
    Todd

  • Is there a way to open SSRS 2005 tree view in a table in a Details row upward?

    Hi.
    I building some reports with SSRS, and showing data in a table. The table has one Details row that forms at the end multiple rows with the tree view (+ and -).
    Is there a way to open the tree view upwards and not downwards so that the children of level 2, 3 etc come over the parent row?
    I've goggled it everywhere, but I don't seem to find the answer. If anyone could help me out, I would appreciated.
    Thanks
    Novi

    Hi again.
    And by the way, this is a parent child hierarchy. I have made a group details row with a "ParentUniqeName" on Parent Group text box and "UniqueName" on the Group On expression box by using Edit Group menu.
    In addition, there is a drill down functionality on the table.
    Now, it seems that the order of the items is correct, I just want it to have the opposite order.
    Thanks again...
    Novi

  • Problem: trying to update all detail rows on pre-commit (MASTER DETAIL FORM

    Hi:
    I got a MASTER DETAIL form... and I need to update every detail row of this form (if the master was updated) before commiting the changes. the problem is that i cannot do that for instance in PRE-COMMIT or ON-COMMIT... it's an "illegal operation". I achieved part of it by coding KEY-COMMIT... but that did not solve the all problem. first take a look of the kind of code i want execute before commiting.
    form trigger key-commit code is is somehow like this:
    DECLARE
    tot_line NUMBER (3);
    line NUMBER (3);
    begin
    IF NAME_IN ('system.form_status') = 'CHANGED'
    THEN
    GO_BLOCK ('DETAIL');
    LAST_RECORD;
    tot_line := GET_BLOCK_PROPERTY ('DETAIL', current_record);
    FIRST_RECORD;
    line:= 1;
    LOOP
    :detail.quant := :detail.quant + 1;
    EXIT WHEN line= tot_line;
    next_record;
    line:= line+ 1;
    END LOOP;
    FIRST_RECORD;
    GO_BLOCK ('MASTER');
    END IF;
    COMMIT;
    end;
    The problem is for instance when the users close form in the "X" button (right top, near minimize form) ... If they do that Forms ask "Do you want to save changes?" ... and with this i do not execute the update of the detail rows...
    But there are other situations when this happens... for instance if EXECUTE_QUERY when i change a record...
    Anyone help?
    Joao Oliveira

    Use PRE-UPDATE trigger (Master block).
    begin
    update <detail_table>
    set quant + 1
    where <detail_table>.<relaition_column1> = :<Master_block>.<relaition_item1>
    and <detail_table>.<relaition_columnN> = :<Master_block>.<relaition_itemN>
    and <detail_block_WHERE>;
    EXCEPTION WHEN OTHERS THEN NULL;
    end;

  • Master/detail and problem with selected row when errors on detail row

    I'm using JDeveloper 10.1.3.3
    I have a very simple master/detail screen (JSF JSP) where master is departments and detail is employees in the selected department. Some of the attributes in employees are required.
    To department A
    I take away the value of one of the required attributes of one of the detail employee rows.
    Select one of the other departments ie department B
    Get Error message Value required.
    So far so good, but the selected department is B and the detail rows shown is for department A.
    I expected that department A to still be selected or that department B with its row to be shown.
    Edited by: user628847 on 26.feb.2009 04:55

    Hi,
    if (row != null)
    Row masterRow = row;
    vo.setCurrentRow(masterRow);
    // not needed : getMesReponsesPourTiersVO1().executeQuery();
    You shouldnot execute the child VO after setting current row in master VO.
    When the current row is set in master VO, then the child rows will get refreshed automatically.
    Cheers,
    Prasanna

  • HT1212 i don't have the computer that my iPod was registered to and i forgot my password because i just found my phone after being lost for 2 years

    i don't have the computer that my iPod was registered to and i forgot my password because i just found my phone after being lost for 2 years. Idk what to do so i can access my ipod.

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • Creating a master automatically when creating a detail row

    Hi,
    I'm using Jdev. 11.1.2.3.0
    I have three tables (with their corresponding view objects) with a master/detail/detail relationship.
    The first-level detail table contain a maximum of one row for each master row.
    The ids of the first-level and second-level details are automatically generated with a groovy expression and a sequence.
    The views are added on the page as table(master/)form(detail)/table(detail).
    I have a case where a master record has no details and i need to create a row in the second-level detail table.
    So is there a way to tell ADF to automatically create the first-level detail row (since the master is known) ? or i should manually check that such a row doesn't exists in the first-level detail table and thus create it before creating the row in the second-level detail table?
    Thank you.

    So is there a way to tell ADF to automatically create the first-level detail row (since the master is known) ? or i should manually check that such a row doesn't exists in the first-level detail table and thus create it before creating the row in the second-level detail table?
    Thank you.
    No, there is no such option so you will need to manually create this row.
    Dario

Maybe you are looking for