I need to insert data into a database from a Java document

Tags:
Database
Java
Lotus Domino
I'm making a Java that allows me to extract and enter data into a database using the Domino libraries notes.jar. Deputy of the code for now you can extract the data but I can not insert:
package conexionlotus;

import java.util.Vector;
import lotus.domino.*;

public class ConexionLotus {

public void NotesMain() {
try {
Session session = NotesFactory.createSession("***.***.*.***:*****", "*******", "*********");//Datos del servidor
DbDirectory dir = session.getDbDirectory(null);
Database db = dir.openDatabase("PruebaJa.nsf"); //Ruta de la base de datos
View view = db.getView("viewPrueba1"); //Consulta vista
Document doc = view.getFirstDocument(); //Consulta documento por llave
System.out.println(doc.getItemValue("Nombres"));

Form f = db.getForm("formPrueba1");
} catch (Exception e) {
e.printStackTrace();
}
}

}
//-----------------------------------------------------------------------------------// package conexionlotus; /** * * @author DeskDes02 */ public class Iniciar { /** * @param args the command line arguments */ public static void main(String[] args) { ConexionLotus con = new ConexionLotus(); con.NotesMain(); } }


Software/Hardware used:
Java, Domino
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Shoot yourself

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: