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
NTE Not repeating
Collin Praster
I am having an issue with an NTE not repeating, I have included screen shots. Thanks in advance. The first NTE is there but I can not get the second to show.
2019-08-07_1343_001.png
2019-08-07_1343.png
Find more posts tagged with
Clovertech
Comments
Collin Praster
This is 2.4 to 2.5.1
Collin Praster
Sorry one more screen shot the actual results of the xlate
2019-08-07_1433.png
Jim Kosloskey
Try removing the field repetition from the NTE in the address path (both sides) in your PATHCOPY.
Ex ….NTE rather than …. NTE(0)
RobertKersemakers
NTE is not a repeating group, but a repeating segment inside the group {[OBX] {[NTE]}}.
So you need another %g3 iteration within the %g2 iteration and then
PATHCOPY 1(0).1(%g1).1(%g2).NTE(%g3) -> 1(0).1(%g1).3(%g2).NTE(%g3)
Collin Praster
I couldnt get this to work but I totally could be doing something wrong.
Collin Praster
That worked, can you give me a quick explanation as to why that worked if you don’t mind and have an extra minute. Thanks
Jim Kosloskey
With PATHCOPY and a repeating element (at least Segment and Field - I have not tried Group) if there is a Repetition position specified the tokenizer/parser expects either an absolute value or a % reference.
But if you leave off the repetition position then PATHCOPY has a feature where it will COPY all elements of all repetitions at that level - unless the variants don't match up or unless PATHCOPYing from one node to another (like Group to segment or one segment to a different type of segment).
It is just the way PATHCOPY was written.
I suggest you add comments so the next person (or even you later on) who works on this section of code doesn't have to remember this non-obvious feature.
Personally I don't use PATHCOPY in this way just because I like the control of specifying the ITERATE and the self documenting that presents. Just a personal preference.
This is one of the topics I cover in my Xlate ITERATE Class.