Announcement

Collapse
No announcement yet.

write increasing number into a variable

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

  • write increasing number into a variable

    Hello, can't find anything about it, maybe someone could help:

    I want to build a own number, which is stored as a global channel variable and is incremented by one and than back stored. Than can be called again with the incremented value.

    Is there any possibility in Mirth to do this without including a database?
    Work for a NPO health care provider in Berlin
    • Current Version of MC 3.4.1.770 with the onboard MySQL Database on a Windows Server 2012 R2

  • #2
    You can do this, but global variables do not persist across reboots, so if it is important that the number doesn't reset you will want to write it somewhere permanent, either to a database or the filesystem.

    You'll also have to take extra care if your channel will be multi-threaded.

    Comment


    • #3
      Thanks for your answer. I have got the same judgement and implement a database call. I thought MirthCachedRowSet has a possibility to write a persistence value somewhere in an internal database.
      what is also interesting took me some time: you need a result.getObject('columname') to access the value of a database call.

      But I am no JavaScript native..
      Work for a NPO health care provider in Berlin
      • Current Version of MC 3.4.1.770 with the onboard MySQL Database on a Windows Server 2012 R2

      Comment

      Working...
      X