Am I just missing it or is there no way to programmatically set “Editable Column” on a view column using LotusScript?
Subject: Programmatically set “Editable Column”
I’m afraid no. But if you really need this feature, there is a quite simple workaround.Create a dummy hidden view with the two versions of your column (one editable and the other non-editable, say in position 1 and 2 respectively). You can then switch column version in the target view by doing deleting/pasting of the column like this:
Dim s As New NotesSession
Dim sourceView As NotesView
Dim targetView As NotesView
’
Set sourceView = s.CurrentDatabase.GetView(“DummyView”)
Set targetView = s.CurrentDatabase.GetView(“TargetView”)
Dim col1 As NotesViewColumn
’ remove the previous version
Call targetView.RemoveColumn(1)
’ replace it by the editable version
Set col1 = targetView.CopyColumn(sourceView.Columns(0), 1)
With the last line modified into:
Set col1 = targetView.CopyColumn(sourceView.Columns(1), 1)
you will switch back to the non-editable version of the column.
Hope this helps
Thierry Cayla
Subject: re
Thanks for your reply. I was hoping there was a way other than having a hidden column, but alas…
Thanks again