QUESTION POSED ON: 11 March 2005
I'm a Java developer. I tried to insert a calendar/reminder object using a Java client and the Domino Java API.
This is my code:
...
doc = db.createDocument();
doc.appendItemValue
("Form","Appointment");
doc.appendItemValue
("AppointmentType","4") ;
doc.appendItemValue
("Principal",remoteuser) ;
doc.appendItemValue
("Chair",remoteuser) ;
doc.appendItemValue
("From",this.remoteuser) ;
doc.appendItemValue
("Subject","java client reminder") ;
doc.appendItemValue
("Location","paris") ;
doc.appendItemValue
("Body","body body") ;
Session stmp = db.getParent();
DateTime currTime =
stmp.createDateTime(Utility.getNow());
currTime.setNow();
currTime.adjustHour(1, true);
doc.appendItemValue
("CalendarDateTime",currTime) ;
doc.appendItemValue
("StartDate",currTime) ;
doc.appendItemValue
("StartTime",currTime) ;
doc.appendItemValue
("StartDateTime",currTime) ;
currTime.adjustHour(1, true);
doc.appendItemValue
("$NoPurge",currTime) ;
doc.appendItemValue
("LocalTimeZone","Z=-1$DO=1$DL=3 -1
1 10 -1 1$ZN=Western/Central Europe") ;
doc.appendItemValue
("StartTimeZone","Z=-1$DO=1$DL=3 -1
1 10 -1 1$ZN=Western/Central Europe") ;
doc.appendItemValue
("EndTimeZone","Z=-1$DO=1$DL=3 -1
1 10 -1 1$ZN=Western/Central Europe") ;
doc.appendItemValue
("_ViewIcon",new Integer(10)) ;
doc.appendItemValue
("SequenceNum",new Integer(1)) ;
doc.appendItemValue
("ExcludeFromView","D") ;
doc.appendItemValue
("OrgTable","C0") ;
doc.appendItemValue
("OrgConfidential","0") ;
doc.computeWithForm(true, true);
doc.save(true, true, true);
....
-------------
I have the following error:
The validation fails (computeWithForm throws an error).
If I save the document without validation, I can see it using the "Domino Web access console" but I can't modify or delete it from calendar view. The only way to delete the document is in "All Document" view. Can you help me?
|