I am new to Mirth connect and I need some help
I am working on a demo like the following:
the source is Database Reader the destination is a Document writer
The SQL select query in the source returns multiple rows "and this is what I need" I am trying to generate a pdf document [ the document writer ] which contains the values of all returned columns but Actually , what is written in the file is the last returned row ONLY
this is the HTML template I wrote
<html>
<head></head>
<body>
<div>
${Target_path}\\${fileName}
</div>
</body>
</html>
and in the destination , I have transformers of type Mapping which maps the values of the returned columns to string
The SQL statement selects two columns from my database , both are strings
the first column represents a path , and the second column represents a file name So I have many file names returned from the sql statement and I need to write all of them to this document
Any hints about how can I deal with every row returned from the query?
Best Regards,
var file_name = msg['file_name'].toString();
, it gives me this error TypeError: Cannot call method "toString" of undefined .. Which works first? the javascript transformer or the sql query from the database reader source? any hints on how to overcome this ? – Heba A.