Single Document Selection

I want to copy selected documents from one view to another view. If they are multiple documents, my code is find. But if I just put cursor on a single document, and not put “Check Mark” before this document, my code will think there is no document is selected.

I use the following code to collect the documents selected:

Set Collection = UIView.Documents

It is not big problem, but I think it would be more convenient for users if they only want to select one document.

Again, my goal is to implement that if users only want to choose one document, then they don’t need to put check mark before that document.

Thanks for your help.

Subject: Single Document Selection

Check out db.unprocesseddocuments property.

Also, if all you’re doing is setting a value on the document, why not just use Formula language?

Doug

Subject: Take a look at notesUIView.CaretNoteID in help

That is one way to get a handle on the document the caret is on…