Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I need some help with some JavaScript code. I am trying to edit my setup-sheet-excel-2007.cps to split a string. I am trying to split the document-path so that It outputs the firstpart of the string only seperated by the first space. For example I have this document-path string "IDB-765-UY MILLING". I want to output "IDB-765-UY".
The Code Below I have works with the older Post engine(4.6050) But I am currently using the newer post engine(5.87.0.87) and it doesnt work with this. How can I accomplish this on the newer? Here is the code:
var partPath = getGlobalParameter("document-path", "");
var firstPart = partPath.split(' ')[0];
programInfo["program.partPath"] = firstPart;
Solved! Go to Solution.