Report - 2 rows for 1 record

How do I modify a report so that each record is represented by 2 rows? For instance, see the following columns, where COMMENT would always be in a separate row below the other attributes.:
(record 1)
DATE, AUTHOR, SUBJECT
COMMENT
(record2)
DATE, AUTHOR, SUBJECT
COMMENT
etc....
I've tried modifying a report template, but to no avail.
Thanks,
John

Hi John,
in a "Named Column Report Template" as Scott shows in his posting you have to add a placeholder for each column you use in your report. Eg. #EMPNO#, #ENAME#, ... That way you have full control of the report row layout.
So your template HTML code would probably look something like
<tr>
<td class="t15data">#AUTHOR#</td>
<td class="t15data">#DATE#</td>
<td class="t15data">#SUBJECT#</td>
</tr>
<tr>
<td class="t15data">#COMMENT#</td>
</tr>I haven't really tried the HTML code, but you should get an idea how the template code should look like.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Similar Messages

  • Report two rows for a given group item

    All,
    I need to generate a report that will list credits on one line and related debits on the next line. Kind of like the following:
    Account Name_____Amount
    Cash ................. 1000.00 ...... (this line would reflect positive entries, or deposits)
    Cash .................... 20.00 - ...... (this line would reflect the negative entries, or withdrawls)
    Is there an easy way to do something like this?
    We're running the desktop edition of Discoverer 10g.
    Thanks,
    Gary F.

    Hi Rod,
    The plot thickens...
    The report I'm working on will read through a table of invoiced items, much like the following:
    Bill_Charges Table
    Company
    Year
    Month
    Week
    Bill_Code
    Retail_Amount
    Discount_Amount
    Based on the Bill_Code, I need to aggregate the Retail_Amount, and the Discount_Amount.
    The data can look like this:
    ABC Company, 2009,08,01,102,100.00,10
    ABC Company, 2009,08,01,103,90.00,15
    ABC Company, 2009,08,01,104,100.00,5
    ABC Company, 2009,08,01,105,100.00,5
    The report will then need to report two rows for all Bill_Codes in the 100s range, first the Retail_Amount, and then the Discount_Amount directly below it, in the next row, as seen below:
    Company Name . . . . . . .Billed Amounts
    ABC Company................$390.00 (This would be the sum of the Retail_Amount column)
    .................................. $35.00 (this would be the sum of the Discount_Amount column)
    My gut feeling is that this will need to be a pivot table, but I'm so rusty on pivot tables that I'd need more than just a squirt can to limber me up.
    Any help you can throw my way would be greatly appreciated.
    Thanks for all you do for us,
    Gary F.

  • BI Report is showing two rows for a single record

    Dear Experts
    This is Raja
    I am Facing one issue in BI Report,
    I have created report based on a Infocube which is getting data from two DSO. one is Standard [ Billing Condition Data]and another one is ZDSO[Targets}. these two requests go in the Infocube
    1. Budget- zdbudget [DSO]
    2.Actuals -0sd_o06 [DSO]
    I need to make report  Like this :For a specific period
    EX:1
    Material    Sold to party    Actual   Budget/Target     Variance    Actual YTD  Budget YTD
    M100        S100                 21         30                         10               21                  30
    here budget{ Budget DSO} values i am getting Material wise sold to party is not coming through file. But for Actual values sold to party is coming, that's why my report is showing like this..
    Ex:2
    Material    Sold to party    Actual   Budget/Target     Variance    Actual YTD  Budget YTD
    M100        S100                 21                                      10               21                 
                                      30                       -30                                        30
    Since the sold to party is not available in Budget DSO in the report For Every Material it's showing Two Rows.
    How can bring this in to one Line..Like EX:1
    Please give Valuable Suggestions..

    Say the data is like this.
    Material Sold to Party Act Bud
    M1          S1               100   0
    M1          #                    0    50
    M1          S2               200   0
    And you want to see like below.
    Material Sold to Party Act Bud
    M1          S1               100   50
    M1          S2               200   50
    If this is your requirement, let the sold to party be in Rows.
    In columns, for budget, create a local selection, drag budget kf, sold to party (restrict this by # and right click and choose constant selection). This makes the budget kf independent of what is coming in the rows and always shows data corresponding to sold to party #. Hope this is clear.

  • Display the total number of rows for the report in OBIEE 11g

    Hi, In obiee 11g, the pagination will be 1-25. Is there any possiblity in obiee to show the total rows count next to pagination. Ex: if the result contains 120 rows. it should display after the pagination
    Records 1-25. Total of Records : 120
    Is there any way we can display the total number of rows for the report.
    Kindly help me.. Its very urgent requirement.
    MAny Thank in advacne

    Check this http://obiee100.blogspot.com/2011/07/display-total-number-of-records-in.html
    and
    http://docs.oracle.com/cd/E28280_01/bi.1111/e10544/appsql.htm#CHDCDIDA
    You have to go something like as suggested in previous link.
    Mark as correct/helpful

  • Classic report - Condition evaluated for every row

    APEX 4.2.2
    I am seeing something strange in a classic report region. A report started to fail at run-time with a strange error about bad syntax. When I run the page in debug mode, I see the following
    print column headings
    rows loop: 30 row(s)
    ...Execute Statement: begin wwv_flow.g_boolean := '' is not null;
    end;
    ......Result = false
    ...Execute Statement: begin wwv_flow.g_boolean := '' is not null;
    end;
    ......Result = false
    ...Execute Statement: begin wwv_flow.g_boolean := 'string with a embedded ' single quote' is not null;
    end;
    ......Result = true
    Looks like the APEX engine is evaluating a boolean expression after rendering and each and every row in the report. And for some strange reason, it is using a piece of data from my query's resultset and failing because of the bad syntax introduced due to the single-quote in the string.
    I have never seen this before. Any idea what is going on?
    Thanks

    Howdy Paul, sorry should have provided all the details. No, this is a standard generic column template. Ah, you are right, drat I should have looked closer. The template has use a condition to show either a highlighted row or normal one. Sorry for the false alarm, I can take it from here. Enjoy your flight :-)

  • Report  for "record payment history"  for customer ?

    Report  for "record payment history"  for customer ?
    Please send it.

    Dear Goutam
    Through <b>FBL5N</b>, you have to select "<b>Cleared items</b>" with "from to date" and execute.
    You will get a list which can then be downloaded as excel by selecting "List" on top left followed by "export" and "spreadsheet".
    Thanks
    G. Lakshmipathi

  • ALV Weddynpro : Text color for a row(for a particular record)

    Hello Friends,
    Situation : Webdynpro App utilizing re-usable ALV component to Edit(changed/modify) Employee records.
                     I have used to the class cl_salv_wd_uie_a_input to make certain columns read_only and colored(cell background only).
    My requirement :
    Suppose there are 4  rows and based on  if a certain condition is staisfied(lets say 2 rows), then i have to  changed the color ONLY THE TEXT(to RED). There is certain meaning for the rows for such records which users can easily interpret.
    I have tried to used CL_SALV_WD_UIE_TEXT_VIEW(which i have successfully color coded the texts),  but i lose the editing capabilities.
    The webdynpro App uses a EDITABLE-ALV meaning that, user can  insert/modify/delete records and save them in the DB.
    Is there anyway to have both this features using above said situations and consequences?
    OR
    Pls share any workaround if anyone has tried this before?
    Regards
    Vinay.
    Example.
      PERNR
      COL1
      COL2
      102984
      UYYER
      IIIELX
      102983
      DFKLJJ
      DOFUOU
      102985
      DOFJDOFU
      DFOIUOIU
      102988
      DFOADSFUOU
      OSDUFOU

    Hi,
    We can assign semantic colors only to text view fields. So in this case since you are forcibly changing the  view to text view, for text coloring, we are losing the edit fields capabilities. Instead setting the type of field( text view / input view ) based on the your condition could be best, so that editing capabilities is also not missed and text coloring is also not missed.
    Or you can set all fields to input fields and set the read only/edit property based on the condition and set the cell design of the fields accordingly, so that the users can distinguish easily.
    Regards,
    Harsha

  • Reporting out multiple lookup rows for one fact row. NON-Aggregating

    Hi,
    I have a situation where I have multiple Look Up rows for one fact row. I want to report them out so that I get One row with the Look Up and Fact information in it and the next row with Just the Look Up information in it.
    The version of Oracle I'm using is 9.2.0.6.0.
    Look Up Table
    Deal Order Number     Partial Order ID     INVENTORY_ITEM_ID     MANUFACTURER_DESCRIPTION
    639416-1                1                     43601                     Check Point
    639416-1                1                     98809                      Nokia
    637260-1                 1                     56657                   IBM
    637260-1                 1                     35467                   QuantumFact Table
    Deal Order Number     Partial Order ID     Cost
    639416-1                 1                     3825.3
    637260-1                  1                   3610.8Desired result:
    Deal Order Number     Partial Order ID     MANUFACTURER_DESCRIPTION     Cost
    639416-1                    1                        Check Point            3825.3
    639416-1                     1                         Nokia
    637260-1                     1                         Ibm                   3610.8
    637260-1                     1                         QuantumBasically I'd like the ability to report out every row of my report with the first row containing the Fact Data and then the following rows containing the Look Up data that are also associated with that fact column but not report the data.
    I'm doing this because there's Grand totaling at the bottom of the report that I don't want to mess with.
    Plus instead of concatenating the Look Up values together, I need to show them in their own cells in their own rows for view ability.
    I think an Analytic function might take care of this but I'm not sure how. Can anyone help?
    Thanks in Advance!

    Hi,
    Join the two tables as you normally would.
    You're right about analytic functions being useful. The anaylytic ROW_NUMBER function can number each row of the join, with a separate count for each unique id from lookup.
    Use a CASE statement to display certain items from fact when ROW_NUMBER retuns 1, and hide them otherwise.
    SELECT     f.order_number
    ,     f.partial_order_number
    ,     l.manufacturer_description
    ,     CASE
              WHEN     ROW_NUMBER () OVER
                        ( PARTITION BY     f.order_number
                          ,          f.partial_order_number
                          ORDER BY     l.manufacturer_description
                        ) = 1
              THEN     cost
         END     AS cost_col
    FROM     fact     f
    JOIN     lookup     l     ON     f.order_number          = l.order_number
                   AND     f.partial_order_number     = l.partial_order_number
    ORDER BY     f.order_number
    ,          f.partial_order_number
    ,          l.manufacturer_description
    ;

  • Charts in Report Designer - choosing columns and rows for categories

    Hi,
    I am trying to create a pie chart in report designer from a data provider which has 4 rows and 4 columns. As a default the chart created is using the 1st row for data and the four columns as categories.I want the pie chart  to use the first column for categories and 2nd column for data. How do I change the default chart behaviour?
    Best regards,
    Jai

    Hi Jai,
    take a look at:
    "Class 1 Chart Types" in http://help.sap.com/saphelp_nw04s/helpdata/en/c9/08533b97037963e10000000a114084/frameset.htm
    Link is regarding WAD web item but editing is the same in Report Designer.
    Here you will get information with example query for editing pie charts and what is possible or not.
    like:
    Structure of the Data Provider for a Pie Chart
    In a pie chart, the underlying table has only one row. The values in the columns form the pie segments.
    If the table contains more than one row, the additional rows are ignored when the table is converted into a chart. However, you can define which row is to be used (see below).
    Additional the link describes how to build the query for your requirement.
    Regards
    Andreas

  • How to add a row for every 5 records using logic:iterate

    Hi,
    In my application, using logic:iterate iam displaying 20 records per page.
    I want to insert a row for every 5 records.
    Please tell how to insert that row.
    Thanks in advance.
    Mohan

    I think this could work for you
    for (int x=1 ; x<=20 ; x++) {
    addRowWithRecord
    if (x%5==0)
    addEmptyRow
    }

  • Multiple parameters one row for each record

    I have this query I want the user to be able to allow the user to enter multiple MATL_CODE_MOD as a parameters, the problem is that the GURMAIL table have multiple records one for each GURMAIL_MATL_CODE_MOD, so it will give me duplicates.. How I can code this, so I can allow the user to enter multiple MATL_CODE_MOD codes, and have only one row for each record...
    and GURMAIL_MATL_CODE_MOD in ('8IBC','8IBD')
    select
    spriden_id,        
    spbpers_name_suffix   name_suffix,
    spbpers_name_prefix   name_prefix,
    spriden_last_name     last_name,
    spriden_first_name    first_name,
    spriden_mi            mi,
    srbrecr_term_code,
    srbrecr_majr_code,
    srbrecr_program_1,
    saturn_midd.utlq.f_matl_code_type(srbrecr_pidm)
    FROM
    saturn.srbrecr,
    saturn.spriden,
    saturn.spbpers,
    SATURN.SPRADDR,
    general.gurmail
    WHERE
    spriden_pidm = srbrecr_pidm
    and gurmail_pidm = spriden_pidm
    AND spriden_pidm = spraddr_pidm 
    --and srbrecr_term_code = decode(p_term  ,'%',SRBRECR_TERM_CODE,p_term)
    and spbpers_pidm = spriden_pidm
    and spriden_change_ind is null
    --and gurmail_matl_code_mod
    and SRBRECR_PROGRAM_1 = 'CMQ'
    and GURMAIL_MATL_CODE_MOD in ('8IBC','8IBD')
    --AND SPRADDR_ATYP_CODE = 'CM'
    AND SPRADDR_STREET_LINE1 IS NOT NULL;

    Hi,
    SELECT DISTINCT ...will keep duplicate rows out of the result set.
    Depending on your data, another possibility might be to not join the table that contains GURMAIL_MATL_CODE_MOD. Do an EXISTS sub-query on that table instead.
    If you need more help, post some sample data from all the tables, and the results you want from that data.
    Simplify, if possible, You can probably post a problem with 2 or 3 tables, each with 2 or 3 columns, that will have the same answer.
    Edited by: Frank Kulash on Apr 22, 2009 2:28 PM

  • How to make RECORD for saving multiple rows for each employee..

    Hi,
    How can I create a record for saving multiple rows for each employee... (parent child relationship)
    I have created all required fields, then created a record, and then created a page. in that page i dragged-n-dropped a scroll area on that page and dropped all required fields from record into that scroll-area.
    whats is happening that its saving ONE (the first) record fine, but for the second record its not storing EMPLID for that row..
    Will I have to make some change at RECORD level ?
    OR Will i have to make some configuration in parent component ?

    Hi, the problem is solved. The record will be created in same way. just create more then one keys (allowing to make composite key in DB table)

  • Multiple Rows for Same Value in Matrix Report

    Hello
    I am trying to create a matrix report that shows different page for each Category. Report looks like follows:
    Page1( for Category '1')
    Agent |
    Calls |
    Sales
    TestAgent1 18
    3
    TestAgent1 5
    1
    Page2( for Category '2')
    Agent |
    Calls |
    Sales
    TestAgent1 26
    5
    TestAgent1 13
    2
    The issue is as you can see in above table, that i am getting repeated rows for same agents. I have tried making a parent group on Agent but it would still keep showing multiple rows. Ideally, it should show each agent only once in each page.
    Any help would be appreciated.
    PS: I am new to SSRS and this is my first time on microsoft blog, so i apologize if i wasn't able to follow the protocols/culture here.
    Thanks

    Hi M Adnan,
    According to your description, you want to show a total Calls and total Sales for same agent so that it has only one row for each agent in your category group. Right?
    In this scenario, if you only have a row group for category, it will show all “detail rows” in this groups even the agent of these rows are same one. So we can add a row group, set those detail rows group by agent and use Sum function to get the total Calls
    and Sales. It looks like below:
    If we want to display each Page in horizontal, we just need one Category column group for grouping rows and use sum function to get total Calls and Sales for each agent. It looks like below:
    Reference:
    Understanding Groups (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • Please help with an sql to show more than one records into single row for each student

    From the following data I would like to create an sql to get the information  as the following layout
    studentid,  firstTerm,  EnglishMark1,ScienceMark1,MathsMark1, Secondterm,EnglishMark2,ScienceMark2,MathsMark2,
    ThirdTerm,EnglishMark3,ScienceMark3,MathsMark3 // As single rows for each student
    Example
    1 First, 30,40,20,Sec,30,40,20,  simillarly next row for next row for another sudent. Please help to generate the sql for the same.
    Please help it would be very appreciate.
    With Thanks
    Pol
    polachan

    create table yourdata (studentid int, term varchar(10), section varchar(50), Mark int)
    insert into yourdata values
    (1,'First','Math',20),(1,'First','English',30),(1,'First','Science',40),
    (2,'First','Math',20),(2,'First','English',30),(2,'First','Science',40),
    (3,'First','Math',20),(3,'First','English',30),(3,'First','Science',40),
    (1,'Sec','Math',20),(1,'Sec','English',30),(1,'Sec','Science',40),
    (2,'Sec','Math',20),(2,'Sec','English',30),(2,'Sec','Science',40),
    (3,'Sec','Math',20),(3,'Sec','English',30),(3,'Sec','Science',40)
    Select studentid
    ,max(case when term='First' and section='English' Then Mark End) as EnglishMark1
    ,max(case when term='First' and section='Science' Then Mark End) as ScienceMark1
    ,max(case when term='First' and section='Math' Then Mark End) as MathMark1
    ,max(case when term='Sec' and section='English' Then Mark End) as EnglishMark2
    ,max(case when term='Sec' and section='Science' Then Mark End) as ScienceMark2
    ,max(case when term='Sec' and section='Math' Then Mark End) as MathMark2
    ,max(case when term='Third' and section='English' Then Mark End) as EnglishMark3
    ,max(case when term='Third' and section='Science' Then Mark End) as ScienceMark3
    ,max(case when term='Third' and section='Math' Then Mark End) as MathMark3
    From yourdata
    Group by studentid
    drop table yourdata

  • Filtering a Report on the active record of another Report on the same page

    Hello,
    I have a Form and Report on the same page in an APEX app. The interactive report is used for sorting/filtering etc. and the Form is used to present the data for one record at a time, as well as allow updates in selected fields. This was done using the wizards, the little 'edit' button is clicked to change the form to the selected record.
    I also have (or want to have) a second non-interactive report on the page, which displays some records based on the record of the main report that is currently selected and appearing in the form.
    I tried doing a simple 'SELECT fields WHERE link field is equal to main report', but it always says no data found.
    Basically, I need to be able to have a query for the second report that says 'SELECT these fields WHERE the site is equal to the site currently being displayed in the form'.
    When the little pencil/paper 'edit' button is clicked on a report, does this set some ActiveRow or something like this that I can use to filter the second report?
    As you can tell from this post, I am in my database skill infancy, and any literature/pointers on how to achieve this (outside of MS ACCESS...) would be appreciated.

    Okay, I have somewhat got my head around Column Links, and have put the key link field into the URL:
    The value is P4_MDF, and in this URL example it has taken the value of 'WLAH01'
    f?p=880:4:3924084145794812::NO::P4_MDF,P4_ESA_CODE,P4_SITE_NAME:WLAH01%2CWLAH%2CWYRALLAH
    Now I just need to work out how to use this value in the URL to filter the classic report.
    I have used this query:
    SELECT *
    FROM
    "MACHINE_INFO"
    WHERE CCP = :P4_MDF
    As CCP in the report im trying to filter is the same as MDF in the IR that I am clicking the Column Link
    This is the Debug for the 2nd 'filtered' report (which filters everything)
    0.09: show report
    0.09: determine column headings
    0.09: parse query as: EXPAT
    0.09: binding: ":P4_MDF"="P4_MDF" value="WLAH01"
    0.09: print column headings
    0.09: rows loop: 15 row(s)
    I'm slowly getting the hang of this, any assistance would be great!

Maybe you are looking for

  • HT1296 red dot events in iphone calendar do not sync to outlook, only blue dot events

    In first calendar sync with outlook after setting up iCloud account, there are numerous double entries for events on iPhone calendar, one with red dot and the other with blue dot. Also, some of red dot events on iPhone calendar do not sync to Outlook

  • Region 2 DVD Problem

    I have Lion 10.7.1 on my MacBook Pro. I want to view a Region 2 DVD. I insert the disc, but instead of getting a popup message asking if I want to change regions, it ejects the DVD. Is this something new in Lion? How do I change regions?

  • Calculate the sum of values in excel file and import it to SQL table using SSIS

    Hi, Can some one help me how to do auto sum of columns in SQL table  using SSIS in SQL table the HRA , PF and Basic should not come, Only it should appear in basic pay as the sum of HRA , PF and Basic...

  • Tax Exemption for LTA

    HI Pals, Iam maintaing a Wage type LTA1 for LTA Exemption.  I have maintained a LTA amount of Rs.20000 in Infotype 582. In the same month Rs.20000 is paid as LTA thru IT 0015.   But the entire 20000 rupees is considered for Taxation. I have maintaine

  • HP C7280: Scan Photo to iPhoto?

    My HP C7280 is connected wirelessly to iMac. There is no printing problem from the iMac. Also, I'm able to scan and print documents. However, when I attempt to "scan to computer," I'm told: "No Scan Options"! I'm at a loss trying to find a "plain lan