Announcement

Collapse

NextGen (Mirth) Connect 3.10.0 Released!

NextGen (Mirth) Connect 3.10.0 is now available as an appliance update and on our GitHub page. This release includes better SQL Server database support, security improvements through fixes and library updates, and improvements for the Advanced Clustering plugin with a focus on improving performance of many of the tasks that are carried out on a frequent interval. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

change filename

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

  • change filename

    HI!!!
    Can I make my filename look like this?

    "adt-ao1.ao1" or something descriptive like that? I used ${message.type} for the filename but it gives me "result.file" Is there a way to do this in javasript or in any ways possible? thanks guys! any suggestions will help
    Tonet

  • #2
    Re:change filename

    You can crete a variable using a JS step.
    Then, you can use the variable as the name of the file.

    Comment


    • #3
      Re:change filename

      hi!
      If I use a javascipt, does it require me to use reference functions like
      channelMap.put(key,''). I can't understand the parameters here.. Can u please explain?

      I'm only used to creating variables in the mapper. However, I can't undesrtand the syntax for the "Default Value, Regex, Replace With" ..

      Thank u albert!!!
      Tonet

      Comment


      • #4
        Re:change filename

        Using the mapper is the same than using the funcion channelMap.put(key,data).

        To use this function

        key--> The name of the variable. This should be a string like 'myNewVariable'
        data--> The data to put into the variable.

        Ex:
        channelMap.put('msh10',msg`['MSH'][MSH.10]);

        is the same than create a mapper step with name 'msh10' and the msh.10 field of the input message.

        Default value is the value if the map has no value. Regexp is for regular expressions... Google it.

        Comment


        • #5
          Re:change filename

          Now I understand the parameteres, THanks to you!
          Does the default value and the Replace with requires me to use " ". I tried that before but it didn't work..

          Post edited by: shifting_18, at: 05/28/2007 18:29
          Tonet

          Comment

          Working...
          X