Adding a letter in front of OrderNum

Homepage Clovertech Forums Read Only Archives Cloverleaf Tcl Library Adding a letter in front of OrderNum

  • Creator
    Topic
  • #51447
    Kevin Crist
    Participant

    I am wanting to add a Letter that corresponds to the type of order infront of the order number. So if it is a lab order then i would have L1234567 or if it is an Xray order then X1234567. I will have a table so i will know what letter to put thier i am just unsure of how to go about getting it their. Also, the order number is not a fixed amount of numbers, they can vary.

    thanks for any insight.

Viewing 0 reply threads
  • Author
    Replies
    • #70343
      Jim Kosloskey
      Participant

      If in Xlate try the CONCAT Action

      Let’s sa y@letter is a temp variable where you place the letter (further let’s say the table lookup returns null if not found – more about that later).

      Say the field you want to add the letter to is …OBX.#5… (obviously this is made up).

      The CONCAT would have:

      Source:

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

Viewing 0 reply threads
  • The forum ‘Tcl Library’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,296
Replies
34,439
Topic Tags
287
Empty Topic Tags
10