5.6.4 Respond2 Method

Respond2 Method extends the respond method by adding a comment field. For other functionality see the Respond Method definition.

Signature

	Respond2(
		[in] Int32			SelectedResponse
		[in] LocalizedText	Comment
		);

The parameters are defined in Table 29

Table 29 – Respond2 parameters
Argument Description
SelectedResponseSelected index of the ResponseOptionSet array.
CommentA localized text that shall be applied to the Dialog.

If the Comment argument is NULL (both locale and text are empty) it shall be ignored and any existing comments will remain unchanged. To reset the comment, an empty text with a locale shall be provided.

Method result codes in Table 30 (defined in Call Service)

Table 30 – Respond2 Result Codes
Result Code Description
Bad_DialogNotActiveSee Table 137 for the description of this result code.
Bad_DialogResponseInvalidSee Table 137 for the description of this result code.
Bad_InvalidArgumentThe Comment string provided exceeds the allowed length for the comment or is invalid in some other manner.

Table 31 specifies the AddressSpace representation for the Respond2 Method.

Table 31 – Respond2 Method AddressSpace definition
Attribute Value
BrowseNameRespond2
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasProperty Variable InputArgumentsArgument[] PropertyTypeMandatory
AlwaysGeneratesEventObjectTypeAuditConditionRespondEventType

Defined in 5.10.5

ConformanceUnits
A & C Dialog2

If Auditing is supported, this Method shall generate an Event of AuditConditionRespondEventType for all invocations of the Method.