This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Joseph Brenitexjip 30.Sep.03 09: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)