Package lotus.domino

Examples of lotus.domino.Document.replaceItemValue()


    for (int j = 0; j < nDoc; j++) {
      pos[pos.length - 1] = j + 1;

      Document doc = db.createDocument();
      try {
        doc.replaceItemValue("Form", "Discussion");
        StringBuilder b = new StringBuilder();
        for (int i = 0; i < pos.length; i++) {
          if (i > 0) {
            b.append("/");
          }
View Full Code Here


        // Get a random author
        int x = Math.min((int) (Math.random() * (users.size())), users.size());
        String author = users.get(x);

        doc.replaceItemValue("Title", title);
        doc.replaceItemValue("Body", body);
        doc.replaceItemValue("Author", author);
        doc.replaceItemValue("Date", date);
        if (parent != null) {
          doc.makeResponse(parent);
View Full Code Here

        // Get a random author
        int x = Math.min((int) (Math.random() * (users.size())), users.size());
        String author = users.get(x);

        doc.replaceItemValue("Title", title);
        doc.replaceItemValue("Body", body);
        doc.replaceItemValue("Author", author);
        doc.replaceItemValue("Date", date);
        if (parent != null) {
          doc.makeResponse(parent);
        }
View Full Code Here

        int x = Math.min((int) (Math.random() * (users.size())), users.size());
        String author = users.get(x);

        doc.replaceItemValue("Title", title);
        doc.replaceItemValue("Body", body);
        doc.replaceItemValue("Author", author);
        doc.replaceItemValue("Date", date);
        if (parent != null) {
          doc.makeResponse(parent);
        }
        doc.computeWithForm(false, false);
View Full Code Here

        String author = users.get(x);

        doc.replaceItemValue("Title", title);
        doc.replaceItemValue("Body", body);
        doc.replaceItemValue("Author", author);
        doc.replaceItemValue("Date", date);
        if (parent != null) {
          doc.makeResponse(parent);
        }
        doc.computeWithForm(false, false);
        doc.save();
View Full Code Here

  void createAllType(Database db, int index) throws NotesException {
    Session session = db.getParent();
    String sIndex = Integer.toString(index);
    Document doc = db.createDocument();
    try {
      doc.replaceItemValue("Form", "AllTypes");

      doc.replaceItemValue("fldIcon", index);
      doc.replaceItemValue("fldText", "text_" + sIndex);
      doc.replaceItemValue("fldNumber", index * 100);
      doc.replaceItemValue("fldDate", createDate(session, 2010, 1, index));
View Full Code Here

    String sIndex = Integer.toString(index);
    Document doc = db.createDocument();
    try {
      doc.replaceItemValue("Form", "AllTypes");

      doc.replaceItemValue("fldIcon", index);
      doc.replaceItemValue("fldText", "text_" + sIndex);
      doc.replaceItemValue("fldNumber", index * 100);
      doc.replaceItemValue("fldDate", createDate(session, 2010, 1, index));
      doc.replaceItemValue("fldTime", createTime(session, 5, 1, index));
      doc.replaceItemValue("fldDateTime", createDateTime(session, 2011, 2, index, 8, 9, index));
View Full Code Here

    Document doc = db.createDocument();
    try {
      doc.replaceItemValue("Form", "AllTypes");

      doc.replaceItemValue("fldIcon", index);
      doc.replaceItemValue("fldText", "text_" + sIndex);
      doc.replaceItemValue("fldNumber", index * 100);
      doc.replaceItemValue("fldDate", createDate(session, 2010, 1, index));
      doc.replaceItemValue("fldTime", createTime(session, 5, 1, index));
      doc.replaceItemValue("fldDateTime", createDateTime(session, 2011, 2, index, 8, 9, index));
      doc.replaceItemValue("fldDateTimeRange", createDateTimeRange(session, 2012, 3, index, 8, 9, index));
View Full Code Here

    try {
      doc.replaceItemValue("Form", "AllTypes");

      doc.replaceItemValue("fldIcon", index);
      doc.replaceItemValue("fldText", "text_" + sIndex);
      doc.replaceItemValue("fldNumber", index * 100);
      doc.replaceItemValue("fldDate", createDate(session, 2010, 1, index));
      doc.replaceItemValue("fldTime", createTime(session, 5, 1, index));
      doc.replaceItemValue("fldDateTime", createDateTime(session, 2011, 2, index, 8, 9, index));
      doc.replaceItemValue("fldDateTimeRange", createDateTimeRange(session, 2012, 3, index, 8, 9, index));
      doc.replaceItemValue("fldDialogList", "dlg_" + sIndex);
View Full Code Here

      doc.replaceItemValue("Form", "AllTypes");

      doc.replaceItemValue("fldIcon", index);
      doc.replaceItemValue("fldText", "text_" + sIndex);
      doc.replaceItemValue("fldNumber", index * 100);
      doc.replaceItemValue("fldDate", createDate(session, 2010, 1, index));
      doc.replaceItemValue("fldTime", createTime(session, 5, 1, index));
      doc.replaceItemValue("fldDateTime", createDateTime(session, 2011, 2, index, 8, 9, index));
      doc.replaceItemValue("fldDateTimeRange", createDateTimeRange(session, 2012, 3, index, 8, 9, index));
      doc.replaceItemValue("fldDialogList", "dlg_" + sIndex);

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.