This project is read-only.

Restoring data values

When using a Dynamic Form, once the form is closed by the user (actually it's only hidden at first - see the code in the DF_ResultButton.Click() event), you can still revert their changes to the data in object properties, alias fields, and variables, back to their original values, if needed. You might want to do this, for instance, in case it failed some kind of validation test or something.


You must make this method call before you Release the form.

How it works

Initially, when the Render() method is called, each controlsource name and initial value is stored in an array property named aBackup on the RenderEngine. These original values can later be restored to their controlsource by calling the RestoreData() method. This allows you to clear out any changes the user made to the data.

Last edited Apr 17, 2013 at 9:32 PM by mattslay, version 6


No comments yet.