web stats
Cannot find function - Mirth Community

Go Back   Mirth Community > Open Source HIT > General Discussion

Thread Tools Display Modes
Old 12-19-2008, 03:37 AM
satyanarayanb satyanarayanb is offline
Mirth Newb
Join Date: Sep 2008
Posts: 8
Default Cannot find function

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("~", "&");
Reply With Quote
Old 12-29-2008, 04:28 AM
jbartels jbartels is offline
Mirth Guru
Join Date: Oct 2006
Posts: 729
jbartels is on a distinguished road
Default 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!!!!
Talented healthcare IT professionals wanted. Engineers to sales to management.
Good benefits, great working environment, genuinely interesting work.
Reply With Quote
Old 03-03-2009, 09:56 PM
r_jyothsna r_jyothsna is offline
Mirth Newb
Join Date: Feb 2009
Posts: 6
Default Re:Cannot find function


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.

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find the OS X installer mfigueroa Support 3 06-10-2013 08:28 PM
Cannot find function toUppercase MikeCaldwell Support 1 06-26-2008 10:57 PM
Cannot find where custom variables are defined jcblitz Support 3 08-14-2007 06:04 PM
Transform error: Function function toString wmsTrebor Support 5 08-01-2007 02:45 PM
where to find your xml file of you channel deepaganu Support 1 04-22-2007 06:17 PM

All times are GMT -8. The time now is 07:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation