Search found 645 matches
- Sat Nov 25, 2017 12:58 am
- Forum: Flows
- Topic: How do I make a decision based on if a folder exists in my FLow.
- Replies: 9
- Views: 11636
Re: How do I make a decision based on if a folder exists in my FLow.
I got it to work, it ended up needing to be the Forward slash instead of the backlash (//workserver/work/jobs/) which ended up working. It must have something to do with the way Inject Lite uses it, because it works fine as \\workserver\work\jobs\ in Switch. Thanks for your help. Sorry for the hass...
- Wed Nov 15, 2017 8:53 pm
- Forum: Flows
- Topic: How do I make a decision based on if a folder exists in my FLow.
- Replies: 9
- Views: 11636
Re: How do I make a decision based on if a folder exists in my FLow.
I think it might be that preceding "\\". Is there another way it could be addressed? like "file:///" or "/Volumes/whatever"?
- Wed Nov 15, 2017 6:48 pm
- Forum: Flows
- Topic: How do I make a decision based on if a folder exists in my FLow.
- Replies: 9
- Views: 11636
Re: How do I make a decision based on if a folder exists in my FLow.
Not really sure. Can you post a screenshot of the app/script properties you are using?MichaelG wrote:Any idea what may have caused this?
- Wed Nov 15, 2017 3:49 pm
- Forum: Flows
- Topic: How do I make a decision based on if a folder exists in my FLow.
- Replies: 9
- Views: 11636
Re: How do I make a decision based on if a folder exists in my FLow.
You can try to inject it (or https://www.enfocus.com/en/appstore/product/inject-lite) to see if its there before you do that operation
- Tue Nov 14, 2017 3:25 pm
- Forum: Flows
- Topic: Download from a FTP-SSL
- Replies: 4
- Views: 6574
Re: Download from a FTP-SSL
Search the forums for "ftps". AFAIK, Switch supports sftp but not ftps, but others have pointed out workarounds.
- Tue Nov 07, 2017 10:03 pm
- Forum: LEGACY scripting
- Topic: Streamlining scripts - point to common information
- Replies: 7
- Views: 10569
Re: Streamlining scripts - point to common information
I think then I'll need to edit the scripts to look for a particular Private Data Key and I'm hoping that I can pull that info into the PD key so that the result is reusable and scalable. On the right track, but you'll want those scripts to take an input variable which you can edit in the flow. Then...
- Tue Nov 07, 2017 4:53 pm
- Forum: LEGACY scripting
- Topic: replacechild
- Replies: 9
- Views: 12218
Re: replacechild
It looks like that would work, but your code is a little confusing. I would examine the behavior of your for loop. Print some log messages there and discover if you are looping correctly through each klantorder. replaceChild returns the node that was removed, print that to the log and compare what i...
- Tue Nov 07, 2017 3:37 pm
- Forum: LEGACY scripting
- Topic: Streamlining scripts - point to common information
- Replies: 7
- Views: 10569
Re: Streamlining scripts - point to common information
You can't use require in Scripter, since that's a node thing. Remember, Scripter uses an old version of ecmascript so lots of modern stuff is not there. To do this, you would have to use the environment/file classes to open the .js file, then use eval https://developer.mozilla.org/en-US/docs/Web/Jav...
- Tue Nov 07, 2017 3:32 pm
- Forum: LEGACY scripting
- Topic: replacechild
- Replies: 9
- Views: 12218
Re: replacechild
Could you post your XML file (or its structure)?
- Mon Nov 06, 2017 9:57 pm
- Forum: LEGACY scripting
- Topic: replacechild
- Replies: 9
- Views: 12218
Re: replacechild
Maybe you should give the replaceChild method a try http://www.enfocus.com/manuals/DeveloperGuide/SW/17/en-us/common/sw/reference/r_document_class.html replaceChild( newChild : Node, oldChild : Node ) : Node Replaces the specified child of this element with another node and returns the removed node.
- Mon Nov 06, 2017 6:54 pm
- Forum: Flows
- Topic: Submit point data to xml
- Replies: 4
- Views: 5207
Re: Submit point data to xml
On your submit point, there will be a value for setting the dataset name. Use that same name when you export the metadata and it should work fine.
This is handy for debugging job tickets: https://github.com/open-automation/swit ... ket-export
This is handy for debugging job tickets: https://github.com/open-automation/swit ... ket-export
- Mon Nov 06, 2017 4:24 pm
- Forum: LEGACY scripting
- Topic: Linebreaks in Scripter
- Replies: 1
- Views: 3333
Re: Linebreaks in Scripter
Where do you want to make the string more readable?
Try adding "\n" to your string.
Try adding "\n" to your string.
- Fri Nov 03, 2017 1:53 am
- Forum: LEGACY scripting
- Topic: Streamlining scripts - point to common information
- Replies: 7
- Views: 10569
Re: Streamlining scripts - point to common information
There is a way to set and get global data within scripter but I haven't really used it.
http://www.enfocus.com/manuals/Develope ... class.html
http://www.enfocus.com/manuals/Develope ... class.html
- Thu Oct 26, 2017 3:00 pm
- Forum: Applications
- Topic: Switch 13 u1, Client authentication error. Incorrect password.
- Replies: 2
- Views: 5647
Re: Switch 13 u1, Client authentication error. Incorrect password.
I think I remember this happening. I believe we had a Switch Client out there that was running an older version or something. There was a way to track it down by seeing the connected users -- it was an option in the Designer somewhere, but I forget the details.
- Fri Oct 20, 2017 8:01 pm
- Forum: LEGACY scripting
- Topic: JDF/JMF Translator
- Replies: 3
- Views: 8753
Re: JDF/JMF Translator
Sounds like a good use case for Switch. You should break down this integration into segments and try to come up with a solution for each. For instance, start with "Switch to take a JMF from MIS". What limitations do you have with your MIS? Can it spit out a JMF automatically on some event?...