Package lotus.domino

Examples of lotus.domino.Document.replaceItemValue()


      Document contact = currDb.createDocument();
      contact.replaceItemValue("Form", "Contact");
      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("Form", "Contact");
      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

  public void createPaul() {
    try {
      Database currDb = ExtLibUtil.getCurrentDatabase();
      Document contact = currDb.createDocument();
      contact.replaceItemValue("Form", "Contact");
      contact.replaceItemValue("FirstName", "Paul");
      contact.replaceItemValue("LastName", "Withers");
      contact.replaceItemValue("Email", "lordOfPrettyGood@worldOfAweso.me");
      contact.replaceItemValue("City", "Washington");
      contact.replaceItemValue("State", "WA");
View Full Code Here

  public void createPaul() {
    try {
      Database currDb = ExtLibUtil.getCurrentDatabase();
      Document contact = currDb.createDocument();
      contact.replaceItemValue("Form", "Contact");
      contact.replaceItemValue("FirstName", "Paul");
      contact.replaceItemValue("LastName", "Withers");
      contact.replaceItemValue("Email", "lordOfPrettyGood@worldOfAweso.me");
      contact.replaceItemValue("City", "Washington");
      contact.replaceItemValue("State", "WA");
      contact.save();
View Full Code Here

    try {
      Database currDb = ExtLibUtil.getCurrentDatabase();
      Document contact = currDb.createDocument();
      contact.replaceItemValue("Form", "Contact");
      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());
View Full Code Here

      Database currDb = ExtLibUtil.getCurrentDatabase();
      Document contact = currDb.createDocument();
      contact.replaceItemValue("Form", "Contact");
      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) {
View Full Code Here

      Document contact = currDb.createDocument();
      contact.replaceItemValue("Form", "Contact");
      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

      contact.replaceItemValue("Form", "Contact");
      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

  public void breakNames() {
    Database currDb = ExtLibUtil.getCurrentDatabase();
    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

      Session s = ExtLibUtil.getCurrentSession();
      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);
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.