web stats
Mirth Community - View Single Post - trouble in mapping to a variable
View Single Post
  #1  
Old 02-27-2014, 11:35 AM
Renzo_Passolini Renzo_Passolini is offline
Mirth Newb
 
Join Date: Feb 2013
Posts: 19
Renzo_Passolini is on a distinguished road
Default trouble in mapping to a variable

Hi
I have to map to the following.

@PID.3.1^71604~@PID.3.4^958~@PID.3.5^NHC

where 71604 should be my variable

I have done the following
variable numerodehistoria = msg['QRD']['QRD.8']['QRD.8.1'].toString()

so it looks like

@PID.3.1^${numerodehistoria}~@PID.3.4^958~@PID.3.5 ^NHC

but the output fails, doesn't map.

I have do a search, and I have found that I have to click on "parse subcomponents", but does not work. I think it is because it is in between "^" and "~"

How can I sort it? thanks in advance
Reply With Quote