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
setting a portion of ORU OBX.5 to a variable missing spaces
Gina Borden
I don't claim to be a tcl programmer, but I am trying to pull a certain phrase out of result and set it to a variable. I have the following proc in my Pre tcl of a concat in my Xlate:
set text [string toupper $xlateInVals]
set index [string first "IMPRESSION:" $text]
echo "indexIM =$index"
if {$index > -1} {
set text [string range $text $index [string length $text]]
echo "textIM =$text"
set xlateOutVals $text
}
if {$index == -1} {
set OutVal "UNKNOWN"
}
When I run this through my tester the echo textIM shows:
IMPRESSION">
But when I set my variable in my outbound field, it comes out like
IMPRESSION">
I am loosing the spaces between the words.
Any help would be greatly appreciated.
Thanks,
Gina
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Gina,
A hint: all of the values you upvar for an XPLT type proc are LISTS and need to be treated as such.
Also it appears this is a repeating field. If so, you may be able to simplify your Tcl work by Iterating through the repetitions of the field rather than trying to treat the entire set as one field.
System
Originally posted by Robert Milfajt
Try using:
set xlateOutVals [list $text]
Also it appers you are setting OutVals and not xlateOutVals in your second set statement.
Gina Borden
Thanks! That was it! It always seems to be the little things. . .