Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Use of tmp variable (http://www.mirthcorp.com/community/forums/showthread.php?t=10307)

seaston 04-03-2014 02:58 AM

Use of tmp variable
Hello, I'm just trying something out on a channel with delimited text outbound data type and setting the following in the outbound channel transformer:


tmp = new XML("<delimited/>");
tmp.row.column1 = "test 1";
tmp.row.column2 = "two";

I am puzzled as to why I am not seeing any output?

What am I doing wrong?


narupley 04-03-2014 06:27 AM

Do you have an outbound template set? If you don't, then deserialization will always use msg. If you're just overwriting tmp with your own stuff anyway, then it doesn't matter what's in the outbound template (as long as it serializes without errors).

seaston 04-03-2014 11:05 AM

Well that's very odd. I could have sworn that i put something in the template, and that I had tried with both msg and tmp, and still couldn't get it working, but it is ok now.
I was going down the route of template originally but then decided that I would be better building from scratch so have changed to msg variable and all is ok now. Thank you.

All times are GMT -8. The time now is 02:27 PM.

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