To update the field through agent which is called from “form” — agent.RunOnServer … basically wants to know if all the transaction in backend database has been updated or not then only should send the mail, changed the status and close the document. Just after the agent.RunOnServer is executed the mail sending procedure is called…
Currently i can’t figure out that the agent has ran successfully or not… if any error is reported in the agent.
i’ll appreciate if someone could help me in this regard.
There is a button on the document named “Process” When i click on that button an agent.RunOnServer(currentdoc.NoteID) is called. Immediately after agent is called mail sending procedure is executed.
Agent:
Update the records from the current document in Oracle as well in notes.
Wants to know that agent has executed successfuly or not(No error reported) means the whole process in agent has been completed. On the basis of successful execution of agent, mail is send to the user.
If I understood your request, then you can embedd the mail sending procedure in the agent. After the data update in Oracle. Or after checking the values in the backend DB.
It is possible … but i don’t want to close the document until and unless the process has executed successfuly, otherwise the document should remain open in the same state.
I hope u r getting my point… if not then plz let me know…