Hi to all!
Maybe it is a silly question, but I'm going crazy.
I've created a channel that reads from a database and writes to a text file.
The problem is that I don't know how to access to the fields that i want.
when I put ${message.encodedData} in the template i get all the result of the query in xml format.
But I only want to put the patient name in the text file. How can I access the fields, I've tried to put msg['patient'], but it didn't work.
Thank you!
Maybe it is a silly question, but I'm going crazy.
I've created a channel that reads from a database and writes to a text file.
The problem is that I don't know how to access to the fields that i want.
when I put ${message.encodedData} in the template i get all the result of the query in xml format.
But I only want to put the patient name in the text file. How can I access the fields, I've tried to put msg['patient'], but it didn't work.
Thank you!
Comment