I have several reports set up in a form using
var rpt = new Report()
...[stuff in between]
var doc = rpt.open("Document")
I generate the reports with a mouse up action attached to a button.
I have found that after I generate a report with one set of data, then reset my form, import another fdf file and generate a report with the second data set, the report still contains data from the first fdf file. I am certain the fields containing that data are among those designated to be reset, however, the data is not immediately purged by the resetForm() action, even though that data is replaced in the form with data from the imported second fdf file.
This occurs even if I save the form after importing the second data set. If I wait a few minutes, eventually - within a short time - the first data set IS replaced ('behind the scenes') by the second data set and the generated report is then accurate. I am concerned with this because it could easily result in inaccurate reports which, if not noticed, could cause unhappy report recipients.
Is there some measure I can take to defeat this anomaly?