IModel.NotifyFieldChanged method
Namespace: NextDesign.Core
Description
Signals a change in the value of the specified field.
argument
Name | Type | Description |
---|---|---|
fieldName | string | Field Name |
Return value
- void
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null or an empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this model |
Annotations
This method can be used to notify Next Design's UI layer of changes in the fields in which callback functions are registered.
A field that gets a value calculated by a callback function cannot detect that the field value has been updated.
For example, if you define a field that retrieves the field value of a child element with a callback function, that field will not be able to recognize that the field value of the child element has changed.
This means that the UI layer will not automatically follow changes in the field values it is calculated from.
Therefore, we provide a means to issue update notifications to fields that have registered callback functions that are affected by changes in the field values they are computed from.
It is the extension's responsibility to issue update notifications to the fields to which the affected callback functions are registered when the value of the field they are computed from changes.