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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -