Skip to main content

IModel.NotifyFieldChanged method

Namespace: NextDesign.Core

Description

Notifies the value change of the specified field.

argument

NameTypeDescription
fieldNamestringField Name

Return value

  • void

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the field specified in this model cannot be found

Annotation

This method can be used to notify the UI layer of Next Design of changes in the field in which the callback function is registered.

A field that gets the value calculated by the callback function cannot detect that the field value has been updated. For example, if the callback function defines a field that gets the field value of a child element, that field will not be aware that the field value of the child element has changed. This means that the UI layer does not automatically follow changes in the source field values. Therefore, when the field value of the calculation source is changed, the affected callback function provides a means to issue an update notification to the registered field.

If the value of the calculated field changes, it is the extension's responsibility to issue an update notification to the field in which the affected callback function is registered.