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
#45699 - 12/16/13 03:42 PM date function
abbeyman Offline
OL Newbie

Registered: 06/13/11
Posts: 5
Loc: UK
How do I get to print the date and time on a document

Top
#45715 - 12/17/13 12:30 PM Re: date function [Re: abbeyman]
Walli Offline
OL Expert

Registered: 02/13/13
Posts: 320
Loc: Ontario
use system variable

Top
#45716 - 12/17/13 12:56 PM Re: date function [Re: abbeyman]
Raphael Lalonde Lefebvre Offline
OL Expert

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

As Walli mentionned, there exists sytem variables that you can use, but you will need to use PlanetPress Workflow. In Workflow, in any variable data fields, you can right-click, go to Variables->System, and then select the variables you need.

So here's what you can do:

- Use a "Set Job Info and Variables" action, then set a job info(let's say 9) to an expression that uses the system variables, such as:

%d-%m-%y %h:%n:%s

Which is the date and time.
- In your PlanetPress Document, create a data selection object. Make it a custom data selection, and use this expression to call the job info:

=&Watch.JobInfos[9]

Nothing will appear while you design the form(though you can set a default value in the document's properties for form design purpose), but will when you run it in Workflow.

- Run your document in PlanetPress Workflow through whatever output you need to use(printer, create pdf, etc...). If you have the option "Add job information to the document" in your chosen output method, make sure you check it. The date and time will now be displayed where you placed your data selection.

That's how you can display the date and time in your document.

On another note, in PlanetPress Design, you have a PressTalk command called "Date", which you can use to display the date without going through Workflow. However, it will not display the time, and is also dependant on your system's regional settings, which can change from machine to machine. Therefore, it is less reliable than building your own format through Workflow.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top