I have an XPage where I find all the child documents using the key view (first column) with a method called getAllDocumentsByKey. As a key, I use the parent's UNID. But now I have one more ChildType parameter, which can be equal to "Before" or "After". So I tried to solve it as follows:
var childType = viewScope['currentChildType']
var parameters = [parentDoc.getUniversalID(), childType]
allParts.getAllDocumentsByKey(parameters)
But this does not work (Vector is not the right object). When I try to find all the children with this:
allParts.getAllDocumentsByKey(parentDoc.getUniversalID())
It works so well.
In my view, 5 columns - the 0th - parentDocID, and the last is the type childType. How can I find it with two parameters instead of 1?
source
share