vba - VB Script code to read column value from lotus notes database -



vba - VB Script code to read column value from lotus notes database -

set domsession = createobject("notes.notessession") dim domdatabase set domdatabase = domsession.getdatabase("server name", "xyz.nsf") set domview = domdatabase.getview("all projects")

up here it's ok. seek lot unable read document values.

i looking vbscript code read document data.

add this:

dim i% dim s$ dim doc object i% = 1 domview.entrycount set doc = domview.getnthdocument(i%) s$ = doc.getitemvalue("itemname")(0) ' whatever want string value stored in s$ next

this code assumes items text type. utilize dim s item type (number, date).

to column values view can utilize doc.columnvalues(2). returns value of 3rd column (0 first).

vba lotus-notes lotus names

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -