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
Cloverleaf
How best to skip copying null subfields
System
Originally posted by DS Hunt
I have the following field value: datax
~~
dataz
I would like to skip copying the NULL subfield to the outgoing message: datax~dataz
What is the best method to handle this?
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Assuming Xlate. This is a repeating field.
Use a Field level ITERATE (lets say variable is %f1).
You will need your own variable for the OB since it will not match the number of iterations in the IB. Lets call that %f99.
At the beginning of the Xlate initialize your counter
COPY =0 to $%f99 <-- that is a zero.
Inside the field level ITERATE:
Check the current iteration of the field for not eq to
@null
If true:
COPY the current iteration of the field (using %f1 in the address path) to the OB field using %f99 in the address path
MATH ADD =1 $%f99 result in %f99
If you have any questions or would like some assistance, email me.
Charlie Bursell
Assuming you want to replace all
~~
with ~:
A simple solution would be a small Tcl proc in the route like:
run {
keylget args MSGID mh
msgset $mh [string map [list
~~ ~
] [msgget $mh]]
return "{CONTINUE $mh}"
}
just a suggestion. Jim likes Xlate for everything while i generally like TCL :-)
System
Originally posted by DS Hunt
Thanks to both of you!