Topic Options
#55471 - 11/08/17 04:13 PM Changing FormName in the workflow process
jwbf Offline
OL Toddler

Registered: 09/14/11
Posts: 43
We have several overlays with FormName 'Daily'. They are used in the Daily process.
The same overlays are then used in the Monthly process. And we would like to change the FormName to 'Monthly' when they are run in the Monthly process.
We don't want to create the same overlays for Monthly reports just because of the FormName.
Is there any way to change the FormName in the Monthly process?
The FormName 'Monthly' is to show on XML file.

Thanks,

Top
#55473 - 11/10/17 03:20 PM Re: Changing FormName in the workflow process [Re: jwbf]
Raphael Lalonde Lefebvre Offline
OL Expert

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

You cannot dynamically change the form name directly in the template. If you were to output a PostScript file however (such as by using a PlanetPress printer queue output that outputs to a folder ), you could then capture that file, do a search & replace to alter the %%Formname parameter, and then send that file directly to the printer as Passthrough using another Printer Queue Output. This will have the same effect as if you were altering the form's name directly in the template.

So in your "Monthly" branch, you could create another branch, use a Printer Queue Output with a PlanetPress printer queue that's setup to output to a folder, and output the job in .ps format. Then, back to the Monthly branch, you use a Folder Capture to get that file, use a Search & Replace to alter it, and then send that file to print to a normal Printer Queue Output using passthrough.

Hope that helps!

Regards,
Raphaƫl Lalonde-Lefebvre

Top
#55486 - 11/15/17 09:15 AM Re: Changing FormName in the workflow process [Re: jwbf]
jwbf Offline
OL Toddler

Registered: 09/14/11
Posts: 43
Hi Raphael,

Thanks!

We use 'PlanetPress Image' to output to a folder. That way, the 'XML and PDI' index files are generated at the same time. And FormName 'Monthly' is expected in the XML file.

I did as instructed in your message but the last step. PlanetPress Image is used instead of Printer Queue Output. And the FormName is missing in the XML file. Here's the first 4 lines of the XML file.
<?xml version="1.0" encoding="UTF-8"?>
<Pdi>
<Header>
<FormName/>

If Printer Queue Output to a folder is a better way to do it, how to output the XML file along with the PDF at the same time?

Thank you,

Top