Programmatically Check If Export Of View Data Is Disabled
In Lotus Notes /Domino 8.0.2 you can disable the export of view data by selecting this option in the application properties. To programmatically check if the export is disabled, you can use the following LotusScript.
Function IsExportDisabled () As Boolean
IsExportDisabled = False
Dim s As New NotesSession
Dim db As NotesDatabase
Set db = s.CurrentDatabase
Dim IconDoc As NotesDocument
Set IconDoc = db.GetDocumentByID("FFFF0010")
If ( Not IconDoc Is Nothing ) Then
If IconDoc.HasItem("$DisableExport") Then
IsExportDisabled = True
End If
End If
End Function
Notes stores the information in the application’s icon design document. If export is disabled, the $DisableExport field is present. The script simply checks if the field is available. If so, export is disabled and the function returns true else false.