Search found 413 matches

by freddyp
Fri Jun 23, 2017 1:57 pm
Forum: Scripting
Topic: Duplicate pages
Replies: 11
Views: 54372

Re: Duplicate pages

Impressive Sander, but how about this solution? ;)
Screen Shot 2017-06-23 at 13.48.48.png
Screen Shot 2017-06-23 at 13.48.48.png (55.18 KiB) Viewed 54360 times
Both your and my solution duplicate pages like this 1234,1234,1234, but perhaps it has to be 111,222,333,444 or still something else? The apps handle it all and in a much simpler way.
by freddyp
Mon May 08, 2017 9:39 am
Forum: Flows
Topic: How do you hold a file until the rest copy?
Replies: 5
Views: 8868

Re: How do you hold a file until the rest copy?

Set the "Folder constraint" property of the outgoing connection of "Hold job" to "Yes" and I am sure you will find what you need.
by freddyp
Wed Apr 12, 2017 11:30 am
Forum: Scripting
Topic: split an XML to individual nodes using XSLT
Replies: 2
Views: 17237

Re: split an XML to individual nodes using XSLT

The attribute is called OrderID, not Type, so it should be

Code: Select all

@OrderID
instead of

Code: Select all

@Type='OrderID'
by freddyp
Thu Apr 06, 2017 5:57 pm
Forum: Flows
Topic: Check for files in variable folder
Replies: 3
Views: 5884

Re: Check for files in variable folder

That sounds like "Submit hierarchy" starting at the root folder /jobs.
by freddyp
Mon Apr 03, 2017 5:52 pm
Forum: Flows
Topic: Check for files in variable folder
Replies: 3
Views: 5884

Re: Check for files in variable folder

Have a look at https://www.enfocus.com/en/appstore/product/inject-lite. This app can check if a certain file/folder exists ("Assert exists") and then you can inject it.
by freddyp
Mon Apr 03, 2017 5:47 pm
Forum: Scripting
Topic: New job from existing file
Replies: 1
Views: 15938

Re: New job from existing file

The reason your approach does not work is because the job is only created when the script finishes. The solution is to use the FileStatistics class. You can use that on any file, it does not have to be a job: var filestats = new FileStatistics(pathToFileAsString); The rest is in the documentation of...
by freddyp
Thu Mar 23, 2017 4:36 pm
Forum: Flows
Topic: Targeting 2nd to last page
Replies: 6
Views: 9227

Re: Targeting 2nd to last page

This was added in PitStop 13 update 1.
by freddyp
Thu Mar 23, 2017 9:28 am
Forum: Flows
Topic: Targeting 2nd to last page
Replies: 6
Views: 9227

Re: Targeting 2nd to last page

You have been using the calculation as the name of the variable set. That is not going to work. You have to select an existing variable set, or create one, both through "Select variable set", edit or create a variable set, add a variable, define the value of the variable with your calculat...
by freddyp
Mon Mar 20, 2017 9:27 am
Forum: Scripting
Topic: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)
Replies: 5
Views: 8441

Re: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)

That is in Switch Scripter!? Of course [Job.Origin] is not filled in. [Job.Origin] can only be filled in in a flow. Try the script again by running it in a flow with a file actually coming from an FTP site! There are lots of properties that get added to a job as it travels through a flow. Because in...
by freddyp
Thu Mar 16, 2017 8:33 pm
Forum: Scripting
Topic: multiple XML nodes in email alert
Replies: 5
Views: 8469

Re: multiple XML nodes in email alert

Instead of putting everything in different pieces of private data, just put everything into one string and put the separator that you need inside the string. For use in the To or CC fields that would be a semicolon, for use in lines in an HTML mail that would be <br>, ... Codewise (not tested) var m...
by freddyp
Thu Mar 16, 2017 8:12 pm
Forum: Scripting
Topic: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)
Replies: 5
Views: 8441

Re: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)

I assume you are using the new web-based Switch Portal? That the variable [Job.Origin] is not filled in is a known limitation. For security reasons browsers do not allow to get the path of a file that is being uploaded, and hence it is not possible to provide a value for that variable. You can still...
by freddyp
Mon Mar 13, 2017 4:51 pm
Forum: Flows
Topic: Load information in Submit Point
Replies: 4
Views: 5833

Re: Load information in Submit Point

With the Database Module you could indeed populate the drop-down list from an ODBC data source. The only other alternative is the use of a script expression, for which you will need the Scripting Module. Here is a link to a similar case where the values of the drop-down list come from the list of fi...
by freddyp
Fri Mar 10, 2017 4:11 pm
Forum: Flows
Topic: FTP receive not working
Replies: 2
Views: 4537

Re: FTP receive not working

This is typically something you would report to support: https://www.enfocus.com/en/user?destina ... ort/portal
by freddyp
Fri Mar 03, 2017 11:33 am
Forum: Flows
Topic: numberOfFilesCustom has invalid value
Replies: 2
Views: 4825

Re: numberOfFilesCustom has invalid value

Clearly the value of [Job.Hierarchy:Index="1"] is not a number. You must have used "Set hierarchy path" to squeeze the [Job.FileCount] into the hierarchy, right? Did you not have something else in the hierarchy already and index 1 is not what you think it is? Anyway, whenever I w...