I am trying to access a document and extract a couple of field values using activex. I have the following code:
var Session ;
var DB ;
var doc2 ;
var cview ;
Session = new ActiveXObject(“Notes.NotesSession”);
Session.Initilize()
DB = Session.GetDatabase(“KCLISD03”, “mikesplay.nsf”);
cview = DB.getview(“Attachments”);
doc2 = cview.getdocumentbykey(“Centurion”);
if(doc2==null)
{alert(“Template document Not found, Contact ASPWeb Administration”); }
else
{ alert("Template document found, Name= " + "doc2 field value here" );
I retrieve the document but how can I access the fields and their values. I have search the web for hours looking for clues. I would be greatfull for any help.