The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by dmgibbs]

Folks:

I'm trying to write a stand alone java program that manipulates the documents
in a notes database.

Basicly, I get a database and iterate through the documents in the database,
executing the doc.sign() and doc.save() methods against each one.

The problem is: doc.save() returns false each time ... and I can't figure out
why it is doing that. Is there any way to determine WHY doc.save() fails? I
kind of expected it to throw an exception of it cannot do the save.

Thanks!

david
import-bot (20211) [Avatar] Offline
#2
Re: doc.save() returns false???
[Originally posted by aspatton]

Have you tried using the save method with the force parameter?

doc.save(true);

Do you have access to the documents; are there any reader/author fields to
prohibit you from making changes?

Tony.