Re: Print labels in PDF [message #1761 is a reply to message #1744] |
Tue, 21 October 2008 14:37   |
bonzo_bcn
Messages: 152 Registered: June 2008
|
Senior Member |
|
|
I almost done, just one last thing:
The user filters the persons to be printed in the list1 transaction, from there a button prints the details of each person, but I've modified _cm_output_multi so that with the first call to _cm_output_multi, all the selected labels are printed in pairs.
Therefore what I'm getting right now is that all the labels are printed as many times as records are selected in list1.
So what I've done is define a variable called 'first_print=true' in the person class, and then:
function _cm_post_fetchRow ($rowdata){
if ($this->first_print){
$this->first_print = false;
return $rowdata;
}else{
return null;
}
}
Is this the correct way to achieve it?
[Updated on: Tue, 21 October 2008 14:45] Report message to a moderator
|
|
|