Programmatically Check If Export Of View Data Is Disabled

August 30, 2008 – 4:21 pm

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.

Related posts:

  1. Using MySQL Data in XPages
  2. More (Yet) Undocumented Database Properties
  3. Export View Data (Update)
  4. Disable Export Of View Data
  5. Compare Two Arrays

  1. 3 Responses to “Programmatically Check If Export Of View Data Is Disabled”

  2. 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?

    By Thilo Hamberger on Sep 2, 2008

  3. Der Schutz ist nicht in der Ansicht verankert, sondern im Datenbank Icon.
    Die Ansichten selber haben nichts damit zu tun.

    By Ulrich Krause on Sep 2, 2008

  4. 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.

    By Thilo Hamberger on Sep 3, 2008

Sorry, comments for this entry are closed at this time.