Tclproc args are blank

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Tclproc args are blank

  • Creator
    Topic
  • #53091
    Johnny Anderson
    Participant

      CL v5.8, Sun Solaris 10, HL7 v2.3.1

      View attachment-1, see echos with “ARGS”, it’s blank.  Attachment-2 is tclproc, attachment-3 is config.  I need arg value “arg1” but I get a blank.

    Viewing 1 reply thread
    • Author
      Replies
      • #76531
        David Barr
        Participant

          If you’re using the testing tools, you have to reenter the args when you pick the TPS proc to test. It doesn’t automatically get those from the netconfig.

          Also, there’s sort of two ways to pass args to TPS procs. You can pass the args as a simple list or as a keyed list. A simple list would look like “val1 val2 val3”. A keyed list would look like “{arg1 val1} {arg2 val2} { arg3 val3 }”. I’m not sure why you’re using curly braces in your args. Normally you would use those for wrapping around keyed list item pairs, but you aren’t passing a keyed list.

        • #76532
          Johnny Anderson
          Participant

            David, that fixed it, thanks. About the braces, this was my 1st test and I new there would be problems so I just used 1 arg initially.

            Now I have put in the below args using the keyed list method which I got from examples on the forum.

            {ARGKEY1 arg1}

            {ARGKEY2 arg2}

            {ARGKEY3 arg3}

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.