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
#35581 - 04/05/11 03:26 PM Add variable or job info variable to pdi file
Kate Offline
OL Newbie

Registered: 12/10/09
Posts: 17
Loc: Pennsylvania, USA
Hi all,

Does anyone know how to add a variable to the PDI file in Image?

I'm adding the indexing information from the data stream elements on the form design. But, I need to add a couple of calculated values.

I've tried adding a meta data file and adding the variables to the meta data, without success. It adds them to the metadata file, not the PDI or PDI metadata file.

Any suggestions would be appreciated.
Thanks!

Top
#35584 - 04/06/11 02:03 AM Re: Add variable or job info variable to pdi file [Re: Kate]
cube Offline
OL User

Registered: 09/03/10
Posts: 76
Hi Kate,

I have not tested it, but I guess the following should work.

Add a dataselection object in your PP Design form. In the properties of this object goto the "Data" section and select "Custom Data Selection", the put in your global variable that holds the calculated value as required. Then in the properties of this data selection object you can define it as an index.

Hope this works.
_________________________
There is no Knowledge that is not Power - MK

Top
#35589 - 04/06/11 09:06 AM Re: Add variable or job info variable to pdi file [Re: cube]
Olivier J
Unregistered


Hi,

Yes that will work. You can assign any data selection to be an index. If your logic to get your expected value is too complex to put on a single line, you can even create a global variable, then, in a presstalk object, build any logic you want and assign result to the variable.

In the data selection object, you will use a custom data selection to "show" that variable, and assign it as an index.

Hope this helps. Regards,

Olivier

Top
#35594 - 04/06/11 10:04 AM Re: Add variable or job info variable to pdi file [Re: cube]
Kate Offline
OL Newbie

Registered: 12/10/09
Posts: 17
Loc: Pennsylvania, USA
I'll give it a try.
Thank you!

Top
#35595 - 04/06/11 10:05 AM Re: Add variable or job info variable to pdi file [Re: ]
Kate Offline
OL Newbie

Registered: 12/10/09
Posts: 17
Loc: Pennsylvania, USA
Thanks Oliver,

I'm assuming that the value doesn't have to be "visible" on the output, just indexed, right?

Thanks,
Kate

Top