I have an Custom Control that has a few fields on it with a View Control also. My goal was to show only those documents in the View Control that pertain to a field value on the Custom Control.
On the afterPageLoad event of the Custom Control, I have this:
//Get the document object in JavaScript…
var doc:NotesDocument = dominoDocument1.getDocument();
//Create a variable with a field value…
var projID = dominoDocument1.getItemValue(“pr_ID”);
// Assign the variable to a Session Scope…
sessionScope.put(“projectID”, projID);
which works fine (tested with a Computed Field control to see the value).
On the View Control I have the categoryFilter set to:
sessionScope.get(“projectID”);
However, it does not show any documents associated with that projectID sessionScope.
The view itself has the first column categorized with the correct field and value. The column is shown in the View Control – it is not hidden or missing. The view is in the current database, not from another database, so access is not an issue.
When I remove the categoryFilter, all the documents appear in that view on the Custom Control.
I have found a few posts, but no answer:
http://www.lotusnotebook.com/lotusnotebook.nsf/D6Plinks/DLEY-7UEFYU
Thanks!
Dan