I have an embedded view, it is on a document that represents a person! I want the view to show only the documents in the database that belong to that person! I identify the person with his social insurance number which is unique! So the view should show the main document that belongs to that person and the responses to the main document! I am not sure how to achieve this!
Are the response document really response document? If so, just use the $Ref field of the response document:
Create a view of responses categorised by the $Ref field. In the main document, put in the embedded view and make the single category @text(@documentuniqueid)
If they’re not true response documents, then do something similar, just categorise the response documents by Social Insurance number, and create the embedded view with single category formula just being the field name for the social insurance number