Reconfiguring Standard Widgets

Cúram provides a comprehensive set of widgets that are configured against the application's domain definitions by default. The application developer has the option to change (override) this configuration to meet the presentation requirements. Such reconfiguration can change the standard widget used for a particular type of data to be a different standard widget. Where custom widgets have been added to the application already, these custom widgets are also candidates for reuse through reconfiguration.

For example, the date selector widget is used for fields in the SVR_DATE domain (and its descendant domains). If the requirement is to change the date selector to a simple text field, possibly formulated as, "Remove the pop-up calendar icon," then a new date selector that acts like a text field is not required. This requirement can be met simply by associating the same widget used for the SVR_STRING domain (and many numeric domains) with the SVR_DATE domain. This configuration change, made in a configuration file in the application component, will cause all SVR_DATE values on all pages to be presented for editing with a simple text field.

The elements of a widget that are configured in this way are explained in the next chapter and the configuration process is covered in detail in Configuring Renderers. Also described in that appendix are the names and locations of the configuration files, including the default configuration file that shows what is configured as standard in the CDEJ.

If a reconfiguration of the widgets by changing the domain associations, perhaps in combination with the creative use of UIM, cannot meet the presentation requirement, it may be necessary to develop a new custom widget and configure it for use.