Hello,
i have the problem, that when i create a response document with xpages the response document has no parentId. so, when i use “document.getParentId()” it returns null.
Are there any solutions?
Thanks
Hello,
i have the problem, that when i create a response document with xpages the response document has no parentId. so, when i use “document.getParentId()” it returns null.
Are there any solutions?
Thanks
Subject: That’s a bug in 8.5.1. Here is a workaround
It was reported too late in the beta test to get fixed for 8.5.1 GA.Here is a workaround:
var pUnid:String = contactDoc.getDocument().getParentDocumentUNID();
var pDoc:NotesDocument = contactDoc.getParentDatabase().getDocumentByUNID(pUnid)
return pDoc.getNoteID();
Subject: Use MainID field instead
The MainID field in the response document has the ID of the parent. I will write this up, but could you tell me if this works using the discussion DB when the response doc is created from the Notes native view? I compared the two and the fields both seem to be written correctly.
Subject: Use the $REF field
Hi Simon,
i made a detour and use now the “$REF” field of the response document.
But thanks a lot for your help.