Skip to main content

IModel.NotifyFieldChanged Method

Namespace: NextDesign.Core

Description

Notifies you of a change in the value of the specified field.

Arguments

NameTypeDescription
fieldNamestringField Name

Return Value

  • void

Exceptions

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen null or an empty string is specified for fieldName
Field Not FoundExtensionFieldNotFoundExceptionWhen the specified field is not found in this model

Annotation

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

Fields that obtain values calculated by a callback function cannot detect that the field value has been updated.

For example, if a field is defined that obtains the field value of a child element by a callback function, the field cannot recognize that the field value of the child element has been changed.
This means that the UI layer does not automatically follow changes to the source field value.
For this reason, we provide a means to issue update notifications to fields that have registered callback functions that are affected by changes to the source field value.

When the source field value is changed, it is the extension's responsibility to issue update notifications to fields that have registered callback functions that are affected by the change.