Mailing labels report [message #385795] |
Wed, 11 February 2009 01:24 |
charuamit
Messages: 121 Registered: January 2009
|
Senior Member |
|
|
Hi
Do u have any idea how i can write a for loop in my report for serial numbers.
For ex... we have 5 boooks of IT....we want to label them as copy 1/5 ....copy 2/5 etc...
so loop will be from 1 to taotal_no_of_copies for the book
but where do i put it ??
Thanks in advance.
Charu
[SPLIT by DJM, then by LF, then MERGED by LF]
[Updated on: Tue, 17 February 2009 00:00] by Moderator Report message to a moderator
|
|
|
|
Re: Another crappy "please help" title [message #386356 is a reply to message #385938] |
Fri, 13 February 2009 22:26 |
charuamit
Messages: 121 Registered: January 2009
|
Senior Member |
|
|
It is a report....I don't want to store the values in the database.
Right now in our report we have mentioned :
C.1/&total_no_of_copy....
We have manually mentioned C1,c2 etc....
but now we want to run a loop to count the values...
But i dont know where to call the loop.....
please help me sir
Regards.
Charu
|
|
|
Mailing labels report [message #386745 is a reply to message #385795] |
Mon, 16 February 2009 22:49 |
charuamit
Messages: 121 Registered: January 2009
|
Senior Member |
|
|
Hi
I need your help in creating a report with mailing labels....
I have 1 record of a book named 'ABC' ...this book has 5 copies
so the structure z like : book_id,book_name,.....total_copy
ex....1,ABC,....5
Now when i generate a report for this book id...it will show only 1 label but i want it to show 5 labels as
1
ABC
1/5
1
ABC
2/5
etc etc till 5/5
so it means we want to spilt 1 record into 5 labels with everything same except 1/5,2/5.....5/5
Any suggestions....
Can u mail me some sample report on repeating frame .
Thanks In Advance.
Charu.
|
|
|
|
|
|
Re: Mailing labels report [message #386793 is a reply to message #386784] |
Tue, 17 February 2009 00:47 |
charuamit
Messages: 121 Registered: January 2009
|
Senior Member |
|
|
My table structure is :
Name Null? Type
----------------------------------------- -------- ----------------------------
BOOK_ID NOT NULL NUMBER(10)
GLOBAL_NO VARCHAR2(25)
BOOK_NAME VARCHAR2(200)
AUTHOR_NAME VARCHAR2(50)
PUBLISH_DATE NUMBER(4)
CLASS_ID NUMBER(10)
TOTAL_COPY NUMBER(4)
CURRENT_COPY NUMBER(4)
REMARKS VARCHAR2(250)
PUBLISHER VARCHAR2(50)
CLASS_TYPE VARCHAR2(10)
BOOK_TYPE CHAR(2)
PARTS VARCHAR2(10)
PART2 VARCHAR2(10)
SUB_NAME VARCHAR2(200)
CREATE_USER VARCHAR2(10)
MODIFY_USER VARCHAR2(10)
CREATE_DATE DATE
MODIFY_DATE DATE
BARCODE VARCHAR2(30)
SERIAL_NO VARCHAR2(6)
SERIAL NUMBER(10)
COLOUR VARCHAR2(200)
REP_INV VARCHAR2(100)
and the query that i m running is :
select distinct b.book_id, b.book_name, level ||'/'|| b.total_copy result
from lib_books b where book_id=4003
connect by level <= b.total_copy
order by 1, 3
This book_id(4003) will be given as a parameter in the report.
What else i need to tell u??
Thanks for your help.
Charu
|
|
|
|
|
|
|
|
|
|
|
|