Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
McDon
Contributor III
Contributor III

talend thmap get value of outer loop element

I've posted this in Stack Overflow here:

https://stackoverflow.com/questions/74734156/talend-thmap-get-value-of-outer-loop-element

copying the text here for convenience.

I'm just starting out with thMap. So far I have successfully mapped an X12 835 message to output structures. That works no problem.

I have also successfully acquired the LoopIndex of the current loop using the LoopIndex() function.

My challenge: I need to get the value of an element from the enclosing loop.

In the attached image, everything in green is working. I'm trying to get the value down the red line. My goal is to do this assignment

gsRecord.parent_id = enclosing loop isaRecord.id

The documentation explains some things but I don't see examples putting it together

Labels (2)
1 Reply
Anonymous
Not applicable

Hello,

Sorry for getting back to you so late.

We have escalated your issue to our TDM experts and then come back to you as soon as possible.

Best regards

Sabrina