web stats
Document Writer not rendering ${..} code in the PDF - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 07-29-2016, 08:10 PM
ppazos ppazos is offline
OBX.2 Kenobi
Join Date: May 2008
Posts: 77
Default Document Writer not rendering ${..} code in the PDF


I'm testing the Document Writer destination, trying to save a PDF with some data from an HL7 v2.x message. I'm on Mirth / Java 7.

This is my HTML Template:

<p>${date.get('yyyy-M-d H.m.s')}</p>

The file is generated but when I open it, what I see is:

${date.get('yyyy-M-d H.m.s')}

Is there any example of valid HTML Templates that actually work?
Is this a bug of the Document Writer?

Reply With Quote
Old 07-31-2016, 08:24 PM
siddharth siddharth is offline
Mirth Guru
Join Date: Feb 2013
Posts: 841
siddharth is on a distinguished road

This looks incorrect.


You should be using just message.encodedData to write the entire HL7 message.

Last edited by siddharth; 08-01-2016 at 12:21 AM. Reason: correction.
Reply With Quote

document writer, pdf

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 07:27 AM.

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