web stats
Adding carriage return to an internal list saved to file - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2015, 10:41 AM
rutledj rutledj is offline
Mirth Guru
 
Join Date: Nov 2010
Location: North Carolina
Posts: 385
rutledj is on a distinguished road
Default Adding carriage return to an internal list saved to file

I have a channel (vers 3.2.2) that pickup up .doc files and moves them to another location.

I have a second destination That I want to keep a running list of the file names that have been moved. I setting this destination as a filewriter also and appending the origfilename from the 1st desination.

This works fine but I'd like it to be a little easier to read. How can I append a carriage return to the end of each file name so in the saved file, each file is on a separate line?

Currently in the second destination I'm doing this in the Template:

${FileList} + ', Date Received: ' + ${date.get('yyyy-MM-dd HH.mm.ss')} + \r\n

This only puts the characters \r\n at the end, not an actual carriage return.

Thanks
Rut
Reply With Quote
  #2  
Old 09-30-2015, 10:46 AM
plew plew is offline
OBX.1 Kenobi
 
Join Date: Oct 2011
Posts: 34
plew is on a distinguished road
Default

You probably need to actually press shift+return and return to insert carriage return and new line, respectively.
Reply With Quote
  #3  
Old 09-30-2015, 10:53 AM
rutledj rutledj is offline
Mirth Guru
 
Join Date: Nov 2010
Location: North Carolina
Posts: 385
rutledj is on a distinguished road
Default

Not sure I follow. I'm trying to insert a carriage return pro grammatically. What you suggest just puts a carriage return in the code string itself.
Reply With Quote
  #4  
Old 09-30-2015, 11:05 AM
rutledj rutledj is offline
Mirth Guru
 
Join Date: Nov 2010
Location: North Carolina
Posts: 385
rutledj is on a distinguished road
Default

Actually that did work. Thx.
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


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


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