web stats
Use of tmp variable - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2014, 02:58 AM
seaston seaston is offline
OBX.3 Kenobi
 
Join Date: Feb 2010
Location: London, UK
Posts: 168
seaston is on a distinguished road
Default 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:

Code:
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?

Simon
Reply With Quote
  #2  
Old 04-03-2014, 06:27 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

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).
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 04-03-2014, 11:05 AM
seaston seaston is offline
OBX.3 Kenobi
 
Join Date: Feb 2010
Location: London, UK
Posts: 168
seaston is on a distinguished road
Default

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.
Reply With Quote
Reply

Tags
delimited, output, tmp, variable

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 02:23 PM.


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