in lotus notes project it's simple access current document automatically in queryopen method example, extracting notesuidocument, parameter.
sub queryopen(source notesuidocument, mode integer, isnewdoc variant, continue variant) //here document dim doc notesdocument set doc = source.document end sub
how can same, working on web, using javascript? not in queryopen method, of course.
if want access document fields, easy task do:
var doc = document.forms[0]; var yourfield = doc.yourfieldname; // take care: fieldname case sensitive // field- value; var thevalue = yourfield.value; // set field value yourfield.value = "anothervalue";
in xpages done different there have javascript classes similar / same methods / properties notesdocument- class mimic lotusscript behaviour
Comments
Post a Comment