| Back | Main view | Parent doc

Scan button

Let's take a look at the code under Scan button:

Sub Click(Source As Button) End Sub

Declaration:

Function IMiSScanObject(SelectedUIDoc As NotesUIDocument, ShowStorageSelectionDialog As Variant, ShowObjectDescriptionDialog As Variant, DefaultDescription As String) As Integer

Return Value:
0 - everything is OK. Scan process has finished with no errors.
-1 - scan process has finished with errors. Most of the errors are reported to user.

As we can see, we have some new features even inside parameters of IMiSScanObject function. Storage server can be selected "on the fly", description of the object can be defined programatically (i.e. based on some field value in Notes document), dialog for object description can be hidden, etc. And of course, as already mentioned, developer is able to put some LotusScript code right before or after scanning process - for example:


| Back | Main view | Parent doc