Topic Options
#24253 - 07/11/08 09:02 AM PSM Request - Display Record Number
sellis Offline
OL Newbie

Registered: 07/11/07
Posts: 19
Request?

I have a setup that will only print the document when an object (text Box) is populated using the layout edit condition expression; IF(OBJECT_EMPTY("Text 3")=True,Skip,Print). Could PSM, when verifying the document, show to screen the record number that populates

Top
#24254 - 07/11/08 09:15 AM Re: PSM Request - Display Record Number
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4953
Loc: Objectif Lune Montreal
sellis,

PSM won't return record numbers upon document's verification. It only check for errors, and if the document can compile properly.

That said, there is a RECORD_NR() function that you can use to return the record's number. So one thing you could do is create a new document with a single layout, and give it a condition to only print if your "Text 3" field has something in it. Then, on that layout, you place a text box with a variable that calls the "RECORD_NR()" function. You can then print this document, and that will give you a list of all records where Text3 has something in it.

Regards,
Rapha

Top
#24255 - 07/11/08 09:47 AM Re: PSM Request - Display Record Number
sellis Offline
OL Newbie

Registered: 07/11/07
Posts: 19
Hi Raphael,

"PSM won't return record numbers upon document's verification." - That's correct. I was wondering whether it could as a request. PSM, once it has calculated and preflighted the document, knows what records to print. Could the record(s) be returned somwhere when verifying the document?

An extra setup using "RECORD_NR()" showing the records to print is ok if you only have one document to search for populated fields. However I have 32 PSM files to search through, so haveing PSM return the record number would be ideal in this instance.

Regards,

Top
#24256 - 07/12/08 06:48 AM Re: PSM Request - Display Record Number
Sander vd Berg Online   content
OL Expert

Registered: 06/10/08
Posts: 197
Loc: Objectif Lune NL
As a workaround, try adding an empty image object to your layout. Move it outside the layout area, and set its Snap Frame to Content property to Yes. When you verify your document, a warning will be generated for each record for which the layout will be printed.

Top
#24257 - 07/15/08 05:18 AM Re: PSM Request - Display Record Number
Anonymous
Unregistered


If each record has the same number of layouts that are printed, you could use this:

- variable with expression PAGE_COUNT()
- Press the print preview button

If there are multiple layouts, divide the returned number by the number of layouts to know the amount of records that are printed.

Top