Configure a widget to perform a post-on-change
When the value of the widget changes, run a Gosu expression, and then redraw the screen.
Procedure
- In Guidewire Studio, in the PCF editor, edit the widget that you want to perform a post-on-change.
-
In the Properties tool window, click the
PostOnChange tab.
If there is no
PostOnChangetab, then the widget cannot perform a post-on-change. -
Ensure that the Enable Post On
Change check box is set.Note: If you clear the Enable Post On Change check box, then post-on-change is disabled for the widget, and the post-on-change properties for the widget are permanently deleted. If you set the check box again, post-on-change for the widget is enabled with empty properties.
-
Set the
onChangeproperty to the Gosu expression to execute when the widget value changesNote: ThedeferUpdateproperty preserves certain legacy behavior that may be desired after an application upgrade. Do not set this property for new usages of post-on-change. -
Set the
deferUpdateproperty to control when the widget is updated.
What to do next
See also
