Search found 22 matches

by Qpdv
Tue Apr 26, 2016 5:38 pm
Forum: LEGACY scripting
Topic: How to load an external xml into script
Replies: 2
Views: 4298

How to load an external xml into script

Hello, I need to create an order xml. Somewhere on the serve i have a base xml file which i would like to load, then change some values and store that xml as private data in the job. First i tried to load the xml via XMLHttpRequest (which didn't work... obviously :D ). Now i have xmlDoc = new Docume...
by Qpdv
Mon Feb 01, 2016 10:54 am
Forum: Flows
Topic: Download pdf from XML
Replies: 1
Views: 2216

Download pdf from XML

Hello,

How can i download a pdf file from an url in an xml?

Thanks in advance,

Peter
by Qpdv
Thu Jan 07, 2016 5:07 pm
Forum: LEGACY scripting
Topic: Script not starting
Replies: 4
Views: 3888

Re: Script not starting

Ah... I found the job.fail() method but wasn't aware of the extra required functions, although very understandable actually :).

Thanks again!
by Qpdv
Thu Jan 07, 2016 3:46 pm
Forum: LEGACY scripting
Topic: Script not starting
Replies: 4
Views: 3888

Re: Script not starting

Hi, Thanks!

That worked, but does it do? Why doesn't a simple return do the trick?

Peter
by Qpdv
Thu Jan 07, 2016 11:31 am
Forum: LEGACY scripting
Topic: Script not starting
Replies: 4
Views: 3888

Script not starting

I'm testing with a very easy script, but its not starting, the job stays in the folder before the script.

Code: Select all

function jobArrived( s : Switch, job : Job )
{
	job.setPrivateData('testcontainer', 'testvalue');
}
How can i Start a script?

Thanks in advance,

Peter
by Qpdv
Wed Jan 06, 2016 4:58 pm
Forum: LEGACY scripting
Topic: Adding data to a dataset via srcipt
Replies: 2
Views: 3269

Adding data to a dataset via srcipt

Hi, How can i add data to a dataset when using a script? I have the following lines of code in my script: var databaseDataset = job.getDataset("MPXMLdirect"); var oldMedia = databaseDataset.getPath("/Log/SQLStatementValue/Row/Column[20]"); is there a databaseDataset.setPath or si...
by Qpdv
Thu Dec 03, 2015 3:10 pm
Forum: Flows
Topic: Send email after sending all jobs
Replies: 10
Views: 9218

Send email after sending all jobs

Hi, I have a flow that retrieves a folder with pdf files. But now i would like to send an email when a folder has been transferred instead of the separate pdf files/jobs. Hierarchy -DIR_001 --101 ---Pdf1.pdf ---Pdf2.pdf --102 ---Pdf1.pdf ---Pdf2.pdf So when folder 101 or 102 hes been transferred i w...