web stats
Problems with variables - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 09-26-2006, 12:28 AM
fernandoma fernandoma is offline
What's HL7?
Join Date: Sep 2006
Posts: 3
Default Problems with variables

Hello, I have the next code inside the filter:
var pac_nombre = "PEPE";

return true;

And inside the transformer in the mapping section:

The output field is return:

If I put localMap the variable return null.

Can you help me?
Reply With Quote
Old 09-26-2006, 11:36 AM
chrisl chrisl is offline
Mirth Employee
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Problems with variables

1. Try var pac_nombre = 'PEPE'; instead (with single quotes).
2. Also you can use globalMap.get('pac_nombre').toString(); in the transformer
3. The localMap from the filter does not get carried over to the transformer. Ideally, all variable mappings occur in the transformer.

Hope this helps!
Chris Lang
Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping variables from preprocessor skrugg Support 3 05-26-2014 11:03 PM
Alert Template Variables tsmith Development 1 05-01-2008 02:41 PM
Global Variables gauchomike Support 2 02-19-2008 09:31 AM
SQL Variables not showing under Available Variables in 1.4 bobbie Support 4 04-23-2007 05:35 PM
More variables fernandoma Support 1 09-26-2006 11:31 AM

All times are GMT -8. The time now is 04:36 PM.

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