Announcement

Collapse
No announcement yet.

HOw to use th default value?

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

  • HOw to use th default value?

    Hi
    How can I make use of the default value in a message builder? Let's say I wanted the namespace to be "Mirth 1.4". How will I make that happen? Thanks
    Tonet
    Tonet

  • #2
    Re:HOw to use th default value?

    The default value allows you to set a value to use if the mapping is "undefined".

    In order to set the namespace, you would have to use a Javascript step.

    Code:
    tmp.setNamespace(new Namespace("Mirth14", "http://www.mirthproject.org"«»));
    Chris Lang

    Comment


    • #3
      Re:HOw to use th default value?

      HI!
      When you say "undefined", does it conquer an empty data also?
      the code that you gave me..I am going to place it right on the "Default value" box?
      Thanks!
      Tonet

      Comment


      • #4
        Re:HOw to use th default value?

        The default value is separate from the namespace - what are you trying to accomplish? The default value will work for empty data.
        Chris Lang

        Comment


        • #5
          Re:HOw to use th default value?

          HI!
          I placed your code on a newly created Javaascript step Sequence No. 0. I wondered why it didn't work.
          Tonet

          Comment

          Working...
          X