set a variable when a layout is printing

Posted by: MrCizor

set a variable when a layout is printing - 07/05/13 11:19 AM

Hi,

In my project I have about 20 differents layout witch are call by the value of a field.
layout's action is set by an expression like :
Quote:
IF([CODE]="C1",Print,Skip)

It run very well !
But I have to add a last page with the number of occurs of each printed Layouts like :
Quote:

code C1 : 128
code C2 : 17
code C3 : 43
...


What is the best way to that ?
I can't increment a variable and run a PRINT function in the same IF statement.

Thanks in advance
Posted by: Raphael Lalonde Lefebvre

Re: set a variable when a layout is printing - 07/05/13 04:43 PM

MrCizor,

Unfortunately, PrintShop Mail doesn't have "global variables" that would allow you to have variables in which you can store data, such as counters and others. (In fact, PrintShop Mail's variables don't really store any data in them, it merely displays data and apply operations and commands to format what's displayed) You would have to have the information already there in your database.

Regards,
Raphaƫl Lalonde Lefebvre
Posted by: MrCizor

Re: set a variable when a layout is printing - 07/09/13 10:18 AM

thank you, I'll will calculate these informations before printing in PSM

Regards