lotusscript - No "Script Area" in Lotus Notes Agent editor -
lotusscript - No "Script Area" in Lotus Notes Agent editor -
i need functionality described here: determining folder contains document in lotus notes without using lotusscript folderreferences property
it says: "and next code in script area". there's no script area. there's tree containing "document selection", "(options)", "declarations", "initialize", , , "terminate".
you can come in code body of initialize method. create sure maintain code automatically appears when select initialize , come in code in middle
sub initialize dim session new notessession dim db notesdatabase dim doc notesdocument dim doc2 notesdocument dim view notesview dim noteid1 string dim noteid2 string dim item notesitem dim collection notesdocumentcollection set db=session.currentdatabase set collection=db.unprocesseddocuments set doc=collection.getfirstdocument noteid1=doc.noteid forall v in db.views if v.isfolder set doc2=v.getfirstdocument while not doc2 nil noteid2=doc2.noteid if noteid1=noteid2 messagebox v.name end if set doc2=v.getnextdocument(doc2) wend end if end forall end sub
lotus-notes lotusscript
Comments
Post a Comment