Repeating Rows

I couldn't find an example of how to build a form with repeating rows on it.
What I need is a search form that will be populated from a database.  The user can then click a button to select a record where a new form with much more detailed information will appear.
To do this I have a form with a table on it inside of a subform.  The table data row is maked for repeating.  I went to the form properties under edit and clicked the preview button and then selected the generate option to create some XML data to test the form with.  One row was created in the XML so I duplicated it to see if the form would then have multiple rows.
It didn't.
What I'm looking for is 1) how to created the form correctly for multiple rows and 2) how do I add an action to the render so the form will popup with the data from the database.
BTW, is anyone else having extremely slow loads on livedoc today?  I'm talking hours to open it.

Then this becomes more complicated as the Database connectivity can only get a single record. So you will have to
get each record you want to display (one at a atime) parse it and assign the values to your field in a script. There is a good blog post by Stefan Cameron  on this and other related topics. Check out these entries:
http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
http://forms.stefcameron.com/2006/10/12/displaying-all-records-from-an-odbc-data-connectio n/
Paul

Similar Messages

  • Hierarchy: How to suppress duplicated/repeated rows in a BEx query

    Hi Gurus.
    I have a BEx query which displays data based on a Cost Element hierarchy.  When the hierarchy is expanded to leaf level (or any level), all key figures and characteristics are displayed for the leaf level but are also repeated throughout all the levels above.
    Is it possible to suppress the repeated rows in higher levels of the hierarchy and display a summary result only?
    The issue we have is that if the user wishes to export or save a workbook, they will have to filter and manipulate the report a great deal which is impractical.
    I'm hoping it's a simple setting that I've missed.  I look forward to receiving the magic answer!! :o)
    Thanks,
    Angela

    Hi All,
    I've been playing around a bit more and found a setting which I hope my users will find acceptable:
    From the query - Query properties -> Data Formatting tab - Multidimensional View -> select Display Rows hierarchically and expand to (chosen characteristic)
    Can anyone tell me if I can set this as a default setting in the query designer, or will I need to create a view to save the setting?
    Thanks all,
    Angela

  • How to repeat row header in all pages in Financial Reporting?

    Hi,
    I have created a simple Financial Report with landscape mode, I could not able to view the row header in second page. Please help me out , how to repeat row header in all pages?
    Edited by: Awesome on Dec 13, 2012 2:04 PM

    Hi,
    Refer following link which states how to change the Page Setup setting (just an addition to above poster's explanation):-
    http://docs.oracle.com/cd/E12825_01/epm.111/fr_user/frameset.htm?1900.html
    Regards,
    Edited by: 918547 on Dec 14, 2012 6:17 PM

  • Totals Based on Multiple Criteria in Repeating Rows

    Hi All,
    I have 3 dropdowns (DD1, DD2, DD3) and one textfield (TF1) in repeating rows (not in a table).  Each dropdown has two choices and the textfield is free-form. Outside of the rows (in a different subform) I want totals based on multiple criteria from the dropdowns and textfields.
    The following script works great to get a total number of one choice from one dropdown.
    this.rawValue = xfa.resolveNodes('form1.Form.row[*].DD1.[$.rawValue == "2"]').length;
    Problem is how do I calculate the totals for the following based on the criteria listed in each row.
    Find the totals for ML
    Number of New Forms 1-2 Pages: (result should be 2)
    Number of New Forms 3+ Pages: (result should be 1)
    Number of Revised Form: (result should be 0)
    In row #1:  select “New” as a choice from DD1, “Form” as choice from DD2, “ML” as a choice from DD3 and enter “5” in TF1.
    In row #2:  select “New” as a choice from DD1, “Form” as choice from DD2 , “ML” as a choice from DD3 and enter “1” in TF1.
    In row #3:  select “New” as a choice from DD1, “Form” as choice from DD2, “ML” as a choice from DD3 and enter “2” in TF1.
    In row #4:  select “Revised” as a choice from DD1, “Series” as choice from DD2, “ML” as a choice from DD3 and enter “1” in TF1.
    In row #5:  select “New” as a choice from DD1, “Form” as choice from DD2, “PM” as a choice from DD3 and enter “1” in TF1.

    Try something like;
    var mlNewForms1or2Pages = 0;
    var mlNewFormsOver3Pages = 0;
    var mlRevisedForms = 0;
    var rows = xfa.resolveNodes('form1.Form.row[*]');
    for (var i = 0, limit = rows.length; i < limit; i++)
    var currentRow = rows.item(i);
    if (currentRow.DD1.rawValue == "1") // new
      if (currentRow.DD2.rawValue == "1") // form
       if (currentRow.DD3.rawValue == "1") // ML
        if (parseInt(currentRow.TF1.rawValue, 10) > 2)
         mlNewFormsOver3Pages++;
        else
         mlNewForms1or2Pages++;
    else // revised
      if (currentRow.DD2.rawValue == "1") // form
       if (currentRow.DD3.rawValue == "1") // ML
        mlRevisedForms++
    console.println(mlNewForms1or2Pages);
    console.println(mlNewFormsOver3Pages);
    console.println(mlRevisedForms);
    To do the same using predicates you could do;
    var mlNewForms1or2Pages = 0;
    var mlNewFormsOver3Pages = 0;
    var mlRevisedForms = 0;
    mlNewForms1or2Pages = xfa.resolveNodes('form1.Form.row.[DD1 == 1 and DD2 == 1 and DD3 == 1 and TF1 <= 2]').length;
    mlNewFormsOver3Pages = xfa.resolveNodes('form1.Form.row.[DD1 == 1 and DD2 == 1 and DD3 == 1 and TF1 > 2]').length;
    mlRevisedForms = xfa.resolveNodes('form1.Form.row.[DD1 == 2 and DD2 == 1 and DD3 == 1]').length;
    But if you wanted totals for all the permutations then this could become slow.
    Regards
    Bruce

  • SQL query for repeating rows

    Hi I joined two table and created the new table called FMW_ANALY. Which has some repeating rows. I used the following Query to list the top 10 customers by value
    SELECT *
    FROM
    (SELECT CUSTOMER, OPP_VALUE, RANK() OVER (order by OPP_VALUE DESC) opp_val_rank
    FROM FMW_ANALY)
    WHERE opp_val_rank<=10;
    I'm getting the following result
    Customer Opp Value Opp Val Rank
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Department of Education and Training 8991776.99 1
    Investments Commission 7447419.84 22
    Bank Limited 4803000 23
    Bank Limited 4803000 23
    Bank Limited 4803000 23
    Bank Limited 4803000 23
    Bank Limited 4803000 23
    Bank Limited 4803000 23
    Bank Limited 4803000 23
    Bank Limited 4803000 23
    How can I Query without these repeating rows?
    Thank you
    Vick

    Example which will help you understand Rank, Dense Rank
    SQL> ed
    Wrote file afiedt.buf
      1  select deptno, ename,sal,
      2       rank()
      3         over (order by sal desc)rnk,
      4       dense_rank()
      5         over (order by sal desc)densernk
      6       from emp2
      7*     order by sal desc
    SQL> /
        DEPTNO ENAME             SAL        RNK   DENSERNK
            10 KING2            5000          1          1
            10 KING             5000          1          1
            20 SCOTT2           3630          3          2
            20 SCOTT            3630          3          2
            20 JONES2           3272          5          3
            20 JONES            3272          5          3
            20 FORD2            3000          7          4
            20 FORD             3000          7          4
            30 BLAKE2           2850          9          5
            30 BLAKE            2850          9          5
            10 CLARK2           2450         11          6
            10 CLARK            2450         11          6
            30 ALLEN2           1600         13          7
            30 ALLEN            1600         13          7
            30 TURNER2          1500         15          8
            30 TURNER           1500         15          8
            10 MILLER2          1300         17          9
            10 MILLER           1300         17          9
            30 WARD2            1250         19         10
            30 WARD             1250         19         10
            30 MARTIN2          1250         19         10
            30 MARTIN           1250         19         10
            20 ADAMS2           1100         23         11
            20 ADAMS            1100         23         11
            30 JAMES2            950         25         12
            30 JAMES             950         25         12
            20 SMITH2            800         27         13
            20 SMITH             800         27         13
    28 rows selected.
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT * FROM
      2  (
      3  select deptno, ename,sal,
      4       rank()
      5         over (order by sal desc)rnk,
      6       dense_rank()
      7         over (order by sal desc)densernk
      8       from emp2
      9      order by sal desc
    10  )
    11* WHERE DENSERNK <=5
    SQL> /
        DEPTNO ENAME             SAL        RNK   DENSERNK
            10 KING2            5000          1          1
            10 KING             5000          1          1
            20 SCOTT2           3630          3          2
            20 SCOTT            3630          3          2
            20 JONES2           3272          5          3
            20 JONES            3272          5          3
            20 FORD2            3000          7          4
            20 FORD             3000          7          4
            30 BLAKE2           2850          9          5
            30 BLAKE            2850          9          5
    10 rows selected.

  • How to create repeating rows field type in visual studio for sharepoint

    HI
         I would like to check if there is any work around for the repeating rows field
    type other than buying 3rd party tool or using info path, Because i have SharePoint foundation server.
    Thanks

    Hello,
    You can use repeater control in custom webpart where you can add multiple details similar to repeating table:
    http://www.c-sharpcorner.com/Blogs/10913/add-dynamic-row-using-repeater.aspx
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to repeat rows in numbers on every page

    how to repeat rows in numbers on every page

    Hi mitesh hirani,
    Welcome to Apple Support Communities.
    Do you mean repeat Header Rows for tables?
    Menu > Print... > Print Setup (the panel on the right) > Repeat Table Headers
    Regards,
    Ian.

  • Specifying an instance of a repeatable row

    I am trying to bind the data between two fields that are both repeatable. Basically, I have a table with a repeatable row, and in this row the user will enter a part name and a part number and various other information. They will also specify wither the part is "New" or "Change." For each part that is marked as "Change," I add an instance to a repeatable table on another page of the form (this table is only present for parts marked as "Change," so if I have five rows in the first table and only three parts are marked as "Change," then I should have three instances of the table on page two). This is all well and good, but the tables on the second page should have a field for part name and part number that matches what is in the corresponding row on page 1. Initially, I wrote a for loop that set the value of the fields in the first instance of the table on page two to the value of the fields in the first instance of the row on page one. However, this won't work because it does not take into account whether the row is marked as "Change" or "New." Is there a way to evaluate or identify something as the first instance where a value is true or false? e.g. - make a field equal to the first instance of a row where a condition is true\
    the code I am currently using is:
    for (i = 0; i < DispositionTable_1._Row1.count; i++) {
        if (this.parent.index === i) {
            this.resolveNode("form1.ECO_Table_subform.ECO_table[" + i.toString() + "].Change_1.Change_1_header.PN1").rawValue = this.resolveNode("$").rawValue;       
    and I also tried this (but it didn't work):
    for (i = 0; i < DispositionTable_1._Row1.count; i++) {
        if ((this.parent.index === i) && (this.resolveNode("form1.Disposition_table_subform.DispositionTable_1.Row1[" + i.toString() + "].change_checkbox").rawValue == "1") {
            this.resolveNode("form1.ECO_Table_subform.ECO_table[" + i.toString() + "].Change_1.Change_1_header.PN1").rawValue = this.resolveNode("$").rawValue;       

    Hi,
    I am not sure where the code you have shown is being used, but you could try using the calculate event of the second table, this would give you some code like;
    _Row1.setInstances(0);
    var rowCount = Table1._Row1.count;
    var rows = Table1.resolveNodes("Row1[*]");
    for (var i = 0; i < rowCount; i++)
        var row = rows.item(i);
        if (row.NewChange.rawValue === "Change")
            var secondTableRow = _Row1.addInstance(true);
            secondTableRow.PN1.rawValue = row.PN1.rawValue;
    Here is a link to an example, I hope it helps https://sites.google.com/site/livecycledesignercookbooks/home/a.c.hoff.pdf?attredirects=0& d=1
    Regards
    Bruce

  • Repeating row height

    I have a table of repeating rows which shows fine. I want to
    add a delete button to each row and can get this to work fine but
    once the button is added, when viewed, the table has extra space
    under each button. It is like there has been a <br> tag
    added. This means that the table is now twice as big and not lining
    up correctly.
    Is it possible to keep the row a standard height. I have
    tried adding css to the button, extending the cell width, and
    adding no wrap but all to no avail.

    > I want to add a delete
    > button to each row
    is this delete button a form element?
    use css to restyle the default margins of the <form>
    tag to 0
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Repeatable Row Tab Order

    I have a table with a repeatable row and there is a Add and Delete button at the end of each row.  I issue I'm having is once the user inputs information in the first row and tabs pass the Add and Delete buttton instead of the cursor going to the next row it goes to the next subform after the table.
    Help please
    Parre

    Hi Neeliman,
    Change that zero to 1 and see what happens..
    See the belwo link
    https://social.technet.microsoft.com/Forums/en-US/c2d78b8d-d866-4e46-b9c2-c1410d2dc929/people-picker-messing-up-tab-index?forum=sharepointcustomizationprevious
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

  • Pick only one row from the repeated rows

    Oracle 10g r2 (10.2.0.5)
    I have a query/view, which returns the the reords as follows
    set colsep ||
    Name     ||     Address     ||        Zip
    abc123     || Ln1     || 123456
    bcd123     || Ln2     || NULL
    bcd123     || Null     || 45678
    efg123     || Ln0     || 96345
    efg123     || Ln0123     || Null
    efg123     || adr     || null
    the result set I need from the above is
    set colsep ||
    Name     ||     Address     ||        Zip
    abc123     || Ln1     || 123456
    bcd123     || Ln2     || NULL
    efg123     || Ln0     || 96345
    As you see that the first record on each repeated row sets are required
    Thanks,

    Hi,
    Using the aggregate FIRST (or LAST) function like that, there's no guarantee that all of the output values on the same row will come from the same row in the original table. To do that, you can use the analytic ROW_NUMBER function, like this:
    WITH     got_r_num     AS
         SELECT     name, address, zip, ...
         ,     ROW_NUMBER () OVER ( PARTITION BY  name
                                   ORDER BY          address
                             ,                zip
                           )      AS r_num
         FROM     table_x
    SELECT     name, address, zip, ...
    FROM     got_r_num
    WHERE     r_num     = 1
    ;This assumes the "first" row is the one with the first address (in alphabetic order), and, in the event of a tie, the one with the lowest zip (however "lowest" is defined for zip). You can specify any order you want in the analytic ORDER BY clause.
    I hope that answers your question.
    If not, what is your question? Use words other than those you've already used to describe what you want to do.
    Explain exactly what "first" means in this problem.Point out where the query above (or the one posted by Claytonian, if that seems closer) is getting the wrong results, and explain how you'd get the right results in those places.
    If necessary, post new sample data (either CREATE TABLE and INSERT statements, or a WITH clause, as Claytonian did) and the results you want from that data.

  • Repeated rows resulting from executeWithParams on query with bind variable

    hi
    Please consider this example application created using JDeveloper 11.1.1.3.0
    at http://www.consideringred.com/files/oracle/2010/RepeatedRowsIssueApp-v0.01.zip
    It has a View Object "EmployeesVO" based on a SQL query with a bind variable "EmailBVar".
    The page "findEmployees.jspx" has executeWithParams dropped as an "ADF Parameter Form..." and the "EmployeesVOVI" collection as a table.
    On "EmployeesVOVIIterator" the RangeSize has been modified from the default 25 to 10.
    So, all straightforward stuff.
    A scenario (sc1), running the page "findEmployees.jspx", specifying a value and clicking the "ExecuteWithParams" button results in repeated rows shown in the table, that is the first row (and subsequent rows) are repeated at row 11 (and subsequent rows),
    as can be seen in the screencast at http://screencast.com/t/bn9QvV0qt
    question:
    - (q1) How can the repeated rows in scenario (sc1) be explained/avoided?
    many thanks
    Jan Vervecken

    Thanks for your reply Nick Haralabidis.
    it can be avoided by setting the EmployeesVO Access Mode to Range Paging and setting the Range Size to 10. Indeed, that does seem to avoid the repeating rows.
    Now why you get this behavior when you don't specify Range Paging on the VO I don't know. It could be because: 1) it is a bug - the obvious answer ;) , 2) because setting the RangeSize on the EmployeesVOVIIterator without setting the Access Mode on the EmployeesVO to Range Paging is conflicting - but then again there is no warning or error produced by JDeveloper, 3) ...It does look like unintended behaviour, for a "default approach" like this.
    In documentation section "39.1.5 Efficiently Scrolling Through Large Result Sets Using Range Paging " ...
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvvo.htm#ADFFD1179
    ... this Range Paging for a View Object seems to be described as an optimization, not as a requirement for functionally correct behaviour.
    - about (q1)
    Another approach that seems to avoid the repeated rows in scenario (sc1) is removing the value for the RangeSize attribute on the iterator, so the RangeSize is not specified.
    Using the modified example application
    at http://www.consideringred.com/files/oracle/2010/RepeatedRowsIssueApp-v0.02.zip
    ... this can be seen in scenario (sc2) in the screencast at http://screencast.com/t/0bpCo33i8J
    Although, the documentation in section "22.4.2.2 Iterator RangeSize Attribute " ...
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/web_form.htm#ADFFD706
    ... does not seem to mention anything about not specifying the RangeSize attribute, it does say "... You can set it to -1 to have the full record set returned. ...".
    As can be seen in scenario (sc2) the EL expression #{bindings.EmployeesVOVIIterator.rangeSize} resolves to -1 which suggests that not specifying the RangeSize attribute is the same as configuring the RangeSize attribute to -1.
    questions:
    - (q2) What is the preferred way to avoid having "the full record set returned", without having repeated rows as in scenario (sc1)?
    - (q3) Is the default configuration of RangeSize="25" on the iterator intended behaviour (for an interator supporting an executeWithParams action)?
    regards
    Jan

  • How to repeat rows based on column value

    Hi all,
    I have a query that gives me a result with a column value for example 4.
    I now want to repeat this row 4 times with a new column that calculated from 1 - 4.
    Or when column value is 3 I want to repeat row 3 times with new column name 1-3
    Can anyone help me with this please? :)

    Hi Yvanlathem,
    To achieve your requirement, you can reference the recursive approach as below.
    DECLARE @T TABLE(Col1 CHAR(1),Col2 INT)
    INSERT INTO @T VALUES('A',1),('B',2),('C',3)
    ;WITH Cte([Char],[Repeat]) AS
    SELECT Col1,Col2 FROM @T
    UNION ALL
    SELECT [Char],[Repeat]-1 FROM Cte
    WHERE [Repeat]>1
    SELECT * FROM Cte ORDER BY [Char],[Repeat]
    OPTION(MAXRECURSION 0)
    /* Output
    Char Repeat
    A 1
    B 1
    B 2
    C 1
    C 2
    C 3
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Repeatable row disabled by default. Need to enable all rows based on value in XML.

    I have a repeatable row in a table that is defaulted to read only.   If a certain value doesn't exist in the XML (populated != x), I want to make add / remove buttons visible and and make the text fields in the row and all subsequent instances Open.
    when populated !=x:
    This is the code:
    if (xfa.host.name != "XFAPresentationAgent" && this.resolveNode("populated").rawValue != "x") {
      oTargetField = this.resolveNode("#subform[2].tbl_people.person.name");
          oTargetField.access = "open";
      oTargetField = this.resolveNode("#subform[2].tbl_people.person.relationship");
          oTargetField.access = "open";
      oTargetField = this.resolveNode("#subform[2].tbl_people.person.age");
          oTargetField.access = "open";
    When I use this, it only enables the first row and none of the subsequent rows/instances.  
    Any assistance would be greatly appreciated!
    -Jeff

    Hi DCS_JeffW,
    I guess, you need to follow these steps:
    1) You need to find the number of repeating rows first. Assuming that "people.person" is the repeating instance:
                    var countOfPPInstances = xfa.resolveNode("....people.person").instanceManager.count;
    2) Modify your code as follws:
                    if (xfa.host.name != "XFAPresentationAgent" && this.resolveNode("populated").rawValue != "x")
                                    for(var i=0;i<countOfPPInstances;i++)
                                     xfa.resolveNode(“..people.person[“+i+”].name").access=”open”;
                                                      xfa.resolveNode(“..people.person[“+i+”].relationship").access=”open”;     
                                                      xfa.resolveNode(“..people.person[“+i+”].age").access=”open”;
    Let me know if this works. Alternatively, you can mail me your form @ [email protected]

  • Repeate Row Totals on every horizontal pages in Crosstab.

    Hi
    I have a crosstab which grows multiple page horizontally.
    I have Row totals that are displayed on the left of summary. I want to display this totals on every horizontal page.
    Can anyone tell mw how to achieve this.
    I am using Crystal Reports XI with SP as data source.

    Hi Narayan
    Right Click on the Cross Tab->Cross-Tab Expert-> Customize Style tab.
    Select the 'Horizontal' option under summarized Fields:
    Select the 'Repeat Row Labels' option under 'Grid Options'
    Click 'OK'
    However it is not possible to dispaly the row totals for the data dispalyed on that particular page.
    Because the data is calulated for the entire cross-tab.
    Hope this helps you.
    Please let us know if you need any further information.
    Regards
    Ashwini Yadav

Maybe you are looking for

  • Online test questions... plz  provide answers

    How can we copy a standard table to make our own z_table? By using the copy option in SE11. By using include structure command. By using Append structure command. By Copying the entire structure of the standard table in our new table. In reporting te

  • Total in REUSE_ALV_BLOCK_

    Hai friends, I am using the following function modules REUSE_ALV_BLOCK_LIST_INIT REUSE_ALV_BLOCK_LIST_APPEND REUSE_ALV_BLOCK_LIST_DISPLAY I want to give the total for the Quantity column alone. I am doing BOM explosion project. In this, i want the to

  • BW to SAP R/3 CONNECTION

    HI FRIENDS. could any one tell me , how to connect SAP R/3 and BW, i hv been try to connect them, i could not , plz help me. thks hari

  • FF5: Some sites will not load, but no error messages

    I'm using Firefox 5 on Windows Vista Home SP1. Since I upgraded to FF5, some sites either simply will not load. No error messages are given - the green circle icon in the tab just keep spinning. There's two pages that I visit daily that this happens

  • Mountain Lion dictation on Flash player

    Apple says OS X now supports Dictation. So wherever you can type, you can use your voice instead. Dictation does not work on text boxes in Flash Player though. Is there any way to fix this?