Subject: RE: Access to the design document source in lotusscript
Thanks a lot.
I have found this link to to display design element document in a view :
http://www.dominopower.com/issues/issue199908/design001.html
You must create a view, for example name’s VIEWDESIGN with a slection formulas : SELECT @ALL; and one colomn order with formulas $Title
You must create an agent with the code :
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set view= db.GetView(“VIEWDESIGN”)
Set doc = db.GetDocumentByUNID(view.UniversalID)
Call doc.ReplaceItemValue(“$FormulaClass”, “XXX”)
doc.Save True, True
End Sub
Replace XXX with the value :
1 : to display Documents
2 : Unknown
4 : to display Forms and Subforms
8 : to display Views, Folders and Navigators
16 : Database Title
32 : Design Collection (overall information)
64 : ACL Note (in compiled format)
128 : Unknown
256 : Unknown
512 : Agents (Shared)
1024 : Shared Fields
1548 : Forms, Sub-forms, Views, Folders, Navigators, Agents (Shared), Shared Fields
You can add values, for example if you want to see forms and views replace XXX by 12 (4+8)
Execute the agent, open the view, press shift+F9 to refresh the view index and it’s all…