Topic Options
#44093 - 07/05/13 11:19 AM set a variable when a layout is printing
MrCizor Offline
OL Newbie

Registered: 04/10/13
Posts: 3
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

Top
#44102 - 07/05/13 04:43 PM Re: set a variable when a layout is printing [Re: MrCizor]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4953
Loc: Objectif Lune Montreal
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

Top
#44120 - 07/09/13 10:18 AM Re: set a variable when a layout is printing [Re: MrCizor]
MrCizor Offline
OL Newbie

Registered: 04/10/13
Posts: 3
thank you, I'll will calculate these informations before printing in PSM

Regards

Top