Package lotus.domino

Examples of lotus.domino.Database.createDocument()


          if(db==null) {
            // Should use the log application
            throw new MimeEmailException("Unbale to find an NSF to send the email message");
          }
      lotus.domino.Session session = db.getParent();
      Document doc = db.createDocument();

      doc.appendItemValue("Form", "Memo"); //$NON-NLS-1$

      doc.appendItemValue("Subject", getSubject()); //$NON-NLS-1$
      doc.appendItemValue("SendTo", getCommaSeparatedTo()); //$NON-NLS-1$
View Full Code Here


      Database database = (Database) resolveVariable("database");
      Document settings = null;
      View settingsView = database.getView("applicationSettings");
      settings = settingsView.getFirstDocument();
      if (settings == null) {
        settings = database.createDocument();
        settings.replaceItemValue("form", "applicationSettings");
      }

      settings.replaceItemValue("saveMypicURLToNab", SaveUrlInNab);
      settings.replaceItemValue("enableProfiles", EnableProfiles);
View Full Code Here

        getLotusId(dt);
        DateTime end = session.createDateTime(new Date());
        getLotusId(end);
        DateRange dr = session.createDateRange(dt, end);
        getLotusId(dr);
        Document doc = db.createDocument();
        getLotusId(doc);
        Item i1 = doc.replaceItemValue("Foo", dr);
        getLotusId(i1);
        Item i2 = doc.replaceItemValue("Bar", dr.getText());
        getLotusId(i2);
View Full Code Here

    }
  }

  public void run2(final Session session) throws NotesException {
    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();
View Full Code Here

          getLotusId(dt);
          DateTime end = session.createDateTime(new Date());
          getLotusId(end);
          DateRange dr = session.createDateRange(dt, end);
          getLotusId(dr);
          Document doc = db.createDocument();
          getLotusId(doc);
          Item i1 = doc.replaceItemValue("Foo", dr);
          getLotusId(i1);
          Item i2 = doc.replaceItemValue("Bar", dr.getText());
          getLotusId(i2);
View Full Code Here

  }

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