How to replace an xml value
Posted: Wed Feb 21, 2018 4:57 pm
Using Hp DFE JDF Control... Trying to use asset location as a variable that is buried in the xml... The problem is that the path in the xml reads like this... C:\DEPLOYMENTS\consol.csinc.com\CSIncShare\Output\CS-00001558\0000001_output. I need the value of C: to be changed to an actual ip address... So I decided to try my hand at scripting and used this in the scripting module...
var str = "C:";
var res = str.replace("C:", "123.456.7.8");
and i received an error in switch saying:
Cannot open script package 'C:/Users/switch/Desktop/Test.sscript': neither jobArrived nor timerFired entry point is found
Any help would be greatly appreciated...
var str = "C:";
var res = str.replace("C:", "123.456.7.8");
and i received an error in switch saying:
Cannot open script package 'C:/Users/switch/Desktop/Test.sscript': neither jobArrived nor timerFired entry point is found
Any help would be greatly appreciated...