web stats
messageObject.getRawData() depreciation - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2013, 12:33 PM
cbrown cbrown is offline
Mirth Newb
 
Join Date: Apr 2013
Posts: 11
cbrown is on a distinguished road
Default messageObject.getRawData() depreciation

Since messageObject.getRawData() is being depreciated, what is the new replacement? messagesource?

$('mirth_source'), connectorMessage.getRawData(), or something else?
__________________
Mirth Certified
Reply With Quote
  #2  
Old 10-29-2013, 12:35 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Quote:
Originally Posted by cbrown View Post
Since messageObject.getRawData() is being depreciated, what is the new replacement? messagesource?

$('mirth_source'), connectorMessage.getRawData(), or something else?
As stated in the Javadoc as well as the ERROR entry that gets logged when you try to use it:

Code:
Please use connectorMessage.getRawData() instead.
__________________
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 10-30-2013, 07:37 AM
cbrown cbrown is offline
Mirth Newb
 
Join Date: Apr 2013
Posts: 11
cbrown is on a distinguished road
Default

Quote:
Originally Posted by narupley View Post
As stated in the Javadoc as well as the ERROR entry that gets logged when you try to use it:

Code:
Please use connectorMessage.getRawData() instead.
Did not know this : http://javadocs.mirthcorp.com/connec...tRawData%28%29 : existed. Would be nice to cover in the training classes.
Reply With Quote
  #4  
Old 10-30-2013, 07:41 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

If you right-click in any JavaScript context and hit "View User API", you can view the Javadoc that way too (it's hosted locally by your instance of Mirth Connect).
__________________
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
  #5  
Old 10-30-2013, 09:58 AM
jacobb jacobb is offline
Mirth Employee
 
Join Date: Aug 2006
Location: Irvine, CA
Posts: 1,218
jacobb is an unknown quantity at this point
Default

Quote:
Originally Posted by cbrown View Post
Did not know this : http://javadocs.mirthcorp.com/connec...tRawData%28%29 : existed. Would be nice to cover in the training classes.
This javadoc is new to Mirth Connect 3.0.0.
__________________
Jacob Brauer
Director, Software Development
NextGen Healthcare

Reply With Quote
Reply

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:31 PM.


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