HOW TO PRINT ONE RECORD PER ONE PAGE
Hi I have report , with two queries. Each query has one group with the same data. lets say the queries are Q1 and Q2. The Groups are with column DeptNo, and DeptNo1 both pointing to the same column DEPTNO. Now I want to design it in such a manner that it shoudl print each group , one record per page, but same group on the same page. For Example
ON PAGE 1
DpetNo 10
Emp1
Emp2
Emp3
DeptNo1 10
Emp1
EMp2
Emp3
ON PAGE 2
DeptNo 20
Emp4
Emp5
DeptNo1 20
Emp4
Emp5
ON PAGE 3
DeptNo 30
Emp6
Emp7
Emp8
DeptNo1 30
Emp6
Emp7
Emp8
How the lay our will be ? What will be the conditions. I can set the property in each group to print one record per page. But how to make it so that it will print like above.
Thanks
FEROZ
Hi Feroz,
You can create a query Q0 to return DeptNo 10, DeptNo 20..... and make it as the parent of Q1 and Q2. Then you can print one dept per page.
Regards,
George
Similar Messages
-
How to Print multiple Records under one level in Etext templates.
Hi,
I am working on the Etext templates and customizing the standard template “US NACHA PPD FORMAT”.
This standard template don’t have a addenda record.. I have modified and it is working for single Addenda records. But when I have multiple ADDENDA records to be printed in one particular *<outboundpayment>* level, it is not printing.
How do I modify the template so that Multiple Addenda records get printed?
Note: I have multiple *<MyPayables>* tags under *<OutboundPayment>* tags.
Please help me in understanding this…
Regards
Pradeep GWhat you probably need to do is generate each bio
individually with the
<cfdocument...> tag just the way you want them. And
then use some of
the advanced <cfpdf...> functionality that allows you
to append two or
more individual PDF's into a single large PDF.
Here are some resources that describe some of the
<cfpdf...> functionality.
http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
http://cfpdf.blogspot.com/
http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html -
SapScript is displaying one record per page...
Hi friends,
I am getting a problem in scripts.
when i am displaying multiple records in the main window it is displaying a single record per each page, like if i have 20 records it is displaying 20 pages and in every page one record
how to resolve this
plz assist me
is there any wrong in tagcolumn i.e. / , /: , *
how i have to maintain them
Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:15 PMKindly check ou script & program i think somewhere new-page is written. that'why each record is printing on new page.
anya -
How to print all columns in one page
Hi,
Can anybody explain me how to print all columns in one page.we have around 15 to 20 columns for 4 reports and all these reports are build on one multiprovider.we are using BW 3.5.
Can anyone explain me how to print ALL COLUMNS IN ONE PAGE .currently they are getting all columns in 2 to 3 pages. They are using PORTAL to run the reports here.
Is it possible to do by customizing Webtemplate or by macros in Workbook.Please help me
Edited by: kotha123 on Oct 11, 2010 5:58 PMHi,
Your best bet is to use a workbook template or else Excel to pdf option...Thanks -
How to print multiple copies on one page ?
How to print multiple copies of one document on one page ?
in coreldraw I used to make the document -for example a business card 5x9 - and when sending to print it automatically placed the number of cards that would fit in my A4 sheet.
how do I make the same operation in Indesign.
thanksHi, Peter S.
>I can see that as a shortcut to printing a page of different cards for multiple people, but to do a simple n-up of a single card it seems overly complex to me. What am I missing?
* It's just an alternative to copy/paste and step/repeat.
* For a one-time only use, perhaps it's a little more complex than necessary. But for any future needs, only the content of the data file needs to be changed, either by editing, or by pointing to a new data file. If different cards for multiple people becomes necessary, it's ready to go.
Regards,
Peter Gold
KnowHow ProServices -
How to place 3 records per (printing) page
Hi,
How would I go about only displaying 3 records per each a4 paper printed.
For example:
9 records in total.
I want to print that (printing on paper), but only want 3 records per A4 size as records are being split between two pieces of paper.
Any help would be very much appreciated!
Thank you!sorry.
I have done all the extraction and they display on the page with no problem. All the records are there and display fine.
The problem is that i need to be able to create something like a page break every three records, as when i send the print to the printer, it has 3 records and a half on each A4 sheet of paper.
I just need to be able to code: 'only print 3 records per A4 sized paper'.
I have a css'd div tag which is the size of the A4 paper, but i need to be able to tell it to only display 3 records per A4 page.
At the moment, it looks like this:
The 'sound trolley - PAC' record shouldn't be spliut between pages. The title and the details should be on the same page, so im guessing would require something like a break after 'Nexo Subwoofer'.
This is the code for the page (all within the A4 size div):
<div class="a4page">
<table width="100%" border="0" cellpadding="2">
<tr>
<td width="51%"><img src="images/logo_acs_egham.gif" width="338" height="51" /></td>
<td width="28%"><img src="images/dramadatabase.jpg" width="133" height="93" /></td>
<td align="right" width="21%"><strong>Inventory printed:</strong> <br />
<script type="text/javascript">
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
document.write(day + "/" + month + "/" + year);</script>
</td>
</tr>
<tr>
<td colspan="3"><img src="images/divider.JPG" width="785" height="25" /></td>
</tr>
</table>
<div align="center"><strong>Total Records:</strong> <?php echo $totalRows_print_invlist ?> </div>
<?php do { ?>
<form id="form2" name="form2" method="post" action="">
<table width="99%" border="0" cellpadding="2" class="print_table">
<tr>
<td colspan="3"><span class="titlelist"><?php echo $row_print_invlist['name']; ?><a href="equipmentupdate.php?id=<?php echo $row_print_invlist['id']; ?>">
<input name="id" type="hidden" id="id" value="<?php echo $row_print_invlist['id']; ?>" />
</a></span></td>
<td width="23%"> </td>
</tr>
<tr>
<td colspan="3"><em><?php echo $row_print_invlist['description']; ?></em></td>
<td> </td>
</tr>
<tr>
<td width="28%" rowspan="4"><input name="image" type="image" src="<?php echo $row_print_invlist['image']; ?>" width="200" border="1" /></td>
<td width="17%" rowspan="4"><strong>Category:<br />
Size<br />
Location:<br />
Sub-location:<br />
Power Input:<br />
Protection:<br />
Model:<br />
Manufacturer:</strong></td>
<td width="32%" rowspan="4"><?php echo $row_print_invlist['category']; ?><br />
<?php echo $row_print_invlist['size']; ?><br />
<?php echo $row_print_invlist['location']; ?><br />
<?php echo $row_print_invlist['sublocation']; ?><br />
<?php echo $row_print_invlist['power_input']; ?><br />
<?php echo $row_print_invlist['protection']; ?><br />
<?php echo $row_print_invlist['model']; ?><br />
<?php echo $row_print_invlist['manufacturer']; ?><br /></td>
<td><strong>Internal ID: </strong><?php echo $row_print_invlist['id']; ?></td>
</tr>
<tr>
<td><strong>Barcode ID: </strong><?php echo $row_print_invlist['BC']; ?></td>
</tr>
<tr>
<td height="45"><strong>Quantity: </strong><?php echo $row_print_invlist['quantity']; ?></td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table>
<br />
<img src="images/divider.JPG" width="778" height="28" />
</form>
<?php } while ($row_print_invlist = mysql_fetch_assoc($print_invlist)); ?>
</div> -
Select one record per person from multiple conditions
Perhaps been staring at this too long and making changes to try and gather the correct population, but can't seem to figure it out at the moment. Trying to determine logic to select one record per person. If person has more than one record would like to choose the record that matches the sequence priority which is:
AND CASE WHEN ac.primary_program_ind = 'N' --Existing Students who have a new program (Continuing Law and added Business)
AND ac.academic_period_admitted = ac.academic_period
AND ac.student_population <> 'V'
AND ac.program is not null THEN 'Y'
WHEN ac.primary_program_ind = 'Y' --Visitors (Each term considered new)
AND ac.student_population = 'V'
AND ac.academic_period_admitted is not null THEN 'Y'
WHEN ac.primary_program_ind = 'Y' --Normal Cases
AND ac.academic_period_admitted is not null THEN 'Y' --= ac.academic_period THEN 'Y'
END = 'Y' Meaning that if the person has records that meet more than one of the above cases, it should choose the record matching the First Case of the case statement. If the records do not meet the first case at all then look to see if it meets the second case and if it does choose that record, etc.
Sample Data:
SELECT 363 AS PERSON_UID, '1875' AS ID, '201140' AS ACADEMIC_PERIOD, '201040' AS ACADEMIC_PERIOD_ADMITTED, 'UG' AS STUDENT_LEVEL, '' AS EXIST_NEWPROG, 'Y' AS VISITORS, 'Y' AS NORMAL, 'V' AS STUDENT_POPULATION, 'Y' AS PRIMARY_PROGRAM_IND, 'LA' AS PROGRAM FROM DUAL
UNION SELECT 852, '1962', '201130', '201040', 'GR', '', '', 'Y', 'C', 'Y', 'MS' FROM DUAL
UNION SELECT 852, '1962', '201140', '201140', 'GR', 'Y', '', '', 'G', 'N', 'MBA' FROM DUAL
UNION SELECT 852, '1962', '201140', '201040', 'GR', '', '', 'Y', 'G', 'Y', 'MS' FROM DUAL
UNION SELECT 659, '1093', '201140', '200840', 'UG', '', '', 'Y', 'T', 'Y', 'BB' FROM DUALSo for the above data on ID '1962', I would like to select the record that has EXIST_NEWPROG = 'Y' and ignore the other rows for that ID. Note:EXIST_NEWPROG, VISITORS, NORMAL I added to sample data, these cols don't actually exist. Put in for easier display purpose to show what case statements are doing. The actual sql statement has many joins and where statements, but hopefully this simplification of the sql will be sufficient to derive a solution.
WITH MULTIROWS AS
SELECT 363 AS PERSON_UID, '1875' AS ID, '201140' AS ACADEMIC_PERIOD, '201040' AS ACADEMIC_PERIOD_ADMITTED, 'UG' AS STUDENT_LEVEL, '' AS EXIST_NEWPROG, 'Y' AS VISITORS, 'Y' AS NORMAL, 'V' AS STUDENT_POPULATION, 'Y' AS PRIMARY_PROGRAM_IND, 'LA' AS PROGRAM FROM DUAL
UNION SELECT 852, '1962', '201130', '201040', 'GR', '', '', 'Y', 'C', 'Y', 'MS' FROM DUAL
UNION SELECT 852, '1962', '201140', '201140', 'GR', 'Y', '', '', 'G', 'N', 'MBA' FROM DUAL
UNION SELECT 852, '1962', '201140', '201040', 'GR', '', '', 'Y', 'G', 'Y', 'MS' FROM DUAL
UNION SELECT 659, '1093', '201140', '200840', 'UG', '', '', 'Y', 'T', 'Y', 'BB' FROM DUAL
select *
from multirows ac
where CASE WHEN ac.primary_program_ind = 'N' --Existing Students who have a new program (Continuing Law and added Business)
AND ac.academic_period_admitted = ac.academic_period
AND ac.student_population <> 'V'
AND ac.program is not null THEN 'Y'
WHEN ac.primary_program_ind = 'Y' --Visitors (Each term considered new)
AND ac.student_population = 'V'
AND ac.academic_period_admitted is not null THEN 'Y'
WHEN ac.primary_program_ind = 'Y' --Normal Cases
AND ac.academic_period_admitted is not null THEN 'Y' --= ac.academic_period THEN 'Y'
END = 'Y'Hi,
user1069723 wrote:
Thanks Frank. I've been incorporating your solution and going over the data, (which is why it has taken so long to respond) and am getting closer, however the approach you provided excludes people who have a "RNum" of 2 or 3, but do not have a 1 at all. So people that only have a 2 and 3 OR only have a 2 or only have a 3 would not be captured, but if there is only one record, they would be missed.
Here is another set of records of one person.
SELECT 921 AS PERSON_UID, '8284' AS ID, '201130' AS ACADEMIC_PERIOD, '201030' AS ACADEMIC_PERIOD_ADMITTED, 'UG' AS STUDENT_LEVEL, '' AS EXIST_NEWPROG, 'Y' AS VISITORS, 'Y' AS NORMAL, 'V' AS STUDENT_POPULATION, 'Y' AS PRIMARY_PROGRAM_IND, 'LA' AS PROGRAM FROM DUAL
UNION SELECT 921, '8284', '201140', '201040', 'UG', '', '', 'Y', 'F', 'Y', 'BB' FROM DUAL
Sorry, I can't reproduce the problem.
If I add the two new rows of sample data that you posted today to the data you posted yesterday, then the query I posted yesterday produces:
PERSON_UID ID ACADEM ACADEM ST E V N S P PRO R_NUM
659 1093 201140 200840 UG Y T Y BB 1
363 1875 201140 201040 UG Y Y V Y LA 1
852 1962 201140 201140 GR Y G N MBA 1
921 8284 201130 201030 UG Y Y V Y LA 1Io you get the correct output for the original ids?
If I DELETE all the rows where id != 8284 I still get the same results for id=8284.
'm using Oracle 11.1.0.6.0. What version are you running?
Post your exact code, even iof you think you copied it from thsi site without any changes. Perhaps there was some subtle eidting mistake.
I would like to select the record for Academic_Period = 201140 for this person. Is the problem that you're getting the wrong row for id=8284, or that you're not getting any output for id=8284?
Why would you want to get the row with academic_period=201140? (Let's call this row A.) Why don't you want the other row for that person, the one with academic_period=201130? (Let's call this row B.) On both of those rows, primary_program_ind='Y' and academic_period_admitted is not NULL. The only significant difference between those two rows is that student_population='F' on row A, and it's 'V' on row B. Doesn't that mean that row B causes the CASE expression to return 3 ("Normal Case"), while row B makes it return 2 ("Visitor")? Doesn't that mean row B should be preferred to row A?
Then again, perhaps this is just what you mean by saying that "term" is the main factor in deciding which row to select, and that the CASE expreesion ("New Program" before "Visitors", followed by "Normal Cases") is just a tie-breaker.
Based on my understanding of the code you provided, this person is being excluded altogether because they do not have a record that evaluates to rnum = 1.ROW_NUMBER never returns a value of 2 or 3 unless it has already returned a value of 1. (At least that's how it's supposed to work, and I've never heard of any bugs concerning it.)
This record is also complicated because it has two terms, Does "term" mean "academic_period" here?
in all cases, we would want to select the highest term and then if there is still more than one qualifying record, base the "tie breaker" on the cases. Does this make sense or is my explanation still unclear?It's unclear.
Maybe you need to add one more line at the beginning of the analytic ORDER BY clause (the 6th line below):
WITH got_r_num AS
SELECT m.*
, ROW_NUMBER () OVER ( PARTITION BY id
ORDER BY
academic_period DESC, -- Added
CASE
WHEN primary_program_ind = 'N' --Existing Students who have a new program (Continuing Law and added Business)
AND academic_period_admitted = academic_period
AND student_population != 'V'
AND program is not null
THEN 1
WHEN primary_program_ind = 'Y' --Visitors (Each term considered new)
AND student_population = 'V'
AND academic_period_admitted is not null
THEN 2
WHEN primary_program_ind = 'Y' --Normal Cases
AND academic_period_admitted is not null
THEN 3
END
) AS r_num
FROM multirows m
-- WHERE ... -- If you need any filtering, this is where it goes
SELECT * -- or list all columns except r_num
FROM got_r_num
WHERE r_num = 1
; -
Best way to generate one record per day from a table with eff/exp dates
Hi,
Have a table which has various attributes and an eff and exp date. e.g attributea, 01/05/2012, 16/05/2012
We wish to create another table from this table to have one record per day. e.g 16 records.
What is best way to achieve this in OWB ?
ThanksHi,
Example if have table
with following contents
conversion_rate number(6,4)
EFFEcTIVE_DATE DATE
expiration_date date
example record 1.43, 01/05/2012,16/05/2012
If want to have another table which instead has 16 records one for each day
e.g
1.43, 01/05/2012
1.43,02/05/2012
1.43,16/05/2012
Thoughts on best way to do this.
Thanks -
How to print multiple footers for each page in RTF template xml report.
Hi,
How to print multiple footers for each page in RTF template xml report.
i am able to print ( two sets ) ...
up to last page ( one template ) and for last page ( another template).
i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
Thanks in advance.
Regards,
KAP.You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
Just have for-each@section logic.
It would be difficult for me to guess what you have done without looking at your RTF or describing here. -
Hyperion Anaylzer - how to Print report with information in pages?
Hi,<BR><BR>I use Hyperion Analyzer Version: 6.1.1.00206 (from Help | About menu).<BR><BR>I created report with pages (on Navigate button selected the Pages). In pages are months (January, February, March, etc).<BR><BR>Now I would like to print current report. So I did:<BR>1. click on arrow beside Print button<BR>2. Print Current Report windows is displayed. I selected default options and press OK button.<BR><BR>Report is printed, but there is no page information printed out. So on paper there is report without months (January, February, March, etc).<BR><BR>How to print report with information in pages?<BR><BR>Thanks,<BR>Grofaty
Jia Shun,
I had the same issue for printing A/R Invoices - I created a Crystal Report based on a SQL View, works fine with A/R Invoice document, but the Draft Invoice printing has 3 pages: 1st page blank, 2nd page with watermark "DRAFT", 3rd page my Crystal Report layout without any data. When printing normally it is only 1 page.
Here is what I did as a work around:
Create two SQL Views, one select from OINV (joining INV1 and other tables needed), the other select from ODRF (joining DRF1 and other tables needed), for the draft printing.
Create two identicle Crystal Reports, only difference are: datasource location (from different views), the "draft" crystal report has a watermark section.
Go to Administration>System Initialization>Print Preferences and uncheck "Print draft watermark..."
Import both crystal reports. Invoice can be printed normally. But the Draft Invoice has more steps: Open Draft document report, change settings so it shows the DocEntry in the Draft Table. Select and open the desired document, hit Print Preview, and enter the DocEntry, it displays the layout with data and "DRAFT" watermark.
This is a workaround. I don't like it because it is not scalable - too much workload if you want to print 100 invoices.
Hopefully someone will provide a better solution.
regards,
G -
How to print new line in jsp page
hi
how to print new line in jsp page
thanks\n - new line character is in java specific not HTML
specific.Well, if the correct line separator sequence (by far not always \n) would be used, it does add a new line to the HTML output. Too bad that you don't want to see HTML but formatted text. The BR tag is a formatting element for the displayed text, not a line break in HTML. ;) -
How to print the Terms and Condition page ine the sap-script
Hi experts,
i got the requirement that how to print the Terms and condition page in the script,i have the three pages, having the same main window, in the last of the main window(all three pages) i have called the hard coded text(i.e so10 text), but when i am displaying the output data get printed in the first page but i am getting the second page heading on the top of the terms and condiions page. In all the three pages i have the same main window, if i make change in any window i will affect all the other main windows. so please suggest me how i need to go.HOW TO GET GRID OF THE TEXT ON THE TOP OF THE SECOND PAGE OF THE TERMS AND CONDITONS.
like this i have called in the MAIN WINDOW
/E : LAST ( IN ALL THREE PAGES)
INCLUDE ZSD_INVOICE_TERMS TEXT OBJECT TEXT LANGUAGE EN.
IN THE TCODE SO10
NEW PAGE TERMS.
1) TERM MS AND CONDITONS TEXT.................................................
FIRST->NEXT, NEXT->NEXT,, TERMS--->TERMS.Hi,
1. Create a new page by Name : LAST
2. Identify the text element which will be the last element in the form in the debug mode.
Mostly Ex: SUM, TOTAL, LAST etc.,
3. the page linking should be
First --> Next
Next --> Next
4. In the Text element identified in the step 3.
Write the following code
/: NEW PAGE LAST
/: INCLUDE the standard text created for the terms and conditions in SO10
Check the syntax for the command but the logic will be the same.
It should resolve your problem. -
How to print multiple addresses on one sheet of avery labs using Pages?
How do I print mulitple addresses on one sheet of avery labels?
I used Numbers to make a database.
I used Pages to use the Avery label template.
I formatted the labels for the database but it shows my first sheet of labels as my first addressee and my second sheet as the second addressee. I want multiple addresses on one sheet of labels!!What version of Photoshop do you have? Is it the full version or elements? What OS do you have and it's version?
-
How to print two voucher in one page?
HI,
we want to print two voucher in one paper. what are the steps to be taken in sapscript? is it purely relted to SPAD?
Regards,
lijo Josephhi joseph,
i'm not sure how related this would be to your concern, but in my place, we've implemented that by sizing a voucher as half a page, so that when we print vouchers, the printer would know that one page is half of a regular page. SPAD is one place to fix, but the actual printing program and SAPScript was also customized so that it would send two vouchers for printing consecutively, and would fit in one page.
ryan. -
How to print 20 lines in one page and remaining lines in another in script?
Hi I created 2 pages in script for page1 next page is page2 , how i can print 20 lines in one page and remaining in next page plz send me the code for that and is windows same for 2 pages?...
Hi Krishna,
Try below code...
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = form.
CALL FUNCTION 'START_FORM'
EXPORTING
language = sy-langu
startpage = page1
LOOP AT itab.
count = count + 1.
item = count mod 20.
IF item EQ '1' AND count NE '1'.
CALL FUNCTION 'END_FORM'.
CALL FUNCTION 'START_FORM'
EXPORTING
language = sy-langu
startpage = <b>page2</b>
ENDIF.
"write_form statement ....
ENDLOOP.
Message was edited by:
Hikaruno
Maybe you are looking for
-
Longtext update by using save_text F.M
Hi All , I am updating longtext using F.M save_text the problem is my longtext is in the form longtext type c length 1000. Now how do i split this longtext such that i can pass the data in save_text. the parameter TDLINE is only 132 character. i trie
-
ISE : Active Directory integration long usernames sAMAccountname
Have a customer deploying ISE for wireless authentication using PEAP-MSCHAPv2. They've encountered an issue where some users with long usernames are failing authentication to ISE. ISE logs that the user is not found in the user database (Active Dir
-
Hallo When i start the IMac i have the choice 2 Users. I click on my user and see my desktop ca. 4 sec. after this the system is going to the choice . The user from my wife is working. I update my System Mac Os X 10.6.8 I have no idea! Please help m
-
How to transfer music albums to an SD card
How do I transfer music albums on Itunes to an SD card
-
Time Capsule wireless signal drops inexplicably
My MacBook Pro is less than a year old. I am online wirelessly via my room mate's brand new Time Capsule router, which is only 15 feet away. The Time Capsule has been here maybe 2 weeks. I always get 4 bars, except tonight the signal drops repeatedly