Xpages: Java method using OpenNTF ODA not saving document -


i have adopted openntf oda java in xpages. great far, , think have touched surface.

i calling java method , want save document. method getting called, , not seeing errors, document never updated.

the document getting "saved" disappears views.

import lotus.domino.notesexception;  import org.openntf.domino.*; import org.openntf.domino.utils.factory; import org.openntf.domino.database; import org.openntf.domino.session; import java.io.serializable;  public class build implements serializable  {     private static final long serialversionuid = 1l;      public void process1(string docid) {          try {          system.out.println("got here.");         session session = factory.getsession();         database thisdb = session.getcurrentdatabase();         database pcdatadb = session.getdatabase(thisdb.getserver(), "scoapps\\pc\\pcdata.nsf", false);         document thisdoc = pcdatadb.getdocumentbyunid(docid);            item itm = thisdoc.replaceitemvalue("status",2, true);         thisdoc.save(true,false);         system.out.println("got here.");          } catch (exception e) {             e.printstacktrace();         }     } } 

i suspect document being saved, there value getting set on document means excluded view looking at.

you can create documents view. set formula select @all. add column form , 1 last edited date, set appropriate sort options , should able find doc , see why being excluded view.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -