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
#58207 - 12/14/21 09:25 AM Insert Leading Zeros in Metadata
steveo Offline
OL Newbie

Registered: 06/28/17
Posts: 12
I'm using metadata to get the page counts in a document, but instead of "Page 1 of 10" I'd like to pad the numbering with two zeros - "Page 001 of 010" etc...
I see how to do that in a data selection and presstalk but I'm having a hard time finding how to implement it when using metadata.


Quote:
=GetMeta('SelectedIndexInDocument[0]', 1, 'Job.Group.Document.DataPage')+' of ' + GetMeta('SelectedCount[0]', 1, 'Job.Group.Document')

Top
#58208 - 12/15/21 07:09 AM Re: Insert Leading Zeros in Metadata [Re: steveo]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Try this:
Code:

=right('00'+GetMeta('SelectedIndexInDocument[0]', 1, 'Job.Group.Document.DataPage'),3)+ ' of ' + right('00'+GetMeta('SelectedPageCount[0]', 1, 'Job.Group'),3)

_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top