How to generate page break based on column value
I am new to Reports. So please excuse me if it has been answered.
Please help me to generate a page break when the database table column is a cetain value.
Specifically, if the DAY of a reserv_date column is 'Monday' then I should generate a page break.
Thanks for your help.
Hi,
Try this solution
SOLUTION EXPLANATION:
Go to the layout editor and add a horizontal line to the layout.
Place this line directly below the field that will be associated with the format trigger.
The line should also be within the repeating frame of the referenced column.
Apply line color to make the line white (so it won't show up in the printed report) and set the properties to Page Break Before.
Then add a format trigger on the line object to check the value of the desired
column.
For instance, if a master-detail report is created on the EMP table,
and a page break is desired whenever the value of the COMM field is not null,
create a trigger as follows:
function b_1Format trigger return boolean is
begin
if :comm is not null
then
return (true);
else return (false);
end if;
end;
When the report is run, a page break will occur whenever the value of COMM is
not null.
Thanks,
Oracle Reports Team
Similar Messages
-
How to generate a report group by column value
I have a table with five columns:
c1, c2, c3, c4, count.
I want to generate a report like this
Total
c1, c2
c3, c4
such as the values inside the table are:
a1 b1 cc dd 2
a1 b1 ee ff 3
a1 b1 gg hh 4
a1 b2 jj kk 3
a1 b2 ll mm 4
a1 b2 nn oo 2
a3 b3 pp qq 3
a3 b3 rr ss 4
the report will be like:
a1-b1
cc-dd 2
ee-ff 3
gg-hh 4
Total for a1-b1 9
a1-b2
jj-kk 3
ll-mm 4
nn-oo 2
Total for a1-b2 9
a3-b3
pp-qq 3
rr-ss 4
Total for a3-b3 7
What is the best way to achieve this?
Thanks.
JenHi Jen,
Personnaly I would use a PL/SQL region and use MOD_PLSQL (htp.p) to create such a special layout, but then again you should know how to do it.
Another way would be to create a select statement in which you select the lines you want:
select c1||'-'||c2 key1, 0 key2, 'category '||c1||'-'||c2 , null count from table
union
select c1||'-'||c2, rownum, rpad(' ',5)||c3||'-'||c4, count from table
union
select c1||'-'||c2, count(*)+1, 'Total for cat. '||c1||'-'||c2 , sum(count)
from table group by c1||'-'||c2, 'Total for cat. '||c1||'-'||c2
union
select c1||'-'||c2, count(*)+2, ' ',null from table group by c1||'-'||c2 /* empty line */
order by 1, 2
You can base a normal report on this.
good luck,
Dik -
How to set page break for Narrative view???
Hi All,
I have created a report in Narrative view using HTML code. I am stuck how to set page break based on a column in Narrative view. If anybody is aware of the issue pls let me know how to overcome this situation. Or if this can be done using HTML code itself pls let me know how to do it.
Thanks & Regards
ThenmozhiHi Honey,
I am not sure on ur requirement but you can achieve page break with a column using pivot view by dragging that column into section area and editing section properties to Insert Page break option. -
Generating Page break in SCRIPTS
Hi experts..
I am working on SCRIPTS.
I have one internal tabl.
I want to generate PAGE-BREAK depending upon 3 fields.
How to generate page break.
assume those fields as Field1, Field2, field3.
thanksHi,
write below code in the driver program.
sort itab by field1 field2 field3.
LOOP AT ITAB.
AT NEW field3.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'NEW-PAGE LIST' " LIST would be the new page
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3.
ENDAT.
ENDLOOP.
Thanks,
Suma. -
How to avoid page break up in background
hi all,
i have developed new report i don't given page break statement .. in foreground it s coming correct without any page break..
when i have schedule in background page break is coming please let me know how to avoid page break in background process.
regards ,
santosh
Edited by: santosh jajur on Jul 8, 2009 12:16 PM
Edited by: santosh jajur on Jul 8, 2009 12:46 PMHi,
When you view the output from the report run in batch you are presumably looking at the spool output. Because you are viewing a preview of what is sent to the printer the spool applies page breaks based on the printer parameters. When you run the report in dialog you view the report on the screen, and the spool is not involved, so no page breaks.
If you print your report in dialog then review the spool you'll find it has the page break just as the background run has.
Regards,
Nick -
How to generate a report based on account description
Hi Experts,
How to generate the report based on account description, that means
i want to generate a report on G/L account and which account numbers are having 'CASH' description.
for Ex: G/L a/c no: 25010026-Cash and Bank balance(des)
G/L a/c no: 101000-Cash-freight
like this.
please help to do this,
good answer will be appreciated with points,
Thanks in advance
VenkatHi shana,
my requirement is
I have G/L account numbers, that account numbers having some descriptions, in these some descriptions are belongs to cash transactions, i want to generate the report on these cash transactions, and the report is " G/L account, debit cash, credit cash, balance".
is it possible or not,
thanks in advance,
Venkat -
How to put page break in SMARTFORMS
Hi Guys,
Can anyone please let me know How to put page break in SMARTFORMS
Regards
AviHi,
Look at the below thread, you will get the answer
https://www.sdn.sap.com/irj/sdn/profile?userid=2522810
Regards
Sudheer -
How to put Page break in SAP Script
Hi Experts,
Please tell me how to put page break in SAP Script. or give some sample code
looking forward for your reply..
Regards,
Kali PramodHi,
NEW-PAGE is used to insert a page break ,
it can be conditional if used between IF..ENDIF
e.g. /:IF &KNA1-NAME1& = 'XYZname'
/:NEW-PAGE
/:ENDIF
If u want to Page break after displaying certain records or after some condition you use NEW-PAGE
reward if useful. -
How to insert Page Break in SPOOL file
How to insert Page Break in SPOOL file.
How to insert Page Break in SPOOL file.
SET NEWP[AGE] {1|n|NONE}
SET NEWPAGE is not supported in iSQL*Plus
Sets the number of blank lines to be printed from the top of each page to the top
title. A value of zero places a formfeed at the beginning of each page (including
the first page) and clears the screen on most terminals. If you set NEWPAGE to
NONE, SQL*Plus does not print a blank line or formfeed between the report pages.
http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a90842/ch13.htm
SQL> SET PAGESIZE 5
SQL> SET NEWPAGE 0 --a form feed between your pages
SQL> SPOOL C:\output.doc
SQL> SELECT * FROM emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 0 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 0 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 0 10
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7788 SCOTT ANALYST 7566 09-DEC-82 3000 0 20
7839 KING PRESIDENT 17-NOV-81 5000 0 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7876 ADAMS CLERK 7788 12-JAN-83 1100 0 20
7900 JAMES CLERK 7698 03-DEC-81 950 0 30
7902 FORD ANALYST 7566 03-DEC-81 3000 0 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7934 MILLER CLERK 7782 23-JAN-82 1300 0 10
13 rows selected.
SQL> SPOOL OFFKhurram -
How to generate XML file based on XSD in SSIS
please provide step by step process to create xml based on XSD in SSIS
Hi hemasankar,
In SQL Server Integrated Services, we can generate XML Schema (XSD) file based on a XML file with XML Source Editor. If we want to generate XML file based on a XSD file, we can use Generate Sample XML feature in Visual Studio. For more details, please refer
to the following steps:
Click on "XML Schema Explorer" or 'Use the XML Schema Explorer...' to open XML Schema Explorer in Visual Studio.
If your Schema file is valid and you are having elements, right-click on element and click on "Generate Sample XML", this functionality generates XML file in temp folder and open ups in the XML Editor.
The following two document about how to generate XML file based on a XSD file are for your reference:
http://msdn.microsoft.com/en-us/library/dd489258.aspx
http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to create folder names based on Excel values or Txt files?
Hi there,
I often need to create large numbers of folders based on names I have saved in an Excel spreadsheet. I know in windows there is a way to create a macro within excel that automatically generates folder names based on cell values.
I was therefore wondering how to do the same on a Mac operating system. The main thing is to find a way to automate the process. I understand this may involve copying the values to a text file.
Below is an example of the names I need to create folders for (copied from the excel spreadsheet):
Wash Bowl Small 600
Deck Mounted Wash Bowl 500
Wash Basin - 866 - 2 Shelves
Wash Bowl Large 800
Built-In Wash Basin With 1-Taphole
Deck Mounted Wash Bowl 625
Would really appreciate a simple step by step approach to an explanation. As my understanding of using Automator, Apple Script, Terminal, etc, is extremely basic.
Thanks and Best Wishes,
GrahamHi Niel,
Thanks again for another superb response. I have another question. Is it possible to automatically generate sub-folders along with the folder.
For example:
Folder Subfolder
Wash Bowl Small 600 > 2D CAD
3D CAD
BIM
Images
Brochures
Specifications
Technical
Case Studies
Operations
Deck Mounted Wash Bowl 500 > 2D CAD
3D CAD
BIM
Images
Brochures
Specifications
Technical
Case Studies
Operations
Above shows the 9 generic sub-folders I need to create within each folder that is generated.
Best Wishes,
Graham -
How to get fourthly row (row4) first column value (col1) in matrix
Hi to all,
In FMS, how to get fourthly row (row4) first column value (col1) in matrix in document.
select $[$38.1.4]
But it display the first row
Please give me hint.
Thank youHi Eric,
FMS may only apply to current row. There is no way to get any other fixed row.
Thanks,
Gordon -
Performance operations based on Column values in SQL server 2008
Hi ,
I have a table which consist of following columns
ID Formula
Values
DisplayValue
1
a*b/100 100*12/100
null
2
b*c/100
12*4/100
null
I want to perform operation based on column "Values" and save data after operations in new column Name "Display Value" .i.e I want to get the below result . Can anyone please help.
ID Formula
Values
DisplayValue
1
a*b/100 100*12/100
12
2
b*c/100
12*4/100
0.48
Thanks for the help.
Regards, Priti ATry this,
create table #mytable (ID int,Formula varchar(10), [Values] varchar(10), DisplayValue decimal(10,4))
insert into #mytable values(1 ,'a*b/100','100*12/100',null)
insert into #mytable values(2 ,'b*c/100','12*4/100',null)
declare @rowcount int=1
while @rowcount <= (select max(id) from #mytable)
begin
declare @expression nvarchar(max)
select @expression=[values] from #mytable where id = + @rowcount
declare @sql nvarchar(max)
set @sql = 'select @result = ' + @expression
declare @result decimal(10,4)
exec sp_executesql @sql, N'@result decimal(10,4) output', @result = @result out
update #mytable set DisplayValue= @result where id = @rowcount
set @rowcount=@rowcount+1
end
select * from #mytable
Regards, RSingh -
How to select different Querys based on Variable Value
Hi guys i need to know how to select different Querys, based on variable values selected by the user, i try to do it using a Web Template but i don´t know how to program a Dynamic Query.....
I hope sombody could help me with this
Message was edited by: Oscar DiazHi Diaz,
Can you explain the exact scenario which you are looking for!!!
regards
Happy Tony -
Change the row colors based on column values in MOSS 2007.
Hi Team,
I am using MOSS 2007 environment. In that I am having one SharePoint list. In that list based on column values rows colors need to change.
Kindly help me anyone on this.
Thanks,
AshokHi Ashok,
Please follow the below link:
http://www.contentmaster.com/sharepoint-2010/conditional-formatting-of-list-views-for-sharepoint-2010-changing-the-font-colour/
http://sharepoint.stackexchange.com/questions/7478/highlight-row-color-based-on-field-values-in-sharepoint-2010-list-view
Best Regards,
Brij K
Maybe you are looking for
-
Ok, I have had a 15" MBP that I returned for constant crashing and garbled screen images (that ended in a lock up). Now I did not have a problem with heat...it actually ran fairly cool. It did whine severely. I THINK mine was a week 12. I also had a
-
I bought a Sony Cybershot DSC RX100, which was launched in July, and I just can't open the ARW.files (Sony RAW files). My Sofware is completely updated. Any ideas?
-
Hi all, I am having 2 list boxes (using select tag of html)in my registration.jsp page. one select tag : main account types second select tag : sub types for each main account types. first select tag is dynamically populated from the database. i have
-
V51VP-TMENG not updated by HU_PACKING_AND_UNPACKING
Hello, I am packing delivery to existing hum and using following FM: 1. HU_READ_DELIVERY_AND_INIT 2. HU_INITIALIZE_PACKING 3. HU_PACKING_AND_UNPACKING 4. HU_POST Values in VEPO are updated and everything looks fine, but in VA33N (Packing) field V51VP
-
Display exception of function module on report
I am trying to explode BOM using the function module given below. Is it possible that i can display the exact exception that i get on screen. call function 'CS_BOM_EXPLOSION' exporting datuv = li_datuv mktls = 'X' mehrs = 'X' mmory = '1' mtnrv = li_m