web stats
Yesterday's Date Filename - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #11  
Old 05-27-2016, 12:22 PM
rmcginness rmcginness is offline
What's HL7?
 
Join Date: Nov 2011
Posts: 5
rmcginness is on a distinguished road
Default

Quote:
Originally Posted by narupley View Post
Right now, the File Reader fields are only replaced once when the channel is deployed. So it would work the first time, but perhaps not subsequent times. We have an issue for that: MIRTH-3131.

In the meantime, unfortunately yeah it would have to be done with a JavaScript Reader instead. Assuming you're just reading from the local filesystem, FileUtils makes it really easy though.

Of course the File Age method works as well.
Thanks "narupley" this line worked for me.

$co('yesterday',org.joda.time.format.DateTimeForma t.forPattern('yyyyMMdd').print((new org.joda.time.DateTime()).minusDays(1)));
Reply With Quote
Reply

Tags
date, destination, filename, mappings, yesterday

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 11:22 AM.


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