Search found 9 matches

by AA5MC
Fri Dec 08, 2023 6:45 pm
Forum: Node.js scripting
Topic: Get the connection absolute path
Replies: 3
Views: 46608

Re: Get the connection absolute path

I want the file count of the directory after a file is sent.
by AA5MC
Wed Dec 06, 2023 5:55 pm
Forum: Node.js scripting
Topic: Get the connection absolute path
Replies: 3
Views: 46608

Get the connection absolute path

Hello I have a script that has three out connection I like to be able to get the out connection absolute path for example: if I loop through my connection I like to get the out folder location on disk let OutConnections: Connection[] = flowElement.getOutConnections(); for (const connection of OutCon...
by AA5MC
Fri Aug 25, 2023 12:34 am
Forum: LEGACY scripting
Topic: Error in script expression when using setPrivateData
Replies: 2
Views: 5828

Error in script expression when using setPrivateData

Hello,
I have a script expression and I'm trying to set : job.setPrivateData('Destination', 'MyDestination');

However, the script is erroring saying that job.setPrivateData is not define?
Is it possible to set job.setPrivateData in a script expression?

if so anyone have a example?
by AA5MC
Fri Aug 25, 2023 12:09 am
Forum: Switch
Topic: Script Expression
Replies: 1
Views: 6447

Script Expression

Hello,
I have a script expression and I'm trying to set : job.setPrivateData('Destination', 'MyDestination');

However, the script is erroring saying that job.setPrivateData is not define?
Is it possible to set job.setPrivateData in a script expression?

if so any have a example?
by AA5MC
Wed Aug 16, 2023 9:45 pm
Forum: Switch
Topic: Evaluating metadata to connection paths
Replies: 3
Views: 6047

Re: Evaluating metadata to connection paths

Thank you for the replay. We uses these function all the time. What I was asking : Within the variables set is there a built-in variable that gives you the path (Preferable) or folder name of the out going connection . if my out going connection is D:\temp for example is there a variable that will g...
by AA5MC
Wed Aug 16, 2023 8:11 pm
Forum: Switch
Topic: Evaluating metadata to connection paths
Replies: 3
Views: 6047

Evaluating metadata to connection paths

Hello, I have metadata that has a file path, now without scripting is there a way to compare the metadata to a outgoing folder? For example: In the metadata I have D:\myprinter1 and I have two out going connection to folders: myprinter1 and myprinter2 What I like to do ( again without scripting ) is...
by AA5MC
Fri Jul 21, 2023 2:36 pm
Forum: Flows
Topic: HTTP passing variables as part of the URL
Replies: 4
Views: 2896

Re: HTTP passing variables as part of the URL

@jan_suhr no never thought of that? so would the hold URL need to be escaped or just the parameter part.
by AA5MC
Fri Jul 21, 2023 1:40 pm
Forum: Flows
Topic: HTTP passing variables as part of the URL
Replies: 4
Views: 2896

HTTP passing variables as part of the URL

Hello, we have a web API that passes paramters as if they were subdirectories in the url. for example: https://myserver/ourwebapi_subfolder/api/app/SwitchSetJobStatus/myapikey/uniqueid/mystatus so I created this URL using a variable: https://myserver/ourwebapi_subfolder/api/app/SwitchSetJobStatus/12...