Hi,
No idea if it’s a case of being something so simple I’m over looking it, but I can’t seem to figure this out.
I have an Xpage that currently has a data source bound to the response document and shows all the response document information. What I would like to do is to also show on the same xpage a few details from the parent document. I’ve read you can bind multiple data sources to the same Xpage and that you can bind a datasource to a specific document via the ‘document id’ property when defining a data source. But here’s my trouble, I can seem to get the data source to bind to the parent document from the XPage that is also bound to the response document, when I try it binds to the response document.
I’ve tried creating a data source set to ‘open document’ and tried computing the ‘document id’ with:
var db:NotesDatabase = session.getDatabase(applicationScope.ServerName,applicationScope.DBName);
var doc:NotesDocument = currentDocument.getDocument();
var pDoc:NotesDocument = db.getDocumentByUNID(doc.getParentDocumentUNID());
pDoc.getUniversalID()
but this hasn’t worked for me. I’ve also as a test tried pasting the parents document id (i.e. DCB7E2713DE8168FA02577260048E56A) in the ‘document id’ field as a static string to just see if I was on the right track but even that didn’t work.
Can anyone suggest or point out the error of my ways?
Thanks as always in advance