Announcement

Collapse

NextGen Connect 3.10.1 Released!

NextGen (Mirth) Connect 3.10.1 is now available as an appliance update and on our GitHub page. This release contains bug fixes. See the release notes for the list of fixes.

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

  • shifting_18
    replied
    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

    Leave a comment:


  • albertosaez
    replied
    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.

    Leave a comment:


  • shifting_18
    replied
    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!!!

    Leave a comment:


  • albertosaez
    replied
    Re:change filename

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

    Leave a comment:


  • shifting_18
    started a topic change filename

    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
Working...
X