How to conrtol repeating row

I defined query in report 6i
SELECT DISTINCT SUM(SUB_FABRIC_DELIVERED.QUANTITY) qty, FABRIC_DELIVERED.FDNO,
SUB_FABRIC_DELIVERED.COLOR,
SUB_PROGRAM.COLOR,
SUB_PROGRAM.REQ_KGS,
FABRIC_DELIVERED.PPNO
FROM SUB_FABRIC_DELIVERED,
FABRIC_DELIVERED,
PROGRAM,
SUB_PROGRAM
WHERE ((SUB_FABRIC_DELIVERED.FDNO = FABRIC_DELIVERED.FDNO)
AND (SUB_PROGRAM.JOBNO = PROGRAM.JOBNO)
AND (FABRIC_DELIVERED.PPNO = PROGRAM.PPNO))
GROUP BY FABRIC_DELIVERED.FDNO,
FABRIC_DELIVERED.PPNO,
FABRIC_DELIVERED.SUBPP,
SUB_FABRIC_DELIVERED.COLOR,
PROGRAM.PPNO, PROGRAM.SUBPP,
SUB_PROGRAM.COLOR,
SUB_PROGRAM.REQ_KGS
ORDER BY SUB_FABRIC_DELIVERED.COLOR
problen is that when I run report row are repeating many times it seeks record in sub_fabricc_delivered and repeat record as found in this table.

When you run this query in SQLPLUS, what do you see there? Is result different than what it displays in report?

Similar Messages

  • 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

  • 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 do I repeat the same row more than once in report 10g

    How do I repeat the same row more than once in report 10g
    So I can print the bar code more than once
    in report;
    Edited by: user11106555 on May 9, 2009 5:50 AM

    GREAT THAN X MAN
    It is already working, but with the first ROW
    select ename from emp
    CONNECT BY ROWNUM<=5
    ENAME
    SMITH
    SMITH
    SMITH
    SMITH
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    BUT I want this result
    Item1
    Item2
    Item3
    to
    Item1
    Item1
    Item1
    Item2
    Item2
    Item2
    Item3
    Item3
    Item3

  • 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

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

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

  • 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 hide repeated details using SQL Query?

    How to hide repeated details using SQL Query?
    For Ex:
    ------------------------+
    DEPTNO| ENAME | JOB |
    ------|-------| --------|
    10 | JAMES | MANAGER |
    10 | BLAKE | CLERK |
    10 | FORD | SALESMAN|
    20 | SCOTT | MANAGER |
    20 | ADAMS | CLERK |
    20 | KING | SALESMAN|
    ------------------------+
    How we can display the above details in the following way?
    ------------------------+
    DEPTNO| ENAME | JOB |
    ------|-------| --------|
    10 | JAMES | MANAGER |
    | BLAKE | CLERK |
    | FORD | SALESMAN|
    20 | SCOTT | MANAGER |
    | ADAMS | CLERK |
    | KING | SALESMAN|
    ------------------------+
    Thanks Advance

    Hi,
    you can use BREAK ON DEPTNO in SQL*Plus or use LAG.
    SQL> ed
    Wrote file afiedt.buf
      1  select nullif(department_id
      2                , lag(department_id) over (partition by department_id order by last_name)
      3         ) dept_id
      4  , last_name, job_id
      5*  from employees where department_id in (30,50) and rownum <=10
    SQL> /
       DEPT_ID LAST_NAME                 JOB_ID
            30 Baida                     PU_CLERK
               Colmenares                PU_CLERK
               Himuro                    PU_CLERK
               Khoo                      PU_CLERK
               Raphaely                  PU_MAN
               Tobias                    PU_CLERK
            50 Fripp                     ST_MAN
               Kaufling                  ST_MAN
               Vollman                   ST_MAN
               Weiss                     ST_MAN
    10 rows selected.

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

  • 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

  • How to add repeating table inside the table in Infopath?

    I am customizing a list in sharepoint Infopath 2013.
    Now I want to add Repeating table inside a table but when I am doing It I am getting the below error:
    "This table can not be converted into repeating table. To fix this problem, add one or more controls to the repeating row and try again,"
    What should I do next?
    Thanks in Advance.

    Hi Darsh,
    I tested the same scenario per your post in my environment, however it worked fine when I inserted a repeating table to the ordinary table in InfoPath form.
    How did you modify the SharePoint list form in InfoPath and how did you insert the repeating table?
    Based on the error message, it seems like you were converting the ordinary table to repeating table.
    To insert a repeating table inside the ordinary table, we can use this Repeating Table button under Home tab in InfoPath Designer.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • 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

  • Creating a ColorModel for 4 band images.

    The application I am writing involves the creation of images with over 4 bands. I'm using RasterFactory.createPixelInterleavedSampleModel(int,int,int,int) to create a SampleModel and then using PlanarImage.createColorModel(SampleModel) to create a Co

  • Inventory in MM impossible without paper

    Hello, My client would like to do an inventory in a storage location (no WM-managed) without printed inventory document (with handheld and wifi) Unfortunately, the transaction to count (MI08, MI04) could not be sorted out or displayed by the storage

  • JTable rows gets white with invisible text

    I m using a JTable with custom colorRender....(part of the implementation given below)....Sometime all row's text becomes invisible but if you copy this text and paste it into MS-Excel it will successfully copy to excel cells. Furthermore when this p

  • ISql*Plus works well, but sqlplus throws ORA-12560. Why?

    I installed Oracle DB 10.2.0.1 on Windows XP. After the installation, everything works like clockwork. ... well, until I installed Oracle Application server 10.1.2.0.2. For the most part, it still works fine. But now, whenever I run sqlplus from comm

  • Text in 3d World

    Hello everyone, is there a way to display text into the 3d world and make it fallow a 3d model?