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
Modify sequence of data in ODS segment
Mike Campbell
I'm creating an outbound diet orders xlate. I have several tcl procs called from the xlate to take inbound data, find an associated value in an oracle database and return that value. All is working great.
The only issue is they want any potassium values listed first.
As it is now, the outbound message is:
ODS|D||NA2GM~K50~PRO60~DIABETIC~NA2GM~PRO80
I need to get the K50 to appear first in the ODS segment.
Easiest to do in a post-proc? Build an internal table to hold all values until I"m ready to send the message? Any thoughts would be great.
Thanks.
CL 5.7 patch 2 on AIX.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Mike,
I don't see why you can't do this in the Xlate without much or perhaps any Tcl.
System
Originally posted by bill bearden
Split the field into a list, delimiter ~
Loop through the list elements
If K, add to new list
Loop through the list elements again
If not K, add to new list
Join new list into string, delimiting with ~
Stick the string back in the segment
System
Originally posted by Michael Vork
Good solution, Bill.
Mike Campbell
Thanks for all the good ideas. The segment listed is actually the outbound message. There are several points [different data elements and segments] within the inbound that I am retrieving that data so I'm thinking I need an array or something to hold all the data, then loop though looking for the K, then mapping out all the values after that.
System
Originally posted by Alice Kazin
I would use tcl code with a "lsort" command.