No. of Detail Rows

Hi,
A challenge for you all!
I am building a product details system in Portal forms.
One of the screens is a Product Ingredients form with Product as the master block and ingredients as the Detail block. There can be between 1 and 20 ingredients in any 1 product and as these all have to sum to a volume percentage of 100% the client would like to see all ingredients for a product on 1 screen and not have to do Next/Previous to see them all.
As you increase detail rows on a master detail form the performance of the form decreases dramatically so I would like to minimise the number of detail rows displayed for each product to maximise performance.
To this end I wish to dynamically modify the number of detail rows displayed to match the number of ingredients on a product as that product is queried.
I can handle figuring out how many rows I want to set the page to but have not been able to figure out how to change the number of detail rows displayed at run time.
Anyone know how (or if!) this is possible ?
All help gratefully recieved
Andy

Hi,
You can only specify the number of details rows at design time. There is no option to change it at run time.
Thanks,
Sharmila

Similar Messages

  • 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

  • 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

  • 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;

  • 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!

  • 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

  • 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

  • Insert master and detail rows with Composition assoc generating JBO-26048

    I have the Master and Detail Entity Objects and made an Association linking them as Composition related.
    I have 2 ViewObjects. the MasterViewObject is composed of the Master entity object and 1 other udpateable object. the DetailViewObejct only contains the Detail entity Object.
    I tried to create a row on the masterviewobject and then immeidately create a detail row, and then commit, ADF issues a JBO-26048 error. Constraint "MY_FK" violated during post operation.... ".
    I don't know wahts wrong, but this should not be error should nit be appearing, as ViewObjects and the Links with Composition Association take care of populating the Foreign Keys of the detail. Or am I missing something here?

    The ADF Guide covers this problem, and I have a method that works as well on jdevguru.com. Take a look at the manual first, they have an indepth view on it and how to get it all to work together.
    Kelly

  • How to access detail-rows in master-detail form?

    I have a master-detail form(one to many relationship). The master and detail are in separate blocks. The detail rows are displayed in a tabular form.
    I need to access the detail-rows since the database writes for the detail rows will be managed by a procedure.
    I have been looking through the documentation and have been unable to find any syntax for iterating through the detail-rows.
    Any help is appreciated. Thanks.

    go_block(detail)
    first_record;
    in a loop while not last_record
    -- do your stuff
    next_record;
    end loop;

  • Create New Detail Rows

    I have a jsp page with Master-detail tables. My current create new row button has to set current on one detail row to be able to create a new row. I have some master rows have no detail items. So my create new row button won't show up.How can I create a new detail row without setting a current. Thanks!

    I current have a create button goes with each detail row as href="browseMD.do?event=setCurrentRowWithKey&Arg0=<c:out value='${Row.rowKeyStr}' />&event=Create"
    I tried to drag 'Create' from the datail table DataControl->Operation->Create, but it won't work if I don't setCurrentRowWithKey.
    When I have only one table, I can 'Create' without setting current row on a view object. But the master and details seems to act differently, I couldn't make it work. Have you done any create new row with a master-datail view object?
    I'll try to work around with your 'dummy' row suggestion. Thanks!

  • Refreshing ViewLink Detail Rows data

    I have a JDev 9.0.5 JClient application that uses a Master/Detail pair of ViewObjects thru a ViewLink. I update some columns on those ViewObjects using a right-click context menu that launches a modal dialog. When an data is changed that is reflected in the Master ViewObject, the data is automatically refreshed on the UI for the user to see. However, if I change any data that is reflected on the Detail ViewObject, the change is not visible to the user until I commit, and change the row currency on the Master VO. How can I get the changes to be reflected to the user immediately? What I'm looking for is something like a method on the ViewLink that would tell it to refresh the Detail window using the current Master row's key values. Does anyone know of a way to accomplish this?
    Thanks,
    Mark Brown

    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!

Maybe you are looking for

  • Disabling Smart Quotes in FrameMaker 7.2

    Hi, My team uses FrameMaker 7.2 to create and edit DITA XML files. We recently noticed that the smart quote feature inserts non-printable characters in our XML content files. Our help system cannot display the characters properly, and so we've starte

  • How to change the Purchase Organization filed in the Purchase requistion..

    Hello All, I am creating the requirement of material through MD62. Later I am runiing MRP through MDO3 to create the purchase requistion against that. Now my requirement is that if the source list is not maintainted ( ME01) for that material, I want

  • Rac DB 10.2  & Bpel/ OAS 10.1.2.0.0

    bpel installs just fine going to a non-rac dehydration db; bpel/oas v 10.1.2.0.0 to db 10.2; re-ren irca & upgrade scripts on the db; had to insert the vip hostname for the irca script's network adapter; still cannot however, get bpel past the connec

  • CC says everything is up to date - nothing installed

    This is insane. I paid for CC. BUt now it won't install. I am stuck in help hell. I downloaded the trial many months ago. I uninstalled it. Months later (ie, today) I paid the subcription price. I go to download photoshop - it won't download. Just sa

  • MB21 Sachkonto

    Hello, We have a problem with the language of the field "G / L Account" in the transaction MB21 (New Items) Our system is on French, all the fields of this transaction are on French but the field "G / L Account" is on German ('Sachkonto') while on Fr