How can I get the “Not Categorized” documents from a categorized view navigator?
These don’t compile:
Set nav = view.CreateViewNavFromCategory(null)
Set nav = view.CreateViewNavFromCategory(Nothing)
This doesn’t work:
Set nav = view.CreateViewNavFromCategory(“”)
The only thing I could figure out is:
Set nav = viewClaim.CreateViewNav
Set entry = nav.GetFirst
Do While Not entry Is Nothing
vArray = entry.ColumnValues
If Isarray(vArray) Then
Print "Category>"+Cstr(vArray(0))
Else
Print ">Not Categorized<"
Set entry = nav.GetNextDocument( entry )
Do While Not entry Is Nothing
Set doc = entry.Document
'Process document
Call doc.Save(True,False)
Set entry = nav.GetNextDocument( entry )
Loop
Goto EndLoop
End If
Set entry = nav.GetNextCategory(entry)
Loop
EndLoop:
Print “DONE”
It’s not pretty. Surely there is an easier way that I’m missing???
Thanks, Neil Rancour