lotus - Error - cannot encrypt notesdocument when instantiated by notesuidocument -


i error "cannot encrypt notesdocument when instantiated notesuidocument" @ line cjdoc.encrypt. can tell me how fix/why happening.

dim currdb notesdatabase set currdb=session.currentdatabase  set cjdoc = currdb.getdocumentbyunid(trim(source.document.cj_unid(0)))     if not cjdoc nothing       dim parleyrtitem notesrichtextitem       set parleyrtitem = new notesrichtextitem(cjdoc,cj_parley_link)       call parleyrtitem.appenddoclink(parleydoc,"credit jacket parley")        cjdoc.parleyunid = source.document.parleyunid        'cjdoc.parleycreation = "parley document created " & cstr(today) & " : "        cjdoc.parleycreation = "parley document created " & cstr(today) & " "        cjdoc.encrypt       call cjdoc.save(true,true)  end if  

the error suggests cannot encrypt while uidocument open.

dit try closing uidocument before encrypting?


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -