Search found 286 matches

by Padawan
Mon Sep 28, 2020 12:07 pm
Forum: LEGACY scripting
Topic: Switch Webhooks
Replies: 13
Views: 612

Re: Switch Webhooks

I'm afraid it won't be that simple.

The easiest way to do a POST from a browser is to have a form.

If you want to do an automatic post when the page loads, then I think you'll need to have a javascript in a website which does the post for you.

What are you trying to achieve?
by Padawan
Sun Sep 27, 2020 8:56 am
Forum: LEGACY scripting
Topic: Switch Webhooks
Replies: 13
Views: 612

Re: Switch Webhooks

When you open a url in a browser you will do a Get. If you want to do a post from a browser you will need to create a form.
by Padawan
Wed Sep 16, 2020 8:49 am
Forum: Node.js scripting
Topic: Writing a Dataset JSON
Replies: 2
Views: 276

Re: Writing a Dataset JSON

Switch is only able to read XML (and XML derrivates) as dataset. Datasets from other formats are "just" a way to attach a file to a job, you can't read from it. There are some node js packages to convert json to xml, I think it is best if you use one of them and then store an XML dataset. Alternativ...
by Padawan
Mon Sep 14, 2020 12:36 pm
Forum: LEGACY scripting
Topic: XML-path to string
Replies: 14
Views: 1577

Re: XML-path to string

but when I try to get the length x[ i ]["eintragsversion"]["einzeleintrag"]["eintragsdaten"]["zusatzdaten_infos"]["produkt_freigabe"].length I get the same error Trying to access undefined member 'length' This seems normal since the "produkt_freigabe" object is an object (not an array) and it doesn...
by Padawan
Wed Sep 09, 2020 1:07 pm
Forum: LEGACY scripting
Topic: XML-path to string
Replies: 14
Views: 1577

Re: XML-path to string

if you want to check for undefined you have to:

Code: Select all

if (typeof myVariable == "undefined") {
    job.log(3, "myVariable is undefined");
}
by Padawan
Tue Sep 01, 2020 4:15 pm
Forum: Flows
Topic: Create a new Job Folder
Replies: 1
Views: 259

Re: Create a new Job Folder

I would implement it like this - Have a submit point (requires SwitchClient Module + Metadata module) where people have to fill in Job Number, Job Name, Location, Mode - Have a "Set hierarchy path" where you set the name of the jobfolder using the variables from the submit point - Use the "Create Jo...
by Padawan
Mon Aug 24, 2020 9:52 am
Forum: Node.js scripting
Topic: NodeScriptExecutor.js.map
Replies: 10
Views: 927

Re: NodeScriptExecutor.js.map

That also looks normal to me. I think it is best to first check the basics. - Have the script in a Switch flow - Set debug to yes in the script element - make sure the entry point you want to test is in "debug entry points" - activate the flow - If you want to test the jobarrived entry point, make s...
by Padawan
Mon Aug 24, 2020 9:10 am
Forum: Node.js scripting
Topic: NodeScriptExecutor.js.map
Replies: 10
Views: 927

Re: NodeScriptExecutor.js.map

I'm sorry, I meant the launch.json file (it is in your .vscode) folder. I don't know the file names by hard yet in the new scripting engine.
by Padawan
Sat Aug 22, 2020 9:51 am
Forum: Node.js scripting
Topic: NodeScriptExecutor.js.map
Replies: 10
Views: 927

Re: NodeScriptExecutor.js.map

Can you share your package.json file?
by Padawan
Fri Aug 21, 2020 11:36 am
Forum: LEGACY scripting
Topic: XML-path to string
Replies: 14
Views: 1577

Re: XML-path to string

bkromer wrote:
Fri Aug 21, 2020 10:30 am
Bildschirmfoto 2020-08-21 um 10.24.45.png
Your screenshot shows that \Lieverung\ has an attribute and a subnode, but no simple string content. I guess that is why the variable doesn't return anything.

Which return do you want to get?
by Padawan
Fri Aug 21, 2020 10:24 am
Forum: Node.js scripting
Topic: NodeScriptExecutor.js.map
Replies: 10
Views: 927

Re: NodeScriptExecutor.js.map

Is there anything related to sourceMaps in your package.json file? If so, can you try removing/disabling it?
by Padawan
Thu Aug 20, 2020 6:53 pm
Forum: Node.js scripting
Topic: NodeJS debugging
Replies: 11
Views: 801

Re: NodeJS debugging

Is there any error in the messages?
by Padawan
Mon Aug 17, 2020 11:45 am
Forum: Appstore
Topic: Beta testers requested for new "Flow Links" app
Replies: 14
Views: 2962

Re: Beta testers requested for new "Flow Links" app

That is fixed now
by Padawan
Thu Aug 13, 2020 11:03 am
Forum: Flows
Topic: Best way to delete files in a folder older then X?
Replies: 11
Views: 1014

Re: Best way to delete files in a folder older then X?

jan_suhr wrote:
Thu Aug 13, 2020 9:28 am
A shared network volume would normally only have work files on it, no system files should be on a network volume.
Just my two cents: I've seen people share the entire C drive

System files should not be on a network volume, but that doesn't mean that they can't be :)
by Padawan
Wed Aug 12, 2020 8:59 am
Forum: Action Lists
Topic: Die line, thru-cuts, CutContour, ContourCut Does the list ever stop!!!!
Replies: 5
Views: 680

Re: Die line, thru-cuts, CutContour, ContourCut Does the list ever stop!!!!

When you use regular expressions you don't have to use a single select for each layer name, you can all combine them in one select action with a regular expression. The following one will literally match any layername in your list: (Dieline|thru-cut|cutcontour|contourcut|cut|die|kiss-cut) regex1.png...