web stats
Replace '\E' from URL link using replace method - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-13-2019, 01:17 AM
shuhaibk54 shuhaibk54 is offline
OBX.1 Kenobi
 
Join Date: Jan 2018
Location: Abudhabi
Posts: 26
shuhaibk54 is on a distinguished road
Send a message via AIM to shuhaibk54 Send a message via Skype™ to shuhaibk54
Default Replace '\E' from URL link using replace method

var str='\E\\E\10.1.2.154\E\bcs\E\30877_P9999_Adult{2} _02_05_2019_0329p.pdf';
var res=str.replace('\E', '');
logger.debug(res);
---------------------------------------------------------------------
When I try run a script, it giving me an out put like :
--------------------Java script return like this --------------------
[2019-02-13 15:06:30,001] DEBUG (js-connector:?):

\E.1.2.154EcsE877_P9999_Adult{2}_02_05_2019_032 9p.pdf

---------------------------------------------------------------------
it does not get replaced . I am expecting final out like this
\\10.1.2.154\bcs\30877_P9999_Adult{2}_02_05_2019_0 329p.pdf



-----------------------------

Any quick advise on this
Reply With Quote
 

Tags
java, java script

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


All times are GMT -8. The time now is 01:18 AM.


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