Grouping Header Rows based on common rows in Details

Hi,
I have two tables TAB_MST and TAB_DTL with information like below:
{code}
CREATE TABLE TAB_MST
  MSTCOL  NUMBER
ALTER TABLE TAB_MST ADD CONSTRAINT TAB_MST_PK PRIMARY KEY (MSTCOL)
INSERT INTO TAB_MST (MSTCOL) VALUES (1);
INSERT INTO TAB_MST (MSTCOL) VALUES (2);
INSERT INTO TAB_MST (MSTCOL) VALUES (3);
INSERT INTO TAB_MST (MSTCOL) VALUES (4);
CREATE TABLE TAB_DTL
  MSTCOL  NUMBER,
  DTLCOL  NUMBER
ALTER TABLE TAB_DTL ADD CONSTRAINT TAB_DTL_PK PRIMARY KEY (MSTCOL, DTLCOL)
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (1, 1);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (1, 2);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (1, 3);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (1, 4);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (1, 5);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (2, 4);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (2, 7);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (2, 8);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (2, 9);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (3, 8);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (3, 9);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (3, 10);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (3, 11);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (4, 12);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (4, 13);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES  (4, 14);
COMMIT;
{code}
I want to group rows in Master table (TAB_MST) to different groups based on the data in detail table (TAB_DTL) with output as below
MSTCOL      GROUPID
     1               1
     2               1
     3               1
     4               2
Rule for Grouping are as follows:
1) If there is any common value of DTLCOL for two different values of MSTCOL, then both MSTCOL values should be grouped under same group, e.g. for above sample case
DTLCOL (Value = 4) is common for MSTCOL = 1 and MSTCOL = 2, hence MSTCOL 1 and MSTCOL 2 belong to same group (GROUPID = 1).
DTLCOL (Value = 8, 9) is common for MSTCOL = 2 and MSTCOL = 3, hence MSTCOL 3 should belong to same group as MSTCOL 2 (GROUPID = 1)
There is no common value of DTLCOL for MSTCOL = 4, hence it is in a separate group.
Below is the sample PL/SQL block to highlight this grouping behavior. Two temporary tables are created to achieve this:
{code}
CREATE TABLE TAB_MST_GROUP
  MSTCOL   NUMBER,
  GROUPID  NUMBER
CREATE TABLE TAB_TMP_GROUP
  GROUPID  NUMBER
DECLARE
   CURSOR c1
   IS
      SELECT * FROM tab_mst;
   prevmstcol    NUMBER;
   prevgroupid   NUMBER := 1;
   vtmpgroupid   NUMBER;
BEGIN
   DELETE tab_mst_group;
   FOR r1 IN c1
   LOOP
      IF prevmstcol IS NULL
      THEN
         INSERT INTO tab_mst_group
              VALUES (r1.mstcol, prevgroupid);
         prevmstcol := r1.mstcol;
      ELSE
         INSERT INTO tab_tmp_group
            SELECT DISTINCT groupid
              FROM tab_mst_group a, tab_dtl b, tab_dtl c
             WHERE     a.mstcol = b.mstcol
                   AND c.dtlcol = b.dtlcol
                   AND c.mstcol = r1.mstcol;
         IF SQL%ROWCOUNT = 0
         THEN
            prevgroupid := prevgroupid + 1;
            INSERT INTO tab_mst_group
                 VALUES (r1.mstcol, prevgroupid);
         ELSE
            SELECT MIN (groupid) INTO vtmpgroupid FROM tab_tmp_group;
            UPDATE tab_mst_group
               SET groupid = vtmpgroupid
             WHERE groupid IN (SELECT groupid FROM tab_tmp_group);
            INSERT INTO tab_mst_group
                 VALUES (r1.mstcol, vtmpgroupid);
            SELECT MAX (groupid) INTO prevgroupid FROM tab_mst_group;
            DELETE tab_tmp_group;
         END IF;
      END IF;
   END LOOP;
END;
{code}
Question:
a. Can we achieve this in SQL instead of PL/SQL?
b. Overhead of read from TAB_DTL grows exponentially if the No of records in TAB_MST grows. How can we reduce the no of read from TAB_DTL as the actual no of rows in TAB_DTL are very high.
Thanks,
sukhijank

Hi, Sukhijank,
Thanks for the additional information.  You didn't just learn those details since posting your first message, did you?  If you post information like that in your first message, then people can use it to give you a better answer in the first reply.
The idea I had for a recursive WITH clause solution won't work after all.
I think the best solution will be in PL/SQL, using a table like tab_mst_group which you posted, but with an additional column:
CREATE TABLE TAB_MST_GROUP
  mstcol NUMBER PRIMARY KEY,
  groupid   NUMBER,
  levelnum NUMBER
CREATE INDEX tab_mst_group_groupid_levelnum
ON     tab_mst_group (levelnum, groupid);
If llevelnum = 0, that means the assignment of the groupid is not certain; if levelnum > 0, then groupid is correct.
Here's a procedure you can use to populate the table:
CREATE OR REPLACE PROCEDURE tab_mst_group_populate
AS
    new_groupid  tab_mst_group.groupid%TYPE
     := 0;
    new_levelnum tab_mst_group.levelnum%TYPE;
    num_added  PLS_INTEGER;
    truncate_stmt VARCHAR2 (50) := 'TRUNCATE TABLE tab_mst_group';
BEGIN
    --  *****  Remove old entries from the table  *****
    -- dbms_output.put_line (truncate_stmt || ' = truncate_stmt in tab_mst_group_populate'); -- Debugging
    EXECUTE IMMEDIATE  truncate_stmt;
    --  *****  Populate table with all mstcols, and 1-member groups  *****
    INSERT INTO  tab_mst_group (mstcol, groupid, levelnum)
    SELECT    m.mstcol
    ,       m.mstcol  AS groupid
    ,       MIN ( CASE
                     WHEN  o.mstcol IS NULL
     THEN  1
     ELSE  0
                 END
    )  AS lvlnum
    FROM     tab_mst    m
    LEFT JOIN tab_dtl    d ON  d.mstcol = m.mstcol
    LEFT JOIN tab_dtl    o ON  o.dtlcol = d.dtlcol
            AND o.mstcol   != d.mstcol
    GROUP BY    m.mstcol;
    --  ***** Get groupid for lowest mstcol that still needs one  *****
    WHILE  new_groupid IS NOT NULL
    LOOP
        SELECT  MIN (groupid)
INTO new_groupid
FROM tab_mst_group
WHERE levelnum = 0;
IF  new_groupid   IS NOT NULL
THEN
     --  ***  Confirm groupid for this one mstcol  ***
     UPDATE  tab_mst_group
     SET     levelnum = 1
     WHERE   levelnum = 0
     AND     groupid = new_groupid;
     new_levelnum := 2;
     num_added := 1;
     --  ***  Add neighboring mstcols to this group  ***
     WHILE  num_added > 0
     LOOP
         UPDATE  tab_mst_group
  SET groupid   = new_groupid
  , levelnum  = new_levelnum
  WHERE levelnum  = 0
  AND groupid   IN (
                   SELECT  d2.mstcol
            FROM  tab_mst_group g1
      JOIN  tab_dtl       d1  ON  d1.mstcol  = g1.mstcol
      JOIN  tab_dtl       d2  ON  d2.dtlcol  = d1.dtlcol
                    AND d2.mstcol != d1.mstcol
      JOIN  tab_mst_group g2  ON  g2.mstcol  = d2.mstcol
      WHERE  g1.levelnum  = new_levelnum - 1
      AND  g1.groupid   = new_groupid
      AND  g2.levelnum  = 0
  num_added := SQL%ROWCOUNT;
  dbms_output.put_line (num_added || ' = num_added');
         new_levelnum := new_levelnum + 1;
     END LOOP;
END IF;
    END LOOP;
END tab_mst_group_populate;
SHOW ERRORS
The basic strategy is that we start off assuming that every mstcol will be its own groupid.  The CASE expression in the INSERT statement sets levelnum = 1 for mstcols that do not exist in the tab_dtl table, or are not related to other mstcols in tab_dtl.  The loop after that looks for rows in tab_mst_group that are still 0, meaning that the assignment of grpupid still has to be confirmed or changed.  It starts by finding the lowest mstcol that still has levelnum = 0, and makes that a new group.  The inner loop looks for related mstcols and marks them as being in the same group.
You might combine tab_mst and tab_mst_group; I don't see any need to have a separate table (but maybe you do).  If you do combine them, then you wouldn't truncate the table in the procedure.

Similar Messages

  • Repeating Header Rows - Not repeating beyond page 2

    Hello,
    I'm at my wit's end and I have yet to see a response to questions related to repeating headers (though I've seen it in a few forums).
    I have a flowed form with an initial header table and then 4 subforms, each made up of tables with a header group of two rows and then a user-modified number of data rows. Each of the subforms has it's own 2 line header, which includes a static "topic" row (with "add/delete row" button) and then a second header row with the column titles (9 columns across). As I said, these two header rows are grouped together.
    Each of the 4 subforms can (and does) flow on to multiple pages once filled in by the users. At first, my issue was getting the two rows (grouped) that make up my header to repeat on subsequent pages for each subform. No go - apparently grouped header rows can't make up an overflow leader (I can only choose one of the two), and when I check the box to make the GROUP appear on subsequent pages under pagination, it will only appear on page 1 and 2 for that particular subform...so I've given up on that. Now I just want the second header row (with the column titles) to appear on every page that each subform overflows on to, but I can still only get it to appear TWICE. Anytime a subform moves onto a third page, requiring a third instance of the header, it doesn't work.
    I came across one solution involving the "repeat header for each row", but that came with a host of new bugs, including a bug where every time I open, edit data in a particular subform and save the file, a NEW header group row is added to that subform (after 12 opens, there is literally 12 header rows at the top of each of my 4 subforms if I edit data in all 4)...though it solves the other issue and the header rows DO appear properly on subsequent pages beyond page 2!!!!
    Any solutions? I've run into this on three separate occasions over the past year when building forms and every time, I've hit this wall, given up the search for a solution and sacrificed aesthetics and functionality in my forms that I shouldn't really have to.
    Ck.

    Here is a sample I did for you..
    https://acrobat.com/#d=BSeyeLhbaeyqXfwX*wrwzA
    The difference with this file, is I created a table and then in the top row I merged all cells. Then created a table with two rows inside this merged cell.
    In the Header row properties I checked, repeat header in Subsequent pages.
    Let me know if you have any issues..
    Thanks
    Srini

  • Repeated Header Row within a Details Section Only of a Group Ignores Tablix Member Properties

    Ok.  I have a situation where I have a details section of a group, and I am trying to get it to repeat the row headers on each page.  It's not working.  I've gone into Advanced Mode, and addressed the static Tablix Member for the left-most
    field of the header row in question, set the properties for the Tablix Member to "RepeatOnNewPage:  True" and "KeepWithGroup: After", and still, it refuses to repeat the row header for these details.  I've tried rebuilding and
    not deleting the column where the grouping was originally assigned (without deleting the grouping, of course), and assigned the properties for "RepeatOnNewPage" to that left-most, grouping field, yet I get the exact same results.  I've looked
    up solutions, and even spoken to the expert of experts, but no joy here.  I'm using VS'10.

    OK.  So it is fixed... sort of...
    Apparently, you must select to add group headers repeated as you create the group (inc. child group), BESIDES changing in Advanced Mode, Tablix Member /Properties / etc.   Then you have to format that extra column within your Tablix to
    make it appear to 'disappear'.  BUT EVEN THEN, there is a new problem:
    The headers will repeat on the additional pages, but only to a point.  For some odd reason, SSRS doesn't consistently render the repeated headers of the group details for
    every page, just where it is a hard (page) break, as opposed to a soft (page) break.  My gut tells me that this has nothing to do with the .xml code, but is an SSRS idiosyncrasy. 

  • How do you freeze the tablix header row in an Excel export file in SSRS 2008?

    So this is totally killing me.
    I've found out how to make a tablix header row repeat on each page of a PDF export file in SSRS 2008 (which I won't even get started on because all I can say is that 2005 is way better), but I cannot figure out how to make a simple header row of a tablix
    freeze in an Excel export file.  The tablix is right at the top of the body and spans the entire width of the design area.  How in the world do you get it to freeze in the Excel export file?

    Rashiki777,
    From your information, I get that you want to freeze the tablix header when view the report in Excel. Please follows
    these steps:
     Click
    the header row
    Click
    View menu on  top of the toolbar, then you will Freeze Panes
    Select one kind of Freeze based on your requirement.
    This link supplies the detailed steps
    http://inpics.net/tutorials/excel2007/vis5.html If you have any concern, please feel free to ask.
    Of course,
    you could utilize the list control to display a certain rows on one sheet, then every sheet in Excel will have one header, the steps are following:
    Drag a list into report body, right-click
    Details in Row Groups panel to select Group Properties….
    Click
    Add button, then type in expression =ceiling(RowNumber(nothing)/25)
    in the textbox Note: 25 is just 25 rows per page, you could reset this value based on your requirement.
    Drag the table control into this list control.
    If you want to display every page in every sheet, you could add a page break to the table control in the list.
    Best regards,
    Challen Fu

  • Different column header row..

    How to get a different header row based on the value of an element in a group?
    For e.g, I have Supplier Group and all the Invoices group under that. Now i want to get the all the invoices group data under one header with an element value in this invoice groups,
    and all the invoices group data under a different header with an different element value.
    Thanks,

    weell, your are not quite there: move the columns and see what happens ;-)
    The SwingX variant would be:
        int statusColumn = 1;
        int resultColumn = 2;
        int flags = Pattern.CASE_INSENSITIVE;
        HighlightPredicate forcedP = new PatternPredicate(Pattern.compile("forced Running", flags), statusColumn);
        ColorHighlighter forced = new ColorHighlighter(forcedP, new Color(0, 150, 255), null);
        HighlightPredicate pausedP = new PatternPredicate(Pattern.compile("Paused", flags), statusColumn);
        ColorHighlighter paused = new ColorHighlighter(pausedP, new Color(255, 220, 45), null);
        HighlightPredicate failP = new PatternPredicate(Pattern.compile("Fail", flags), resultColumn);
        ColorHighlighter fail = new ColorHighlighter(failP, new Color(255, 50, 50), null);
        HighlightPredicate passedP = new PatternPredicate(Pattern.compile("Pass.*", flags), resultColumn);
        ColorHighlighter passed = new ColorHighlighter(passedP, new Color(50, 255, 50), null);
        table.setHighlighters(forced, paused, fail, passed);(the predicates are a bit verbose, missing convenience constructors - just filed issue #890 in the SwingX issue tracker) Plus you wouldn't really rely on strings (which most probably would be localizable in the real world) but model them into real state objects and then use custom predicates.
    Jeanette

  • RTF Header Rows Repeat in eBus BI Publisher (5.6.3)

    Hi,
    I have been struggling to get the Header Rows Repeat functionality working when generating RTF output with the eBus integrated BI Publisher - currently eBus 11.5.10.2 with ATG H RUP 7. The "How to Determine the Version of Oracle XML Publisher for Oracle E-Business Suite 11i and Release 12" Note (362496.1) doesn't provide anything more specific than 5.6.3. Based on the "Naming and Versioning" sticky note from Tim, I think this is equivalent to 10.1.3.2.
    According to http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_misc_101333.htm, this functionality is not available until BI Publisher 10.1.3.3.3.
    To "Overview of Available Patches for Oracle XML Publisher (embedded in Oracle E-Business Suite)" Note (1138602.1) does not list any stand alone patch which seems to be refer to this functionality.
    Can someone tell me if this Header Rows Repeat in RTF output functionality available with the eBus integrated BI Publisher? Or do I need to log an SR?
    theFurryOne
    Edited by: thefurryone on Sep 14, 2010 5:01 PM

    Hi Tim,
    Thanks for that - the 7487412 readme doesn't say anything about the RTF header bug fix being included, but the Bugs Resolved by this Patch lists 6270261 (ER: RTF Output to support set Table Header Report, Table Row Keep-Together).
    Patch # 7487412 is only available in R12, but with the specific ER number, I was able to find Note # 861915.1 (I couldn't it find with my keyword search) and this note indicates that 11i patch # 7702372 should resolve the problem for me in 11i (and it's readme explicitly documents 6270261 as being fixed by the patch).
    Thanks again,
    theFurryOne

  • Current Header Rows Not Appearing on FBL1N - A/P Detailed Line Item Report

    Our A/P staff somehow turned off the header rows at the top of the FBL1N report.    The rows contain the various variables related to the report such as vendor name, vendor address, city, state etc.
    Does anyone know how I can change the report so that these variables once again appear on the report?
    Thanks,

    Michael,
    Do you mean that you can not access via the following link?
    http://service.sap.com/notes
    Well, if this is your case, I will copy note 181592  here since there is only text information and not code correction. I am sorry but the format is not good, but I think this note will help you to insert header again.
    If this note does not help you, let me know and I will check the other notes that I have provided.
    Please kindly check the note text below:
    Best Regards,
    Vanessa Barth.
    ==============================================================
    SAP Note No. 181592                          20.01.2009           Page 1
    Number              181592
    Version             6 from 03.03.2000
    Status              Released for Customer
    Set on              02.03.2000
    Language            EN
    Master language     DE
    Short text          Line item: Setting-up the headers
    Responsible         Christian Auth
    Component           FI-GL-GL-D
                         Reporting/Analysis/Display
    Long text
    Symptom
    You want to display information in the headers or change information
    preset in the headers for the following: line item display for vendors,
    G/L accounts customers or customer information on an account.
    Additional key words
    Program RFITEMAP, RFITEMGL, RFITEMAR, Transactions FBL1N, FBL3N, FBL5N,
    layout variants, layout headers
    Cause and prerequisites
    You are not familiar with the option of individually setting header
    information or how to use maintenance transactions.
    Solution
    1.  Overview
         In the line item report you can display information in the header of
         the list (given that this information is equal for all items
         displayed).
         For example, a customer accounts clerk wants to display the
         following data in the header: account number and name of the
         customer, name and telephone number of the responsible accounting
         clerk for the customer, current date.
         You can use information taken from the account master data. General
         variables like the time and date are also available.
         The following describes how you can set up the layout of header
         information yourself. A header layout is always assigned to the
         particular display variant of the list which you set on the bottom
         of the selection screen or which you can choose using CTRL+F9 on the
         display ('Choose' button). You can therefore personalize the header
         layout as well as the remaining display layout.
         The header layout is output if the account number group is changed,
         if the list has been sorted according to the 'Account' field, and if
         a page break has been set for this field. You can maintain these
                                                                       Page 2
            settings under the menu option Edit -> Subtotal (Ctrl+F1).
         2.  Setting up the headers
             Choose from the menu
             Settings -> Display Variant -> Current header rows
             You now see rows in which you can arrange variables. Using the
             pushbuttons in the function bar, you can create or delete rows.
             When you position the cursor at the start position and choose
             function "Gen. variables" (Shift+F5) or "Characteristics..."
             (Shift+F8) a new variable is positioned in the header area. From the
             following dialog box, you can choose the variable (also called
             characteristic) from an inventory.
             Under "Text type", you determine whether the label for the variable
             (for example, the label 'Customer') or if the value itself should be
             used (that is, the appropriate customer number for the items
             displayed in each case). You can display pairs as follows:
             <Label>: <Value>
             for example,
             Customer: 47110815
             If the value is a key for a short or long text (either a name or a
             description), you can also select this under "Text type".
             After selecting and positioning the characteristics, save and return
             to the list. The headers are displayed immediately with correct
             values so that you can check your results right away.
         3.  Save the list variant
             Choose "Save" (Ctrl+F12) in the list. In the following dialog box,
             you can enter a name and a label for the list variant that will be
             stored together with your header layout.
             Note that general variants visible to every user have a name
                                                                           Page 3
           starting with the character '/'. User-specific variants on the other
           hand must begin with a letter and are only visible to you.
           Standard variants delivered by SAP in general start with a number
           and have preconfigured headers. You cannot change the SAP variants,
           but you can use them as template for your own enhancements, which
           you can store under another variant name.
       Valid releases
       Software Component                        Release
                                                 from            to
       SAP_APPL
            SAP Application
                                                 46C          - 46C
                                                 46A          - 46B          X
       Further components
       FI-AP-AP-D
        Reporting/Analysis/Display
       FI-AR-AR-D
        Reporting/Display/Credit Management
       Reference to related Notes
       Number    Short text
       306225    Line item: page break when printing lists
       213144    Line item: Header information disappears
       181697    Line item: Header information is missing

  • Issue: Saving dynamic form as reader extended (to allow saving) causes certain header rows to repeat

    I use LiveCycle to create electronic forms/worksheets for the group I support at work.  I've had two worksheets have this issue recently.  One I was able to fix by going to my previous version, re-editing, and re-saving.  The other continues to be a problem.  The worksheet is dynamic, and has several add row features.  The form continues to work fine, but the header rows in certain tables repeat when saved as a reader extended file which allows my users to save the form (required for our work).  I've completely re-done the worksheet from scratch, as well as re-editing from previous versions with no luck.  The best I can do is get repeats to change header rows.
    This is the dynamic file prior to saving as a reader extended document:
    And after:
    Any suggestions on how to fix this issue?  I can't spend hours re-creating the entire document if its just going to happen again...
    Thanks.

    The entire worksheet was created in Design View - so all the script written was done automatically by LiveCycle - The tables all exist with a single row to start, and rows have the ability to be added dynamically.  As far as the scripts referencing header rows, I do notice that the header rows in each table are all named the same ("header row") in the script - could this have caused a glitch?  In the hierarchy chart, they are separated out by a bracketed number, so it seems to realize they are separate.  But let me try renaming each one separately...
    Well that worked!  Its the first time I've been able to Extend the document without extra rows on this version of the worksheet!  So all I did for future users, was to make sure each Header Row was specifically named differently - so HeaderRow1, HeaderRow2, etc.
    Thank you so much!

  • Dynamic Header row for table not aligned properly on 2nd Page

    Hello Friends,
    The problem is like this :
    We have a table with dynamic number of columns and few of them are being hidden at runtime based on a configuration table.
    Now problem while printing is that first page is printing the header row, but same is not being repeated on subsequent pages.
    Please see the layout
    Header row is warped in 2 subforms both are flowed - western text so that they will get squeezed if column is hidden
    Here are the properties for subforms
    1) overflowLeader => Flow top-bottom
    2) OF_SF => Flowed , western text
    On 2nd page all the columns are getting aligned to left hand side whereas printing fine on first page.
    Thanks,
    Nitin

    Hi Nitin,
    in this case, you must use more nested wrapper subforms and set the root subform layout from "flow" to "positioned". I cannot give advice on how the wrapper subforms are organized, since it depends on your logic, just try it out.
    Cheers,
    Tao

  • Nested Tables Repeat Header Row RTF Output Not Working v5.6.2(PDF does)

    All,
    Has anyone used nested tables in heading rows where they are set to repeat nested table header row across page breaks for RTF output ? This seems to work for PDF generation (line breaking enforcement doesn't) but I don't even get RTF Header ROWS indicated in my RTF output document. I have enabled them in my RTF template for the outer table row plus the inner nested table. Is this possible for RTF output or have I not indicated something in my RTF template or grouping clause ??
    Thanks,
    Tom

    All,
    Has anyone used nested tables in heading rows where they are set to repeat nested table header row across page breaks for RTF output ? This seems to work for PDF generation (line breaking enforcement doesn't) but I don't even get RTF Header ROWS indicated in my RTF output document. I have enabled them in my RTF template for the outer table row plus the inner nested table. Is this possible for RTF output or have I not indicated something in my RTF template or grouping clause ??
    Thanks,
    Tom

  • Apex 4.0, want freeze panes like property for reports header row

    Hello all,
    I have some reports (Interactive, SQL) where when a user moves down to see the bottom rows, I want the header row should also move down with them, means the header row should remain constant in the screen only the data rows move up. Is there a way to do this.
    Is there any option to do this?
    Thanks
    Tauceef
    Edited by: Tauceef on Oct 2, 2010 11:33 AM

    Is this possible? If there's a way to reference the column values for conditional display, I haven't been able to find it. No, this is not possible. If you want to conditionally render individual values rather than entire columns based on the value of other columns, build the logic into the SQL query using <tt>case</tt> or <tt>decode</tt> so that either the value or null is returned depending on the condition, or use a custom report template with conditional column templates, or a custom named column template.

  • How to skip the header rows of the file using UTL_FILE?

    Hi,
    I created a procedure to read the file from shared location using UTl_FILE package. But, I stucked why because I don't know how to skip the header rows as those rows are headings for one of the report.Since, please help me.
    Regards,
    Vissu.....

    vissu wrote:
    Hi,
    I created a procedure to read the file from shared location using UTl_FILE package. But, I stucked why because I don't know how to skip the header rows as those rows are headings for one of the report.Since, please help me.
    Regards,
    Vissu.....UTL_FILE just reads data from the file. It has no concept of what could be a "header" or "body" or "records" or "footer" or any other data based concept. If you want to skip lines of a file, you will just need to read them using UTL_FILE and ignore them.

  • Making header row of table static on scrooling

    Hi,
    I want , when i scrool down or scrool up the table header row must stay unscrooled.
    How can i do that?
    Thanks.

    Hi Armin,
    I recommend not to use all these crappy workarounds.
    Unfortunately,  we, the developers,  can not ask the customers to upgrade for achieving this type of small requirements.
    Even we can not say "It is not possible in this version". That is the reason we are looking for workarounds.
    It is a very common requirement from the customers that is why SAP also have given this functionality in CE 7.1.
    Since it is not a product development , we don't have such a freedom.
    I did not expect such an answer from respectable  moderators like you.
    Regards,
    Siva
    Edited by: Siva Rama Krushna on Sep 25, 2009 11:19 PM

  • Stop header row in every column

    Hi
    I have ssrs 2005 - visual studio. I have header row appearing on every row. how do i stop to keep  1 header row.
    Regards
    Sonu

    Hi Sonu,
    Per my understanding that you have got the table header repeat on each row as below, right?
    Note: If the issue is not layout as above, please provide snapshot of the layout you got and also the report structure you have designed.
    I have tested on my local environment and can reproduce the issue, the issue caused by you have put the table header in the inside group the same with the value details. please redesign the report to make sure the table header will display at the first row(Outside
    the group of the details) and values display in the second row(Details).
    If you still have any problem, please provide more details about the setting you have done in the report and also the snapshot I have mentioned.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • How to apply a commandlink to an ADF Header row cell

    I am implementing an ADF read only table. I have one column that I am designating as an add/delete column. In simple terms I would like the cell for this column in the header row to have a command link behind it which pops up an "Add Row" form. For each individual detail row the column will have a command link with the "Delete" function. I am having no problems with the delete.
    My question is, "Does anyone have guidance on how to apply a command link to a header row cell"

    Here is a sample based on your use-case:
    <af:table value="#{bindings.Employees.collectionModel}" var="row" rows="#{bindings.Employees.rangeSize}"
    emptyText="#{bindings.Employees.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.Employees.rangeSize}" rowBandingInterval="0"
    selectedRowKeys="#{bindings.Employees.collectionModel.selectedRow}"
    selectionListener="#{bindings.Employees.collectionModel.makeCurrent}" rowSelection="single"
    id="t1">
    <af:column sortProperty="#{bindings.Employees.hints.FirstName.name}" sortable="false"
    headerText="#{bindings.Employees.hints.FirstName.label}" id="c1">
    <af:outputText value="#{row.FirstName}" id="ot1"/>
    </af:column>
    <af:column sortProperty="#{bindings.Employees.hints.LastName.name}" sortable="false"
    headerText="#{bindings.Employees.hints.LastName.label}" id="c2">
    <af:outputText value="#{row.LastName}" id="ot2"/>
    </af:column>
    *<af:column id="c3">*
    *<f:facet name="header">*
    *<af:commandLink text="Add" id="cl2"/>*
    *</f:facet>*
    *<af:commandLink text="Delete" id="cl1"/>*
    *</af:column>*
    </af:table>

Maybe you are looking for

  • OATS: Error Creating datasource client connection

    Hi All When i try to add montiors in the OATS controller machine i am getting the following error . Error while creating datasource client connection. i am trying to monitor a linux machine. I am able to ping that machine from controller. when i trie

  • CSS problem?

    I'm not sure what I did, but somehow I have managed to change a preference (or something?) in DW8 which is screwing with my templates and HTML files. The buttons I've created are now coming out as linked text, and the format of the page in the templa

  • Code Samples for SDK programming in Java

    I need a complete set of Code Samples for SDK programming in Java, like the one that is available in VB and .Net. For Example, if you look at the following directory of machine where SDK is installed, C:\ProgramFiles\SAP\SAP Business One SDK\Samples\

  • Printing in CS5 using ICC profiles.

    How do I use downloaded ICC paper profiles in CS5 when printing? I have downloaded some ICC profiles for Inkpress papers. They are in my download folder, but when I open CS5 I can't use the Inkpress profiles. Message was edited by: brianpmccallion

  • Password error while using biserverxmlexec utility

    We are migrating our DEV RPD to production and making use of the biserverxmlexec utility. We have followed all the steps described in 10.3.5 Moving from Test to Production Environments at https://docs.oracle.com/cd/E14571_01/bi.1111/e16364/xml_about.