Link to home
Start Free TrialLog in
Avatar of PParuman
PParuman

asked on

making the $ref field appear when the response document is created

Hi...

I have a discussion database & when a user clicks to create a response , the $ref field has no value , so if the user wants to go back & not create the reponse, they have to chose something from the menu ....

is there no way to get the $ref field to compute immediately upon creation of the response document
Avatar of madheeswar
madheeswar
Flag of Singapore image

U save and open the response doc.
ASKER CERTIFIED SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CRAK
If the doc ids on the main documents  are stored in a separate field - e.g. "myDocId", text, computed, @Text(@DocumentUniqueID) - you could inherit this field upon creation instead (store it in e.g. myParentsID).

The technique is sometimes used as part in an effort to secure structural integrity: if response documents are cut/pasted to other parent doc's $Ref on the responses will change. Your inherited field however will still point to the original parent.