Easy one for Friday

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Easy one for Friday

  • Creator
    Topic
  • #51754
    Mike Campbell
    Participant

      I’ve created an e-mail proc to use data from an xlate. I am doing a ‘call’ to the proc from within the xlate.  

      keylset mailargs DOB      $dob

      keylset mailargs PRIM_MRN $prim_mrn

      keylset mailargs  SEC_MRN $sec_mrn

      keylset mailargs NAME_OUT $last_name

      echo “calling – dob is:” $dob

      SendEmailMesasge $mailargs

      The SendEmaiMessage works except the data isn’t filled in.

      I’m setting variables like:

      copy 0(0).PID(0).#7(0).[0]  @dob

      If I hard code the dob, the data is passed okay to the called proc.

      The simple Friday question is, how do I correctly get the vaiables into the keylset list to correctly format the message?  

      I’m sure it is simple…but I’m not figuring it out.

    Viewing 1 reply thread
    • Author
      Replies
      • #71605
        Jim Kosloskey
        Participant

          Mike,

          The values from the Source side of your Xlate Action are stored in the xlateInVals list.

          So something like [lindex $xlateInVals 0] and [lindex $xlateInVals 1] might work to get those values.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

        • #71606
          Mike Campbell
          Participant

            As always, you are right on Jim.  

            I knew they were in the xlateIn list but just didn’t know exactly where

            the variables were.  Its working as desired.  

            Again, thanks so much.

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