infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
TCL help Remove everything after ampersand
vdurst
In OBR-15.1 for Specimen Type, we are getting value URINE&URINE. We only want value "URINE" so we need to remove the & and anything after it. I'm having issues dong this in an xlate because of & being a special char so need TCL help. Thank you in advance!
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Use sub-component notation to only get the first sub-component
So COPY ....OBR(0).#15.[0].[0] the first [0] says take the first component, the second [0] says take the first sub-component - the first URINE (if the second square brackets set was [1] you would get the second URINE - the one following the &).
No Tcl needed.
vdurst
Thank you for the response Jim! Before your post, that is what I ended up doing since the "&" made it a sub-component - doh!