Package lotus.domino

Examples of lotus.domino.Document.save()


      doc.replaceItemValue("FirstName", firstName);
      doc.replaceItemValue("LastName", lastName);
      doc.replaceItemValue("City", city);
      doc.replaceItemValue("State", state);
      doc.replaceItemValue("email", email);
      doc.save();
    } finally {
      doc.recycle();
    }
  }
View Full Code Here


    Document doc = db.createDocument();
    try {
      doc.replaceItemValue("Form", "State");
      doc.replaceItemValue("Key", key);
      doc.replaceItemValue("Name", name);
      doc.save();
    } finally {
      doc.recycle();
    }
  }
View Full Code Here

        doc.replaceItemValue("Date", date);
        if (parent != null) {
          doc.makeResponse(parent);
        }
        doc.computeWithForm(false, false);
        doc.save();

        if (pos.length < disc_maxDepth) {
          double r = Math.random();
          if (r <= (1.0 / pos.length)) {
            int[] newPos = new int[pos.length + 1];
View Full Code Here

      mdg.add("dlgx_" + sIndex + "_1");
      mdg.add("dlgx_" + sIndex + "_1");
      mdg.add("dlgx_" + sIndex + "_1");
      doc.replaceItemValue("fldDialogList2", mdg);

      doc.save();
    } finally {
      doc.recycle();
    }
  }
View Full Code Here

      contact.replaceItemValue("FirstName", "Nathan");
      contact.replaceItemValue("LastName", "Freeman");
      contact.replaceItemValue("Email", "godOfAwesome@worldOfAweso.me");
      contact.replaceItemValue("City", "Washington");
      contact.replaceItemValue("State", "WA");
      contact.save();
      ExtLibUtil.getViewScope().put("oldJavaTest", contact.getNoteID());
    } catch (NotesException e) {
      //handle Exception
    }
  }
View Full Code Here

      contact.replaceItemValue("FirstName", "Paul");
      contact.replaceItemValue("LastName", "Withers");
      contact.replaceItemValue("Email", "lordOfPrettyGood@worldOfAweso.me");
      contact.replaceItemValue("City", "Washington");
      contact.replaceItemValue("State", "WA");
      contact.save();
      ExtLibUtil.getViewScope().put("oldJavaTest", contact.getNoteID());
    } catch (NotesException e) {
      //handle Exception
    }
  }
View Full Code Here

    try {
      View contacts = currDb.getView("AllContacts");
      Document doc = contacts.getFirstDocument();
      Item testItem = doc.replaceItemValue("oldMuppetField", 1);
      testItem.setNames(true);
      doc.save(true, false);
      ExtLibUtil.getViewScope().put("javaTest", testItem.getType());
    } catch (Throwable t) {
      //
    }
  }
View Full Code Here

      Database currDb = s.getCurrentDatabase();
      threads = currDb.getView("AllContacts");
      Document doc = threads.getFirstDocument();
      DateTime dt = s.createDateTime(new Date());
      doc.replaceItemValue("testDate", dt);
      doc.save(true, false);
      if (doc.hasItem("testDate")) {
        java.util.Vector<?> vector = doc.getItemValue("testDate");
        if (vector != null && !vector.isEmpty()) {
          Object o = vector.get(0);
          if (o != null) {
View Full Code Here

    Database db = session.getDatabase("", "log.nsf");
    Document doc = db.createDocument();
    Item names = doc.replaceItemValue("Names", "CN=Nathan T Freeman/O=REDPILL");
    names.setAuthors(true);
    doc.replaceItemValue("form", "test");
    doc.save(true);
    String nid = doc.getNoteID();
    doc.recycle();
    doc = db.getDocumentByID(nid);
    Vector<Double> numbers = new Vector<Double>();
    numbers.add(new Double(1));
View Full Code Here

    Vector<Double> numbers = new Vector<Double>();
    numbers.add(new Double(1));
    numbers.add(new Double(2));

    doc.replaceItemValue("Names", numbers);
    doc.save(true);
    doc.recycle();
    doc = db.getDocumentByID(nid);
    names = doc.getFirstItem("Names");
    System.out.println("Names is " + names.getType() + " with " + names.isNames() + " and " + names.isAuthors() + " and value "
        + names.getText());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.