Kai K.

  • 1 question asked
  • 3 answers
  • 0 best answers (0%)
  • How can we copy a file from a path using javascript by parameterizing file name?

    I have a file in C:\tmp I am writing below code to copy contents of file but the name here is hardcoded I want to parameterize the file name so that I need not change it...
    Venkata Vijaya S.
    Venkata Vijaya S.

    Venkata Vijaya S.

    Level
    0
    34 / 100
    points
    Kai K.
    Kai K.

    Kai K.

    Level
    0
    39 / 100
    points
    I would assume the following code should be working: var path=context.variableManager.getValue("myPathVariable"); var fileToCopy = new Packages.java.io.File(path);
  • Extractor matchNr

    Can we get more than 200 on <variable_name>_matchNr ? It seem's 200 to be the max. Can we change this setting ? regards, Nicolas
    Nicolas P.
    Nicolas P.

    Nicolas P.

    Level
    0
    1 / 100
    point
    Kai K.
    Kai K.

    Kai K.

    Level
    0
    39 / 100
    points
    Hey Nicolas, I'm not having any issues storing 200+ items within a variable. Have you checked your extraction? Also, if you are processing the result of a webservice call, make...
  • How to work with JSON objects within conditions

    How would I use a JSON object within an if…then…else condition? In my case I'm iterating across a JSON object, which has four object elements. The loop runs four times as...
    Kai K.
    Kai K.

    Kai K.

    Level
    0
    39 / 100
    points
    Kai K.
    Kai K.

    Kai K.

    Level
    0
    39 / 100
    points
    Hi Fousseyni, thanks for your reply. I could also extract contractId and contractIsMine from the JSON object to two separate variables. This for example would give my foo=[21...