Recently, I have archived a collection of documents to archive database. After I am done, I lost parent child relationship ($ref is not matching with parent UNID). I do not have a backup. Is there a way to re-establish parent child relation.
One more thing, my child documents do not hold values of parent’s. I use @GetDocField($Ref,). I thought, if I have the value then, I can manually check and run an agent.
I totally agree with you, I would never design an application with @GetDocField (being used as primary relationship joiner). I man use it to just get the values when parent document values changes to keep them in sync. But, unfortunately, I am maintaining other’s code.
I am going to write my own algorithm to maintain the relationship and (as you said) I am going to store parent values in child.