javaScript in 19.1

Homepage Clovertech Forums Cloverleaf javaScript in 19.1

  • Creator
    Topic
  • #115925
    rick retter
    Participant

    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

    }}

     

Viewing 0 reply threads
  • Author
    Replies
    • #115937
      Rob Abbott
      Keymaster

      Hi Rick, would you mind opening a support case on this?  Need to know if we missed some step in the documentation on upgrading javascript / python to 19.1.

       

      Thank you!

      Rob Abbott
      Cloverleaf Emeritus

Viewing 0 reply threads
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,448
Topic Tags
288
Empty Topic Tags
10