Announcement

Collapse
No announcement yet.

Reset a variable after use?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reset a variable after use?

    Hi to all
    I have a channer which asks for demographics towards a webservice.

    Before, I made a conversion, to remove some characters in the transformer:

    var peide = new String($('PEIDE'))
    for (var i = 0; i < peide.length; i++) {
    var caracter = peide.charAt(i);
    if (caracter == "X" || caracter == "x") {
    var res = peide.substring(0, i);
    globalChannelMap.put('res', res)

    The problem is that from time to time I received the same demographics response for different pid's
    My guess is that it is using the same variable 'res' for different patients.
    ┬┐any advice?

    Thanks in advance
Working...
X