hi,i’m biginner in designer and i made a form to regester a document,and then another form to write a comment,and i have an integreted view in the first one wich displays just comments to this document.how can i do that?
thankd a lot for your help
hi,i’m biginner in designer and i made a form to regester a document,and then another form to write a comment,and i have an integreted view in the first one wich displays just comments to this document.how can i do that?
thankd a lot for your help
Subject: RE: selective view
There’s a property of the embedded view, “show only current thread”, which will show the main document and its responses. To show just the responses, you would need a categorized view sorted by @Text($REF) and use the single category formula of the embedded view to limit the selection. This view would have to have “Show response documents in a hierarchy” turned off.
Subject: RE: selective view
Thanks alot,that resolve my problem
Subject: RE: selective view
In fact,i’ve one more question:when i’m creating the document,the first time,normally i should have the embeded view umpty,because i didn’t write a comment yet,but actually the view displays all comments that exist!!
Subject: RE: selective view
Describe what you did, please.
Subject: RE: selective view
Ok,In the main form,i’ve put a calculated field(ID) that generate a unique code,and in the second form i’ve put a field that heritate from the (ID),so that the document an their comments have the same ID.then in the embaded view i’ve created a categorised colomn sorted by ID.
I made the second form response document.
And in the embeded view,i chech the property you told me
Subject: RE: selective view
in the formula of selection i’ve put:
SELECT((FORM=form1) |id=id|@isResponseDoc)
Subject: RE: selective view
In the main form,i’ve put a calculated field(ID) that generate a unique code,and in the second form i’ve put a field that [inherit] from the (ID)…You don’t need this; each response will automatically contain a $REF item which is the same as the UNID of the parent document.
…in the embaded view i’ve created a categorised colomn sorted by ID.
So you can now categorize by @Text($REF) instead.
in the formula of selection i’ve put:
SELECT((FORM=form1) |id=id|@isResponseDoc)
The selection formula can’t use information from the parent document. The expression id=id is always true, so the view selects all documents in the database.
To select the documents corresponding to a particular ID, you must use the “single category” formula of the embedded view, with a formula such as: @Text(@DocumentUniqueID) (or in your case, id)