web stats
Cannot find function - Mirth Community

Go Back   Mirth Community > Open Source HIT > General Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2008, 04:37 AM
satyanarayanb satyanarayanb is offline
Mirth Newb
 
Join Date: Sep 2008
Posts: 8
satyanarayanb
Default 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("~", "&");
}
Reply With Quote
  #2  
Old 12-29-2008, 05:28 AM
jbartels jbartels is offline
Mirth Guru
 
Join Date: Oct 2006
Posts: 727
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!!!!
http://consultzen.com/careers/
Talented healthcare IT professionals wanted. Engineers to sales to management.
Good benefits, great working environment, genuinely interesting work.
Reply With Quote
  #3  
Old 03-03-2009, 10:56 PM
r_jyothsna r_jyothsna is offline
Mirth Newb
 
Join Date: Feb 2009
Posts: 6
r_jyothsna
Default 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
Reply With Quote
Reply

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 09:28 PM
Cannot find function toUppercase MikeCaldwell Support 1 06-26-2008 11:57 PM
Cannot find where custom variables are defined jcblitz Support 3 08-14-2007 07:04 PM
Transform error: Function function toString wmsTrebor Support 5 08-01-2007 03:45 PM
where to find your xml file of you channel deepaganu Support 1 04-22-2007 07:17 PM


All times are GMT -8. The time now is 10:50 PM.


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