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
Iteration Problem: Post Variable outside of loop
Gordon Koch
Hello All,
I have a problem that I hope someone has solved already. I need to populate the value in the field of one OBX iteration across all the OBX iterations if present. In the Xlate, I am interrogating if OBX.5 contains a certain value and then capturing this value in a variable. When present, I need to populate this value across all OBX iterations in another field (OBX.8).
Right now, I can just populate OBX.8 of the OBX segment that contains the value, not the other OBX segments. Basically I cannot escape the interation loop of the segment in question.
Any suggestions??
Thanks.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Gordon,
ITERATE twice over the OBX. The first time to discover if the value exists and set the temp variable.
In the second ITERATE check of that temp variable is not null and act accordingly.
Gordon Koch
Hello Jim,
Thanks for the input. Are the Basis values for the two iterates the same? I am not sure how the variable is carried over to the second iterate.
Thanks.
Jim Kosloskey
Same basis. If you feel more comfortable using a different counter that is fine but not necessary as each ITERATE treats its counter separately.
Gordon Koch
Hello Jim,