Multiple breaks in a report
I am producing a report which has distinct values for all columns except one, for which there are multiple values.
The problem is that all the distinct value columns are displayed multiple times in the report.
I want them only displayed once. I can use "BREAK ON" to make sure the first of these columns only has its value displayed once, but how do I do this to the other columns? Multiple "BREAK ON" statements don't do it.
> Hi, but what if there is another field - e.g.
deptname - and I only want this field to display a
value once in the same name as deptno?
Sorry, I don't understand this. Could you explain some more?
Message was edited by:
Rob van Wijk
or maybe I do understand, but I don't see the problem:
SQL> break on deptno on dname on job skip 1
SQL> select e.deptno, d.dname, e.job, e.ename from dept d, emp e where e.deptno = d.deptno order by 1,2,3
2 /
DEPTNO DNAME JOB ENAME
10 ACCOUNTING CLERK MILLER
MANAGER CLARK
PRESIDENT KING
20 RESEARCH ANALYST SCOTT
FORD
CLERK ADAMS
SMITH
MANAGER JONES
30 SALES CLERK JAMES
MANAGER BLAKE
SALESMAN MARTIN
WARD
ALLEN
TURNER
14 rijen zijn geselecteerd.
Similar Messages
-
I have a report with the following layout:
Section on field - vertical table with 4 columns
Section
Column1 - Column2 - Column3 - Column4
Section
Column1 - Column2 - Column3 - Column4
If I have no breaks in my report, all results are shown correctly (with paging) but no additional white space between the sections
If I add one break (on Column1), my results are still OK (again with paging) but no additional white space between the sections
If I add a second break (on Column2), my results are not OK anymore. My results are now shown in multiple pages with a lot of white space between the sections. It is as if my report takes into account the number of vertical rows it can show (but I do not have this behavior when I only have 1 break in my report).
How can this be solved?
Kind regards,
LieselotHi
The same problem arises when i used two breaks . so what i had done is i took obj from one break and applied as section . And then i applied break on second obj .
here is an example
continent country state revenue
Asia china aaa 111
Asia india bbb 123
europe london ccc 131
if you apply breaks on continent and country the problem arises . so what i had done is
continent
country state revenue
ex:
Asia(section)
country sate revenue
china aaa 111
india bbb 123
europe(section2)
country sate revenue
london ccc 131
Hope this helps u
Sunil -
Hi all,
I am sending a report to external user e-mail id from SAP. The user is receiving the report in html format.
The user asks me they need a page break on the report after each customer data. I am wondering is it possible to have a page break in html report? If yes, how it is possible?Hi,
I insist : it is not possible with HTML to insert Page breaks. BUT, Tammie is right! You can use CSS (Cascade Style Sheet) to insert page breaks thanks to few lines of code in your HTML page.
Follow this link to have a look at a very simple piece of code to illustrate this :
http://www.codeave.com/css/code.asp?u_log=4016
Here it the code if you don't have access to this URL :
<html>
<head>
<title>CodeAve.com/CSS - Page Break</title>
<body bgcolor="#FFFFFF">
<center>
Page 1
<br style="page-break-before:always;">
Page 2
<br style="page-break-after:always;">
Page 3
<p>
Use print preview on your browser to see how<br>
this page would print out to three pages
</center>
</body>
</html>
Hope it helps.
Don't forget to close the post if solved (so that search in the forum is easier), and reward points (so that SDN members are happy !) -
How to remove the page break for CSV report
Hi,
I'm working on a rdf report and have an issue with page break.
As usual there exits a page break in the report output. how do I remove it.
work around: set Page break before/after : NO
worked on margin re-size, how ever could not resolve the issue.
Can any one help me on this.
Thanks in advance.
Thanks,
SanthoshThere are two ways to do this:
1) If you want to remove and individual dimension from a presentation, you can hide the dimension. This can be performed directly from within QueryBuilder. Within the first section of Query Builder that shows the selected measures selected and associated dimensions, simply remove the required dimensions from the right dialog panel.
2) To hide all page items within a presentation, simply add the following the property, pagingControlVisible="False", to the presentation tag in your JSP. For example:
<orabi:Presentation location="Local Computer Sales/Products/KPI Sales Prior Period and Prior Year" id="BIProductKPIs_pres2" pagingControlVisible="False"/>
Hope this helps
Business Intelligence Beans Product Management Team
Oracle Corporation -
How to select multiple row in ALV report
Hi friends,
1. How to select multiple row in ALV report
( How to set tab in ALV report and want to select multiple line.)
Thanking you.
SubashHi Sahoo,
If you are using the class CL_GUI_ALV_GRID. In methods SET_TABLE_FOR_FIRST_DISPLAY.
in layout structure you will find field SEL_MODE
pass :
LS_LAYOUT-SEL_MODE = 'A'.
In PAI.
CALL METHOD GRID->GET_SELECTED_ROWS
IMPORTING
ET_INDEX_ROWS = T_ROWS
ET_ROW_NO = T_ROWID.
Hope these will solve your problem.
Regards,
Kumar M. -
Multiple Columns in sub-report
Post Author: Marcotte
CA Forum: General
I am creating an Inventory Disposition form. At the top of the report, I want to list all of the Reason Codes the user may select. There are currently 30 Reason Codes, but this could grow in the future. Therefore, it is impractical to list all the the Reason Codes in one column. I would like to list them in two columns at the top of my report (perhaps as a sub-report in the main Report Header).
I know how to create a multi-column report via the Section Expert, however what I can't figure out is how to force it to start the second column after a pre-set number of records or inches. Here's the layout of the report I'm looking for:
What happens is that it lists all 30 records in the first column because it doesn't reach a page break. How do I insert a page break into a report?
There is a Reason Code Group field in the table which I can use to break the Codes into smaller groups (there are about 6 groups), if that helps.Post Author: Marcotte
CA Forum: General
Aha! "Across Then Down", under the Layout Tab. -
Passing multiple parameters between two report portlets on the same page
Hi,
I want to pass multiple parameters between two report portlets on the same page.
I have been succussful passing a single parameter between two portlets. The
following are the steps :
(1) Created first report based on the query
SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
(2) Created 2nd report
select * from EMP where DEPTNO = :dept_code
(3) Added pl/sql code before display page on the 2nd report
portal30.wwv_name_value.replace_value(
l_arg_names, l_arg_values,
p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
et_value('dept_code'),10)));
(4) Created a page and added these reports as portlets.
Sofar it works fine for one parameter (deptno) . Now I want to add one more
parameter say empno to my first report query and would like to pass both the
parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
Thanks
AsimHi,
You will have to do the same thing
The select will be like this
SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
FROM EMP
In the additional plsql code do the same for empno like this
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
Thanks,
Sharmila -
Date range to be displayed & Displaying multiple values on the report
Hi,
I have date range parameters, but I also need it to be displayed it on the report. Is there any way I can display it. E.G If a parameter is created one can drag and drop it on the report if it needs to be displayed on the report, I tried to do the same for the date range parameter but it does not work.
Also If a parameter is created by selecting the option 'Allow Multiple Values', and if you drag and drop it on the report only the first value is displayed and the rest does not show. Has anyone tried this before and been successful in displaying multiple values in the report.
Thanks in advance.Hi,
A multi-value parameter is actually treated as an array in Crystal Reports.
To display the values selected in the parameter, create a formula from the Field Explorer and type this code:
Join({?ParameterName},",");
Place this formula on the header or the footer sections of the report.
Regarding the date range issue, please follow Sastry's advice and it should work fine.
Make sure you're using the parameter in the Minimum and Maximum functions. For eg: If I was to create a date range parameter called OrderDate, my formula to show the start date would look like this:
Minimum({?OrderDate})
-Abhilash -
Detail Information to show in multiple areas of a report
Post Author: Theresa Rose
CA Forum: General
I need detail information to show up on multiple areas of a report that I am working on.There are different areas on a form that I am working on that require multiple lines of detail information. I have tried using a subreport, but when it goes to a second page it doesn't show the correct detail information.Ok, I think I got it. I needed to blank out Number of Rows(item), Maximum row count and only populate Number of Rows. I was sure I did that before and it didnt work.
Do you think that the Sessions in Apex can cause unexpected results? I have found that when I make changes I have to log all the way out of Apex, close my browser and reopen everything to ensure that my change took. Does anyone else have this issue? I can move this into a different thread if need be.
Thx! -
Detail information in multiple areas of a report
Post Author: Theresa Rose
CA Forum: Crystal Reports
I need detail information to show up on multiple areas of a report that I am working on.There are different areas on a form that I am working on that require multiple lines of detail information. I have tried using a subreport, but when it goes to a second page it doesn't show the correct detail information.Thanks Gupta.
Please let me know if this BI WAD command is available in 3.5 also or in just 7.0. we are in 3.5 now. if it is 3.5 as well, can you please tell me how to get there.
Thanks
Krishna -
OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time
OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time
Exclude:
you Can exclude columns in either Table view or pivot table view by placing those columns in Excluded section but you will notice that it will appear in bi server parsed sql query.
Not sure you were asking about runtime??
would you please explain your question!!
Thanks
NK
Edited by: DNK on May 8, 2013 9:48 PM -
How to create multiple selection screens in reports
How to create multiple selection screens in reports
Thanks,
SridharEx: hope you will find an idea from the below example :
SELECTION-SCREEN BEGIN OF BLOCK SEL1 WITH FRAME TITLE TIT1.
PARAMETERS: CITYFR LIKE SPFLI-CITYFORM,
CITYTO LIKE SPFLI-CITYFORM.
SELECTION-SCREEN end OF BLOCK SEL1
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
SELECTION-SCREEN INCLUDE BLOCKS SEL1.
SELECTION-SCREEN BEGIN OF BLOCK SEL2 WITH FRAME TITLE TIT2 .
PARAMETERS: AIRPFFR LIKE SPFLI-AIRPFROM,
AIRPTO LIKE SPFLI-AIRPTO.
SELECTION-SCREEN END OF BLOCK SEL2
SELECTION-SCREEN END OF SCREEN 5000.
INITIALIZATION.
TIT1 = 'ITIES'.
aT SELECTION-SCREEN.
CASE SY-DYNNR.
WHEN '0500'.
MESSAGE W159(at) WITH 'SCREEN 500'.
WHEN '1000'.
MESSAGE W159(at) WITH 'SCREEN 1000'.
ENDCASE.
START-OF-SELECTION.
TIT1 = 'CITIES FOR AIRPORTS'.
TIT2 = 'AIRPORTS'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
TIT1 = 'CITIES AGAIN'.
CALL SELECTION-SCREEN 1000 STARTING AT 10 10. -
Is there a way to link the x-axis of multiple graphs in a report? Using DIAdem 12.0
Is there a way to link the x-axis of multiple graphs in a report? Using DIAdem 12.0
What I am after is this... If I have multiple 2D axis systems in a report with each y axis showing different channels of a particular data file and with each x axis being the time stamp of that data file, rather than changing the x axis values of each 2D axis system to zoom in on a time slice, I'd like to change only one and have all the others match. So I suppose yes, I want each of the multiple 2D axis systems to have the same x axis, but I want unique 2D axis systems, not one system with multiple y axis or "n systems". I'm hesitant to post a sample report as this is a public forum. Thank you.
-
JRC - multiple tables in crystal report
Post Author: Crystal Wong
CA Forum: JAVA
Hi, I am using the Java Reporting component of Crystal Report XI R2 SP2. I encounter error when pushing 2 Java resultset to a report as a datasource, like the code belows, ReportClientDocument reportClientDoc = new ReportClientDocument(); reportClientDoc.open(REPORT_NAME, 0); String query1 = "SELECT COLUMN1, COLUMN2 FROM TABLE1" ;ResultSet resultSet1 = getResultSetFromQuery(query1, ResultSet.TYPE_SCROLL_INSENSITIVE); String tableAlias1 = reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();reportClientDoc.getDatabaseController().setDataSource(resultSet1, tableAlias1 , tableAlias1); String query1 = "SELECT COLUMN1, COLUMN2 FROM TABLE2" ;ResultSet resultSet2 = getResultSetFromQuery(query2, ResultSet.TYPE_SCROLL_INSENSITIVE);String tableAlias2 = reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(1).getAlias();reportClientDoc.getDatabaseController().setDataSource(resultSet2, tableAlias2 , tableAlias2); I wanna to ask, Does JRC support multiple tables in a report with the approach suggested above? Thanks a lot!Post Author: Crystal Wong
CA Forum: JAVA
Finally, I decided to use a join SQL or SubReport to do it.SubReport can support multiple pushing of ResultSet. -
Is there a way to pass an array or structure for example as parameters, in addition to a query, or multiple queries to the Report Builder in CF8? I believe this was recommended by users to be in CF8.
BrianO,
Although it's been a while, I thought I'd provide the code to do this for you. It works for me in CF8, and probably will in CF7.
Here I create a structure called My, and provide that one parameter to my CFReportParam tag.
<CFSet My = {
Client = "Client Name",
ReportDateFrom = DateFormat(ThisStartDate, DateMask),
ReportDateTo = DateFormat(ThisEndDate, DateMask),
PageHeaderImage = ImagePath & "\Logos\Page_Header.png",
WatermarkImage = ImagePath & "\Logos\Watermark.png",
GetBarSummary = GetBarSummary,
GetPieSummary = GetPieSummary
}>
<CFReport Template="#ReportPath#\SpendSummary.cfr" Format="PDF" Query="GetSummary">
<CFReportParam Name="My" Value="#My#">
</CFReport>
Inside the report itself, reference the given parameter as Param.My.PageHeaderImage for example. It can be referenced that way from any expression inside the report builder. You can even use the queries as the data source for charts (using the Data From a Query -> Query Builder -> Advanced) by entering "Param.My.GetPieSummary" where it says "Variable containing query object".
HTH
Swift
Maybe you are looking for
-
I just downloaded the HP Smart Web Printing which is free for those who purchase printers. It provides ability to select and clip or print web pages. It works on Explorer but not Firefox 4. There are many such questions on forums in both HP and Firef
-
Anyone else's iPhone 4s speaker not working after update to iOS 6.1?
My speaker does not work after updating the software to iOS 6.1. No sound for incoming calls or texts, no speakerphone, no siri, no music or any sounds played from apps. Headphones still work as does anything plugged into the headphone jack. I've che
-
Changing color in a text field?
I've created a scrolling text field and it works fine but... ...how can I have certain lines of text be a different color, such as headings? When I change the color of one line, all the text's color changes. Thanx.
-
Issue in Tree View Enhancement
Hello Experts, I have a Tree View and its related Context Node Class. Due to some requirement I need to enhance the same. I have done the following steps: 1. Enhance the View which eventually enhanced the CTXT class to Z_CTXT as well. 2. I am trying
-
The more times you use your charger the less efficient it becomes?
So is this true? I heard somewhere that the more times you use your laptop charger, the less effiecient (i.e. slower to charge) it becomes. I also heard it is very bad for the charger(as well as the environment) to leave it plugged in while its not i