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.

3 thoughts on “Programmatically Check If Export Of View Data Is Disabled

  1. Wie “hart” ist denn dieser Schutz? Kann ich ihn umgehen, wenn ich mir eine Kopie als private Ansicht erstelle und das Feld dann lösche?

  2. Achso. Das habe ich überlesen. 🙁

    Er gilt also für alle Ansichten gleichermaßen. Sowas hätte man doch auch gleich für Copy&Paste machen können.

Comments are closed.