Comments (2)
UPDATE:
I'm trying to move this very functionality inside Mirth and still have issues with this. I don't know if this is a bug or not. I'm trying to reach a field within a segment logger.debug(msg['PID']['PID.4']['PID.4.1'].name());
and I get back TypeError: name is not a function, it is xml.
. In the Message Trees
I see that the node is there with an [empty]
value. I tried to do the same thing with a different field and I do get the node name, for instance logger.debug(msg['PID']['PID.5']['PID.5.3'].name());
which its value also [empty]
but I get back PID.5.3
.
Why the inconsistency?
from connect.
Your actual inbound message probably does not have a PID.4.1 node.
The outbound template in your transformer, if present, gets serialized to the tmp
variable.
The inbound template is only there for drag-and-drop purposes. msg
will be the contents of your message, which doesn't necessarily look anything like your inbound template that you view in the Message Trees
tab.
To your original question, if you are trying to stringify the XML for a node, use msg['PID']['PID.4']['PID.4.1'].toXMLString()
. That will return an empty string if the node doesn't exist instead of throwing an exception and include the element name even if the node only contains text children.
from connect.
Related Issues (20)
- [BUG] Mirth Versions 4.4.1 and 4.4.2 custom-lib folder needs to be empty for web service listener channel to start HOT 7
- [BUG] 4.4.2 not stating `Please define INSTALL4J_JAVA_HOME`
- Upgrading mirth 3.5.2 to 4.4.2 failed to start HOT 7
- mirth connect and MySQL compatibility HOT 1
- How to upgrade mirth connect version 3.5.2 to version 4.4.2 HOT 2
- [BUG] MacOS installer is sensitive to architecture. It requires an x86 JVM
- [IDEA] Display last sent datetime on dashboard HOT 28
- The database log file is too large to clean up (sqlserver) HOT 6
- Mirth TCP LLP channels getting froze sometimes and message stuck in received state
- Apple M2 Mirth Connect JDK17 issue HOT 7
- how the license.lic in mirth-client.jar generate,i compile the code with ant ,but there's none,i see others mirthconnect got one HOT 1
- [IDEA] On the Dashboard Allow Columns that are sourced from $gc vars.
- [IDEA] Allow configuring admin username and password using environment variables HOT 1
- [IDEA] Auto complete Java native and 3rd party libraries
- [BUG] Mirth 4.0,1 VDI unexpectedly stops writing to mirth.log HOT 6
- [BUG] Frame needs to load Extensions sooner
- [BUG] TCP receiver connector fails with UTF16-BE encoding using double byte MLLP HOT 7
- Health Checks for Mirth Connect server behind an Elastic Load Balancer in AWS HOT 1
- SQL to file append HOT 1
- [IDEA] Ability to increase logging in ObjectXMLSerializer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect.