I have a view sorted on a key, know that there are 2 matching documents (1 Document and 1 Response) and GetAllDocumentsByKey only returns the Document.
Does GetAllDocumentsByKey work with ResponseDocs or not? If not, what is the workaround?
I have a view sorted on a key, know that there are 2 matching documents (1 Document and 1 Response) and GetAllDocumentsByKey only returns the Document.
Does GetAllDocumentsByKey work with ResponseDocs or not? If not, what is the workaround?
Subject: GetAllDocumentsByKey & Response Docs
It will only return the one matching the key (usually the parent if the view is hierarchical). You either need to get the responses AFTER you have a handle on the parent or you need to build the view so that the parent/responses are on the same level (not parent/child).
Subject: RE: GetAllDocumentsByKey & Response Docs
Sorry, I should have stated that all the docs are on the same level and are not parent/child.
It is a simple view with one column (KEY) and all the docs appear as expected. It is just that GetAllDocumentsByKey only seems to see the Parent even though the Child is there too.
I know I am missing something, I just am not seeing it. But how many ways can you write Set dc = view.GetAllDocumentsByKey( key, True ) ?
Subject: RE: GetAllDocumentsByKey & Response Docs
You’ve got it right, that should be all you need. Sound like the view isn’t categorized on the key. It has to be for that method to work.
Subject: RE: GetAllDocumentsByKey & Response Docs
Thanks for the ideas. I ended up writing a GetChild routine that worked.
Subject: RE: GetAllDocumentsByKey & Response Docs
I just ran into this as well. Just make sure that the “Show response documents in a hierarchy” box is not checked.
Corrected my issue,