Created/LastModified Date of Desgin elements like Form, Agent,

Hi all,

 Could anyone please guide me how to get creation date or last modified date of design elements like Form, Agent, script libraries..... using Lotus Script

 

 For views, we can use view.Created or view.LastModified to get the respective dates



 Thanks in advance

–Lakshmi

Subject: Created/LastModified Date of Desgin elements like Form, Agent,…

Each design element within a Lotus Notes database can be retrieved as a NotesDocument.

Dim ses as new NotesSession

Dim db as NotesDatabase

Dim view as NotesView

Dim form as NotesForm

Dim doc_view as NotesDocument

Dim doc_form as NotesDocument

set db = ses.currentDatabase

set view = db.getView(“your view name”)

set doc_view = db.getDocumentbyUNID (view.universalID)

'last modified property is on doc_view now.

set form = db.getForm(“your form name”)

set doc_form = db.getDocumentbyUNID (form.universalID)

'last modified property is on doc_form now.

Subject: RE: Created/LastModified Date of Desgin elements like Form, Agent,…

Hi Jean,

Thanks for the response. In case of view, we can use the property UniversalID means view.UniversalID but in case of form we cannot use form.UniversalID. This property won't support for form, agents .....

Please suggest how to proceed

–Lakshmi