CreateViewNavFromCategory()

Hello,

I’m trying to use CreateViewNavFromCategory() via COM to retrieve all documents from the calendar view that have a particular category, but when I run the code, I get a notesViewNavigator with a count of zero.

Here’s basically what I’m doing:

g_oCalView = g_oLNdb.GetView(“Calendar”)

g_oViewNav = g_oCalView.CreateViewNavFromCategory(“vCalSummary”)

But, g_oViewNav.Count = 0

I know that there are documents in the calendar view with the category I’m looking for and can cycle through the entire calendar view to find them, but I’m really looking for a way to cycle through all the documents with a specific category to save time.

Any ideas or suggestions?

Thanks.

Subject: Category ???

I may be missing something, but …

1 - The Calendar view does not have any category columns (as far as I can see)

2 - Even if it did, I doubt if there would be a category called “vCalSummary”

The “category” in this function is a Column Category in the view - it’s not the Category field that is in the documents.