Problem solve Get help with specific problems with your technologies, process and projects.

Can I get a Notes ID of different design elements programmatically?

Is there any way to get a Note ID of different design elements (like forms, views, agents, etc.) programmatically (preferably in LotusScript)? Also, can I go to different design elements of a database, one by one, in LotusScript? Thanks in advance.
In Notes 5, you can get the design note for a view or folder as follows:

Dim viewDoc as NotesDocument Dim view As NotesView

... Set viewDoc = db. GetDocumentByUnid(view.UniversalID) Print "noteID = " & viewDoc.NoteID

For other types of design elements, you can use the DBDesign script library from the LDD Sandbox (thanks to Damien Katz for this very useful tool).

In Notes 6, you can use the NotesNoteCollection class to find the Note IDs of all the design notes or all those of a specified type. Refer to the Designer help for examples.

Dig Deeper on LotusScript

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...