A Java pre proc in a .xlt as below used to work in 6.2. Can’t get it to work in 19.1. do I need to install a box (javaScriptandPython)? if so, I cannot find it in 19.1
worked in 6.2 after javaScriptandPython box install-
cljXLTStrings {CLASS JavascriptStringXlateBeta} {XLT_STYLE SINGLE} {javascript {
// this is a comment
//using JS slice and indexOf methods!
//just an example – you really wouldn’t do this.
var pos = inVal.indexOf(“-“); // find position of first ‘-‘ in SSN
var res = inVal.slice(pos); //res = “-nn-nnn”
outVal = res; //return “-nn-nnnn” to PID-19
}}