web stats
Iterator template text delimiter help - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2019, 03:24 PM
mberges mberges is offline
OBX.1 Kenobi
 
Join Date: Jan 2018
Posts: 26
mberges is on a distinguished road
Default Iterator template text delimiter help

Good. I need help to create an iterator that picks from a file with this format what is in the position
5 (49.50.54..etc). It is not an HL7 format, but it is a format of a flat file delimited by #.

^CCPb#X#031211083#P#49#0#
^CCPb#X#031211083#P#50#0#
^CCPb#X#031211083#P#54#0#
^CCPb#X#031211083#P#100#0#
^CCPb#X#031211083#P#101#0#
^CCPb#X#031211083#P#102#0#
^CCPb#X#031211083#P#103#0#
^CCPb#X#031211083#P#109#0#
^CCPb#X#031211083#P#110#0#
^CCPb#X#031211083#P#116#0#
^CCPb#X#031211083#P#117#0#
^CCPb#X#031211083#P#118#0#
^CCPb#X#031211083#P#119#0#
^CCPb#X#031211083#P#120#0#
^CCPb#X#031211083#P#122#0#
Reply With Quote
  #2  
Old 03-12-2019, 11:14 PM
obsessio obsessio is offline
OBX.3 Kenobi
 
Join Date: Mar 2015
Location: Turkey
Posts: 150
obsessio is on a distinguished road
Default

Set column delimiter as '#'

PHP Code:
for (var 0getArrayOrXmlLength(msg['row']); i++) {
    
logger.info(msg['row'][i]['column5']);

Reply With Quote
  #3  
Old 03-13-2019, 01:09 PM
mberges mberges is offline
OBX.1 Kenobi
 
Join Date: Jan 2018
Posts: 26
mberges is on a distinguished road
Default

that code does not work for me. Thank you
Reply With Quote
  #4  
Old 03-14-2019, 01:39 AM
obsessio obsessio is offline
OBX.3 Kenobi
 
Join Date: Mar 2015
Location: Turkey
Posts: 150
obsessio is on a distinguished road
Default

İf it is not worked for you, this means that you got an error.
If you don't mind, can you share the error to help you?
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 10:04 AM.


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