Announcement

Collapse
No announcement yet.

Iterator template text delimiter help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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#

  • #2
    Set column delimiter as '#'

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

    Comment


    • #3
      that code does not work for me. Thank you

      Comment


      • #4
        İ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?

        Comment

        Working...
        X