• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 469
  • Last Modified:

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
0
PParuman
Asked:
PParuman
1 Solution
 
madheeswarCommented:
U save and open the response doc.
0
 
qwaleteeCommented:
Hi PParuman,

>  so if the user wants to go back & not create the reponse, they have to chose something from
> the menu ....
What are you talking about?  I don't think you you've really explained what is going on.

Could you please take us through an example of what a user did from teh time the user opened the discussion database?

Best regards,
qwaletee

P.S.  $Ref field is not really something you control, it happens automatically, and the value is not really recognizable to you directly.  The equivalent is @InheritedDocumentUniqueID, at compose time (not when recalculated).
0
 
CRAKCommented:
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.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now