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
#30441 - 10/08/09 09:21 AM current data record / total page number
hughbert Offline
OL Toddler

Registered: 10/08/09
Posts: 38
I've been trying to get this to work for a while now, I'm new to planetpress and press talk and am having a hard time getting the meta data to work as I'd like it to.

I need to get page numbers onto all my documents so that when the printer jams I know where to start from. (Same goes for a folding machine that destroys the odd page).

I unfortunatly can't get a page number from the xml data the document uses.

So my question is:
What is the simplest/quickest way to insert page numbers and also the total amount of records in the data?

My desired output would be:
54 of 2000

The page number is the priority though, either record number or page number would work for me.

- Hugh

Top
#30442 - 10/08/09 10:34 AM Re: current data record / total page number
hughbert Offline
OL Toddler

Registered: 10/08/09
Posts: 38
Update:

=inttostr(¤t.datapage)

Gets me my current page, but I still can't find how to get the total amount of pages.

Top
#30443 - 10/08/09 10:44 AM Re: current data record / total page number
Raphael Lalonde Lefebvre Offline
OL Expert

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

current.datapage will return the current page, but not the total amount of pages.

To return the total amount of pages, the best way is to use the Metadata feature. In your Document structure, right-click on the Metadata folder, and choose "Refresh Metadata". Then make a new data selection, and at the top of the data selector, click on the Metadata tab.

There you'll have a list of metadata tags to choose from. You have one called "PageCount", which is the total number of pages. You also have "DatapageCount", which is the number of data pages. Highlight the tag you want, and click OK, and that should make a data selection of the metadata tag.

Hope that helps.

Regards,
Rapha

Top
#30444 - 10/08/09 11:02 AM Re: current data record / total page number
hughbert Offline
OL Toddler

Registered: 10/08/09
Posts: 38
Ah I see now, here's how it ended up for any other Googlers trying to get page totals:

=GetMeta('SelectedDatapageCount', 1)

Thanks Rapha

Top
#30445 - 10/08/09 06:58 PM Re: current data record / total page number
smayers2005 Offline
Junior Member

Registered: 06/22/09
Posts: 5
I have added meta data to my design and it shows up in the workspace correctly (with the correct data). But, when I do a preview, it does not display. Is there a trick to getting the metadata to display during a preview?

Top
#30446 - 10/09/09 09:17 AM Re: current data record / total page number
Raphael Lalonde Lefebvre Offline
OL Expert

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

Make sure you use Optimized PostScript when generating your preview. It will not show up if you preview in Printer Centric.

Regards,
Rapha

Top
#30447 - 10/09/09 10:42 AM Re: current data record / total page number
smayers2005 Offline
Junior Member

Registered: 06/22/09
Posts: 5
That was it. Thanks!

Top
#30448 - 10/12/09 04:53 AM Re: current data record / total page number
TyranXWC Offline
OL Newbie

Registered: 10/12/09
Posts: 15
Loc: South Africa
My one is a bit more complicated.

I have a xml database and 1 Page in my layout, this is an invoice run.

Using overflow the 1 page is repeated according to the amount of lines in the data.

How would I go about adding a page counter to that?

Top