I have a simple form that displays customer transactions (charges and credits). There is a client textbox, a customer textbox, and a displaytype dropdown box. In addition, there is a [Process] button. On other forms there is a link to this form. When that link is clicked the variable PROCESS.STACK is set to "MYFILE_MYFORM~L".
What happens in this particular form is unusual. From the calling form the following variables are set:
DBPASS.DBVALUE = "Client# ] Cust# ] DisplayType"
DBPASS.DBVALUE.TO = "ClientNo.Wk ] CustNo.Wk ] DispType.Wk"
The form "MYFILE_MYFORM" is called in a layered status and the events that occur are:
BEFORE.SCREEN (the new form)
AFTER.DISPLAY (the new form)
AFTER.READ (the client)
AFTER.READ (the customer)
VALIDATE (the display type)
BUTTON (the process button)
At this point a report should display. It does not for this particular form. When I review the events two additional AFTER.READ events occur (after the last BUTTON event caused by the DBBUTTONCLICK variable); for the client, with a value of the Client#, and for the customer, with a value of the Client# (that's right). Of course, nothing is in the DBPASS.DBVALUE... variables during these events. I have a couple of other forms that are very similar and they don't have this problem (the non-display of the form and the extra events). What is interesting is after the BUTTON event (to process the report) the OUTPUT variables are all properly populated and the PROCESS.TYPE is set to "R" along with the PROCESS.REFRESH being set to the on-form report variable "R.REPORT".
If I just click on the [Process] button the report displays but I'd like the report to display as the last thing done when the form is called, without user intervention. I've had this problem with a couple of reports in the past but can't seem to isolate the actual DB variable that calls the additional AFTER READ events. Does anyone know what DB variables override the expected behavior? Thanks,
Bill