Announcement

Collapse
No announcement yet.

Cannot find function

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

  • Cannot find function

    Hi,
    I am using Mirth to convert HL7 to XML. I am getting exception when I am trying to use replace/ replaceAll/ while loop. I am getting below exception:

    Cannot find function indexOf. (com.webreach.mirth.server.MirthJavascriptTransfor merException)

    Anybody help me please....
    ----
    while(str.indexOf("~") != -1)
    {
    str = str.replace("~", "&");
    }

  • #2
    Re:Cannot find function

    hrm, indexOf should be valid, but I think you are taking the wrong approach.

    There is either an extra argument or a replaceAll function that you could use in place of str.replace. That would be better than using your own loop.
    Jon Bartels

    Zen is hiring!!!!
    http://consultzen.com/careers/
    Talented healthcare IT professionals wanted. Engineers to sales to management.
    Good benefits, great working environment, genuinely interesting work.

    Comment


    • #3
      Re:Cannot find function

      Hi,

      I am trying to convert HL7 file to XML. It seems like you are working on it.

      Can you please help me, or give a sample channel to which i can look at.

      Thanks

      Comment

      Working...
      X