IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#38176 - 01/04/12 07:21 PM Number of Copies per Record
Luis Jimenez Offline
OL Newbie

Registered: 01/04/12
Posts: 12
Loc: Colombia
There are some functions to define the number of different copies for each record, ie to record 1, 100 copies are required to record 2, 200 copies are required.

Top
#38177 - 01/05/12 07:04 AM Re: Number of Copies per Record [Re: Luis Jimenez]
Kennet Offline
OL Toddler

Registered: 12/28/11
Posts: 46
Loc: Denmark
If the number of copies is stated in each row of the database, i have a small script you can use, to create a new database where each row is repeated the stated number of times.

if you want it, i'll post it.

Top
#38178 - 01/05/12 09:42 AM Re: Number of Copies per Record [Re: Kennet]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Luis,

If you click on a layout, you'll notice that the "Number of copies" field can contain a variable expression. This means that you could reference a field from your database that would contain the number of records, or use any kind of logical expressions to determine how many copies of a specific record.

Perhaps you could provide us with more information on the logic you intend to use to figure out the number of copies, so we can better help you to find a way to do it.

Regards,
Raphaël Lalonde Lefebvre

Top
#38216 - 01/10/12 08:42 PM Re: Number of Copies per Record [Re: Kennet]
Luis Jimenez Offline
OL Newbie

Registered: 01/04/12
Posts: 12
Loc: Colombia
Hi Kennet,

If you can publish, we appreciate it.

Regards,

Luis

Top
#38217 - 01/10/12 08:45 PM Re: Number of Copies per Record [Re: Raphael Lalonde Lefebvre]
Luis Jimenez Offline
OL Newbie

Registered: 01/04/12
Posts: 12
Loc: Colombia
Hi Raphael,

the "Number of copies" does not work when you attach a database field.

As you would do?

Regards,

Luis

Top
#38221 - 01/11/12 09:55 AM Re: Number of Copies per Record [Re: Luis Jimenez]
Kennet Offline
OL Toddler

Registered: 12/28/11
Posts: 46
Loc: Denmark
Hi Louis

I've tested Raphaels method with a VAL([databasefield]) as the expression - and it actually does work. Which renders my script a much more complex way of fixing it.

Top
#38225 - 01/11/12 10:58 AM Re: Number of Copies per Record [Re: Kennet]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Luis,

I've tried it again just to be sure, and I confirm that it works fine.

As Kennet pointed out, however, you may need to use VAL if for some reasons it sees your field as text data rather than a number.

Can you perhaps give us more details on what happens when you say that it does not work? Is it a problem with your expression? Or it doesn't print the right number of copies?

Please provide more details.

Regards,
Raphaël Lalonde Lefebvre

Top