How does this variable ~Parent(1)~ work when shredding Copybooks?

Document ID : KB000115262
Last Modified Date : 18/09/2018
Show Technical Document Details
Introduction:
Trying to modify and improve the speed of the scripts that are generated.  
Question:
Customer had removed this in a few spots and put in some others (I think a direct pointer to a column in another derived/shredded table.)  As we did this, we figured out it was affecting publish to FD in portal. How does variable know what the parent is for say ~(Parent(!)~?
Environment:
TDM 4.6
Web Portal
Answer:
The ~PARENT(1)~ variable is used alongside the foreign key relationship. So the portal knows to which parent column it should reference to by checking the FK relationship then picking up the corresponding row, in this case row 1.
Additional Information:

Video URL on how to open a Support Case - https://communities.ca.com/videos/5898-demo-how-to-open-a-support-case

You can download the latest version of TDM by following the directions in this document: https://support.ca.com/us/knowledge-base-articles.TEC1903942.html.   

To contact support, go to https://www.ca.com/us/services-support/ca-support/contact-support.html