Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

Updated Wiki: Restoring Data Values

$
0
0

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.

loForm.oRenderEngine.RestoreData()

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.


Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>