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
#31002 - 05/14/10 08:09 PM script.returnvalue and execscriptfile
Albert K Offline
OL Newbie

Registered: 05/12/10
Posts: 5
How can I pass back a string var to PP Design if the script.returnvalue is integer. I've tried converting on the vbscript side but didnt help.

tx

Top
#31003 - 05/14/10 08:25 PM Re: script.returnvalue and execscriptfile
Anonymous
Unregistered


Albert,

execscriptfile() does not return strings, it can only return a numerical integer.

You can use the "Script.ReturnValue" variable. The VBScript will return the last value of that variable to your Design file.

At the moment, there is no plan to return a string value using that function. We would suggest using PlanetPress Workflow before getting to your Design file in order to retrieve your value(s). If you need a value for each one of your datapages, perhaps you could look up using Metadata plugins to complement the data.

Hope this helps,
Eric

Top
#31004 - 05/17/10 09:19 AM Re: script.returnvalue and execscriptfile
Raphael Lalonde Lefebvre Offline
OL Expert

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

If you do have Workflow, instead of Script.ReturnValue, use:

Code:
Watch.SetJobInfo X, Value
Where X is the job info number(from 1 to 9) and "Value" is the value you want to assign, which is a string. You will run your script in Workflow before processing the form.

In your form, you can call &Watch.Jobinfos[x], where x is the number of the job info, from 1 to 9. This will allow you to use the value you've obtained from your script and stored in the job info.

This will work well if you have Workflow. However, if you don't have it, you won't be able to do it, and as Eric mentionned, there is currently no plans for execscriptfile to be changed to return a string.

Hope that helps!

Regards,
Rapha

Top
#31005 - 05/17/10 11:40 AM Re: script.returnvalue and execscriptfile
Albert K Offline
OL Newbie

Registered: 05/12/10
Posts: 5
Thank you, will look into that.

Top