|
-
December 28th, 2007, 07:01 AM
#1
How to multiply records in CR
Hi,
can anyone help me by the following issue:
I'd like to print out some stics in CR. I get all the data for each item that I need into CR. One field is quantity - now I would like to print so many detail sections, as quantity (for example if quantity is 13, I need 13 sticks, that looks the same) . How could I do this?
Thanks
-
December 30th, 2007, 12:43 AM
#2
Re: How to multiply records in CR
The best approach, I believe, is to design & develop a small application to do it
-
January 1st, 2008, 04:40 PM
#3
Re: How to multiply records in CR
What's the maximum quantity?
If you can create a table in the database then create one with one numeric column and 'n' rows where each row has a quantity number in it. e.g.
create table multiply(quantity number);
insert into multiply values (1);
insert into multiply values (2);
insert into multiply values (3);
etc.
and then join to this table on the quantity fields using a >= link, e.g.
select t.field, t.quantity
from table t inner join multipy m on t.quantity >= m.quantity
order by t.field
This'll give you 'quantity' detail records per item. The only problem I see is that items with a quantity that's greater than the maximum number in the multiply table will only have that maximum nuber of records.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|