Assembly.OnNeedAnswerEvent Event

This event is fired when an answer value is needed by the assembly, but not found in the AnswerCollection answer set. It allows the integration to provide answers as they are needed, rather than trying to provide all the answers before the assembly starts.

This event fires once for each answer, not for each value in an answer. This means that all the values for repeated answers must be set during the first firing of this event for each answer.

Because of the complexity of answer repeat indexing, you should avoid using this event when working with nested repeats.

Syntax

void OnNeedAnswerEvent ( int AssemblyHandle, HotDocs.Answer pAnswer )

Parameters Description
assemblyHandle The assemblyhandle returned when the Assembly object was added to the queue.
pAnswer The Answer object that represents the answer that needs a value. If the integration wants to provide a value for this answer, the regular Answer object methods are used to set the value. It can be queried to determine which answer is needed.