Hi all.
I need write an agent in JAVA because i use a class with JDBC and i can’t use LOTUS SCRIPT.
I create an agent and call it from WEBQUERYSAVE and from QUERYSAVE because it must run on both client.
This is part of the agent:
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
PrintWriter pw = null;
boolean novodoc = true;
Database db = agentContext.getCurrentDatabase();
Document doc =agentContext.getDocumentContext();
dAtribuicao = doc.getItemValueString(“cpAltDescAtribuicao”);
if (dAtribuicao.equals(“”)){
msguser =“”;
pw.println(msguser);
}
else
{…
The PRINTWRITER didn’t work on client and on web!!!
What i need use to validate field and/or show error message to user on java agent???
Any help is welcome!
Thanks and sorry for my english.
Daniela