Pawel Cudek 30.Sep.03 05:16 AM a Web browser GeneralAll ReleasesWindows 2000
Hello!
Sorry for my English :-)
I am beginer and I don't know how to get access to local database.
I wrote two classes:
1. JavaAgent extend AgentBase with NotesMain function. From this level I have acces to my database, except this I can't read all records from my ViewEntryCollection vec = view.getAllEntries(); (only 9000 - my database have 13000).
2. MyWindow which is interface to my Agent.
From this level I have't acces to database - please help!!!!!!!!!!
//here I will send a message, but I have't access to database and field e_mail
//please Help ;)
} catch(Exception en) {}
}
}
catch(Exception e) {e.printStackTrace();}
}
public void actionPerformed(ActionEvent e)
{
if (e.getSource() instanceof Button)
{
if (e.getSource() == sendToPerson)
{
SendtoPerson();
}
if (e.getSource() == sendToAll)
{
SendToAll();
}
}
}
public void windowActivated(WindowEvent e){}
public void windowClosed(WindowEvent e){}
public void windowClosing(WindowEvent e) {
setVisible(false);
dispose();
}
public void windowDeactivated(WindowEvent e){}
public void windowDeiconified(WindowEvent e){}
public void windowIconified(WindowEvent e){}
public void windowOpened(WindowEvent e){}
}
I have this error:
lotus.domino.NotesException
at lotus.domino.local.NotesBase.CheckObject(NotesBase.java:979)
at lotus.domino.local.Session.getAgentContext(Session.java:1221)
at MyWindow.SendToAll(JavaAgent.java:72)
at MyWindow.actionPerformed(JavaAgent.java:108)
at java.awt.Button.processActionEvent(Button.java:256)
at java.awt.Button.processEvent(Button.java:229)
at java.awt.Component.dispatchEventImpl(Component.java:1812)
at java.awt.Component.dispatchEvent(Component.java:1744)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:79)