Single Category Embedded View in XPages -- does not show docs

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

http://www-10.lotus.com/ldd/nd85forum.nsf/DateAllFlatWeb/68448b233a3319b085257590004f33ae?OpenDocument

Thanks!

Dan

Subject: Hmmm

Did you ever get this resolved?

Sorry the post from my site didn’t have enough info to answer this for you…

Silly question but is the first column of the view sorted?

I know this is a LONG video… but I’m pretty sure I talk about this in My Intro To XPages Screencast

http://notesin9.com/index.php/2010/09/26/notesin9-extended-edition-intro-to-xpages/

skip the stuff in the beginning and goto the demo section… I’m sure it’s in there…

If not and you need help send me an email and I’ll try to assist with this.

Dave