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
#43631 - 05/29/13 04:59 AM Summary Data As Section On Every Page
Oliver
Unregistered


Hi I have a data file which is a statements that contains multiple number of pages and the Summary value which is always on the last page of the statement.

What I'd like to achieve is to have ths Summary Value as a section on every page.

I am thinking to loop through the data page, from the current data page till when the Account No/Name has changed and then pass the previous value of the data page (which will be definitely the last page of the statement and that contains the Summary Values) to a variable using PlanetPress Talk.

Question is how can I loop through data page using PlanetPress Talk? And get the value of that data page?

Top
#43637 - 05/29/13 10:16 AM Re: Summary Data As Section On Every Page [Re: ]
Raphael Lalonde Lefebvre Offline
OL Expert

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

Rather than looping through the data pages, the best approach is probably to create a custom metadata field. On your last page with the Summary value, you can add this to your PlanetPress Talk:

definemeta('Summary', &MySummary, 0, 'Job.Group.Document')

This will create a "Summary" metadata field that will contain the value of "MySummary". (replace this by your own variable) You can then refresh the metadata, and use the field's value anywhere you need from the data selector's metadata tab.

In PlanetPress Workflow, you will have to add a "Create Metadata" action that will call the .ptk form right before the final output. This is necessary to create the required metadata file.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top