Setting The View Type For Entries Added Through COM

I’m adding Documents to a view via Visual Basic and the Domino object model, and I can’t figure out how to set the Document or “Entry” type in code.

By “type” I’m referring to the type set in the “View Selection” formula of views.

Subject: Setting The View Type For Entries Added Through COM

The word “type” has no meaning in the context you’ve given. Can you elaborate?

Subject: RE: Setting The View Type For Entries Added Through COM

SELECT Type = “Person” …This is an example of a View Selection formula. I want to add a document and set it with the selection criteria as a “Type” person, so that it will show up in my “Person” view that has this selection criteria.

Subject: RE: Setting The View Type For Entries Added Through COM

“Type”, in that instance, is not an intrinsic property of a Notes document. Rather, it is merely a field name, and the view’s selection formula selects all documents in the database bearing a field (NotesItem) named “Type” which contains the value “Person”.

Subject: RE: Setting The View Type For Entries Added Through COM

ahhhhh…ok I feel dumb, I thought for sure that was in fact an intrinsic property. The whole non-relational database thing got to me.

I thought it had to be a property because it wouldn’t make sense being a field if it was just tied to one type of thing in the database…if that makes any sense to you…anyways thanks for your help.