Search found 372 matches

by magnussandstrom
Tue May 07, 2024 9:48 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 26
Views: 285

Re: Compose XML for HTTP POST using file in hot folder

teetomterrific wrote: Tue May 07, 2024 8:12 pm Here you go
Thanks, could you also provide a couple of example jobnames?
by magnussandstrom
Tue May 07, 2024 7:17 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 26
Views: 285

Re: Compose XML for HTTP POST using file in hot folder

The script does more than send the Post. It also determines which Server out of 5 the POST needs to be sent to and formats the server URL by using Regular Expressions to pull the last digit of the Job name to a select case for the server. I understand your frustration, but we are just trying to hel...
by magnussandstrom
Tue May 07, 2024 2:53 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 26
Views: 285

Re: Compose XML for HTTP POST using file in hot folder

Why bother with a script when there is an out of the box solution?
freddyp wrote: Thu May 02, 2024 11:36 am 5: you can avoid the use of a script expression by using v20 of HTTP request and choosing "POST a body - Input job".
by magnussandstrom
Tue May 07, 2024 2:50 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 26
Views: 285

Re: Compose XML for HTTP POST using file in hot folder

On the output folder there is a property called 'Strip unique name' set that to 'Yes'.
by magnussandstrom
Thu May 02, 2024 4:43 pm
Forum: Griffin
Topic: Griffin Step anf Repeat
Replies: 5
Views: 107

Re: Griffin Step and Repeat

Egon wrote: Thu May 02, 2024 4:06 pm That's a shame. :|

Wouldn't it be simple to implement this?
For example: Quantity="0" is filling layout with minimal waste.
Yes, one could think so. My guess is that Tilia cripples Griffin a bit because of the fear of competing with Phoenix.
by magnussandstrom
Wed May 01, 2024 9:25 pm
Forum: Griffin
Topic: Griffin Step anf Repeat
Replies: 5
Views: 107

Re: Griffin Step anf Repeat

Is there also a command that Griffin recognizes and simply fills the sheet with minimal waste without entering the quantity? No :( We would also like to do this when it comes to certain jobs. For example SRA3 digital print jobs that are beeing cut in a sheetfed digital die cutting machine and where...
by magnussandstrom
Mon Apr 29, 2024 10:51 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 601

Re: JSON - list of files [SOLVED]

JimmyHartington wrote: Fri Apr 26, 2024 12:12 pm I just tested with one of my flows and got it to work.
Like you with a xslt created with the help of ChatGPT.
Great to hear Jimmy! Another nice thing with using Saxon in Switch is that you get very useful information in Messages if anything fails.
by magnussandstrom
Wed Apr 24, 2024 1:20 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 601

Re: JSON - list of files [SOLVED]

This helps in understanding how. I have not worked with XLSTs in Switch before. It seems a bit daunting to write XLST, but maybe with the help of AI and testing it could work. Some of my flows could surely be optimized in some cases by using XLSTs instead of some of my workarounds. XSLT is very pow...
by magnussandstrom
Wed Apr 24, 2024 8:01 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 601

Re: JSON - list of files [SOLVED]

JimmyHartington wrote: Tue Apr 23, 2024 3:36 pm Ok.

And how do you process the XML with the XLST using Saxon?
I hope that helps Jimmy? Have you been working with XSLT in Switch? And if so how?
by magnussandstrom
Wed Apr 24, 2024 6:58 am
Forum: Switch
Topic: Acrobat Freezing with print command
Replies: 3
Views: 648

Re: Acrobat Freezing with print command

I use an CLI app called 2printer together with Execute Command to print documents with Switch. It works very good.
by magnussandstrom
Tue Apr 23, 2024 3:47 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 601

Re: JSON - list of files [SOLVED]

Oh sorry!

First I installed Saxon 9HE using Chocolatey (choco install saxonhe). Then I installed the Saxonica Saxon Switch app.

In the Saxon app element you just need to choose the xsl-file that you want to use for transforming the incoming XML.

flow_saxon_settings.png
flow_saxon_settings.png (140.58 KiB) Viewed 520 times
by magnussandstrom
Tue Apr 23, 2024 3:32 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 601

Re: JSON - list of files [SOLVED]

Nowadays I use ChatGPT-4 to create varios XSLT's. In this case my prompt looked like this: Can you please write me an XSLT code that I can use to split my XML in one XML file per array item, the file name of the outgoing XML files should be named with arrays item name, in this case 0.xml and 1.xml. ...
by magnussandstrom
Tue Apr 23, 2024 11:46 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 601

Re: JSON - list of files

Thanks Laurent and Jimmy for two creative solutions!

I solved it this way:

1. Pickup JSON as Legacy app XML
2. Export meta data as XML file
3. Saxon with a simple XSL to split the XML (one per filename)
4. XML pickup
5. HTTP request
by magnussandstrom
Tue Apr 23, 2024 9:36 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 601

JSON - list of files [SOLVED]

Hi, I'm using HTTP request to get a list of files as a JSON response. I then use JSON pickup to pickup the response as a JSON dataset. So far so good. Now I would like to download the files listed in the JSON response using HTTP request . But this part I'm struggling with. If it's only one file in t...
by magnussandstrom
Fri Apr 19, 2024 8:18 pm
Forum: Switch
Topic: Search for Flows in Designer
Replies: 5
Views: 574

Re: Search for Flows in Designer

'Element property names' is not the same as 'Element type'. Selecting only 'Element property names' or ' Element property values' won't necessary filter out only flows that contains the specific app. What I request is an easy and reliable way to filter out flows using a specific app, nothing more no...