Search found 649 matches

by dkelly
Tue Sep 11, 2018 8:17 pm
Forum: Scripting
Topic: Info from unknown XML
Replies: 3
Views: 740

Re: Info from unknown XML

Using XPath

1. returns count of Kind elements
count(//Kind)

2. returns individual quantity values
//Kind/Quantity/text()
by dkelly
Tue Aug 14, 2018 5:08 pm
Forum: Scripting
Topic: Switch scripting and advanced topics class @ Print '18
Replies: 1
Views: 1002

Re: Switch scripting and advanced topics class @ Print '18

Seats are selling out fast. Make sure you purchase a ticket @ https://www.brownpapertickets.com/event/3587110
by dkelly
Wed Aug 08, 2018 5:00 pm
Forum: Scripting
Topic: Auto number a list from metadata
Replies: 3
Views: 883

Re: Auto number a list from metadata

Can you give us a little more information?

It appears that the incoming job has an XML attached as metadata. You locating the individual items by splitting on "<BR>" element.

What element are you using the variable? In a script or Condition with variables?
by dkelly
Fri Jul 20, 2018 4:14 pm
Forum: Scripting
Topic: Switch Scripting Training
Replies: 4
Views: 2583

Re: Switch Scripting Training

Hello, please see my post in this forum titled "Switch scripting and advanced topics class @ Print '18" for more information.
by dkelly
Mon Jul 16, 2018 11:35 pm
Forum: Scripting
Topic: Week number to Private data
Replies: 4
Views: 1423

Re: Week number to Private data

In script function getWeekNumber(d) { d.setDate(d.getDate() + 4 - (d.getDay()||7)); var yearStart = new Date(d.getYear(),1,1); var weekNo = Math.ceil(( ( (d.getTime() - yearStart.getTime()) / 86400000) + 1)/7); return weekNo; } var weekNo = getWeekNumber(new Date()); job.setPrivateData("week", weekN...
by dkelly
Mon Jul 16, 2018 11:20 pm
Forum: Scripting
Topic: Merge CSV files in a folder
Replies: 4
Views: 1267

Re: Merge CSV files in a folder

If you need a more advanced CSV merge solution contact sales@apago.com for information about our collection of CSV utilities for Switch.
by dkelly
Thu Jul 12, 2018 12:07 am
Forum: Applications
Topic: CSV lookup - Variable in CSV filename
Replies: 4
Views: 1060

Re: CSV lookup - Variable in CSV filename

Are you storing the value in private data, metadata?

private data would look something like:
[Job.PrivateData:Key="filename"]

and metadata:
[Metadata.Text:Path="/mydata/filename"]
by dkelly
Wed Jul 11, 2018 5:05 pm
Forum: Applications
Topic: CSV lookup - Variable in CSV filename
Replies: 4
Views: 1060

Re: CSV lookup - Variable in CSV filename

For "CSV file" property choose "Define single text with variables" and then enter the variable you want to use for the CSV filename.
by dkelly
Wed Jun 20, 2018 3:57 pm
Forum: Scripting
Topic: Switch scripting and advanced topics class @ Print '18
Replies: 1
Views: 1002

Switch scripting and advanced topics class @ Print '18

Apago will be holding a full day hands-on seminar on JavaScript and advanced concepts during Print 18 in Chicago. We had great feedback from last 4 seminars and will be incorporating more hands-on exercises. Bring your list of questions and requirements and we will work through them. Date: Tuesday, ...
by dkelly
Mon Apr 30, 2018 11:22 pm
Forum: Scripting
Topic: How to add 2 days to Date in xml content- in Switch Scriptor
Replies: 8
Views: 2066

Re: How to add 2 days to Date in xml content- in Switch Scriptor

[quote="neecerp"]I have a script that reads an xml The incoming content is formatted as <OrderDate>3/20/2018 4:13:17 PM</OrderDate> I would like to add 3 days to the Order Date to get a Due Date in the Switch Script below. :?: :?: I keep getting errors that it is expecting a different date format li...
by dkelly
Mon Apr 30, 2018 11:17 pm
Forum: Scripting
Topic: Post an XML file using SOAP
Replies: 2
Views: 934

Re: Post an XML file using SOAP

Here's a SOAP example // create soap request var theRequest = { "http://www.webserviceX.NET/:ConvertTemp" : { "http://www.webserviceX.NET/:Temperature" : 100.0, "http://www.webserviceX.NET/:FromUnit" : "degreeCelsius", "http://www.webserviceX.NET/:ToUnit" : "degreeFahrenheit" } }; var SOAPRequest = ...
by dkelly
Tue Apr 24, 2018 4:54 pm
Forum: Flows
Topic: Writing XML value to Private Data in Script
Replies: 3
Views: 1103

Re: Writing XML value to Private Data in Script

The correct syntax would be

Code: Select all

var IssueType = job.getVariableAsString( '[Path="/JobSheet/IssueJobSheet/IssueInfo/@IssueType",Dataset="Xml",Model="XML"]' );
by dkelly
Wed Oct 18, 2017 4:04 pm
Forum: Applications
Topic: SmartStream users wanted
Replies: 0
Views: 887

SmartStream users wanted

We are developing some new solutions for HP Indigo and would like to hear from users on their issues with existing configurators and new functionality they need. For instance, Smartstream VDP configurator is very limited. Input job must be the data file and named for the template to be used meaning ...
by dkelly
Wed Oct 18, 2017 4:02 pm
Forum: PitStop Pro
Topic: Ensure PDF is 100 % Black
Replies: 1
Views: 1315

Re: Ensure PDF is 100 % Black

I'm not sure about Pitstop but Apago PDFspy reports exact color usage for CMYK. We use it in several flows to sort "black only" jobs from thoses that have color.
by dkelly
Wed Oct 18, 2017 4:01 pm
Forum: Action Lists
Topic: change preseparate
Replies: 1
Views: 1250

Re: change preseparate

Can you please give more detail about your requirement?