i created a new document (form), and in this document, i have a button.
The button calls an agent (retrieve records). how do i pass the values from the records retrieved by the agent into my current document (new document).
i created a new document (form), and in this document, i have a button.
The button calls an agent (retrieve records). how do i pass the values from the records retrieved by the agent into my current document (new document).
Subject: Agent and Notesuidocument
There is not nearly enough information here even to begin to contemplate planning to give an answer. What, for instance, were you hoping to have happen?
Subject: RE: Agent and Notesuidocument
i have a notesuidocument that contains a button and clientcode field. If i click on the button, it will run an agent the will search for the full name in a SQL server based from the encoded data in the clientcode field. since its a notesuidocument, how can i pass the clientcode field to the agent and get the result(full name) from the agent.
thanks stan.
Subject: RE: Agent and Notesuidocument
Instantiate the corresponding NotesDocument object and write the values to it.
To get the value to pass to the agent, you can use the FieldGetText method of NotesUIDocument, or if you have instantiated the NotesDocument, use the normal method you would to get the content of that item.