In CSI, there is a checkbox in General Parameters which if ticked causes defaults the Start value on a Report Form filter into the End value. So on, say, the Consolidated Invoicing form, if I enter an Invoice Number into the Starting Invoice Number box when I tab out that number is copied to the Ending Invoice Number box. The idea being to try to avoid open queries which cause thousands of documents to be printed.
Does anyone know the mechanism by which this happens?
I've known about the behaviour for a long time, but my reason for asking is some development work I was doing yesterday. The behaviour is useful but not a complete safeguard. Many forms still allow you to submit a print request with all the boxes empty which then causes the system to print everything. An attempt had been made to guard against this by defaulting ZZZ into the Starting Invoice Number box but had been done in a way which disabled the copying. I was asked if I could restore the copy feature and add some validation to guard against typos and blanks.
I had expected that the copy feature would be implemented via an Event Handler which checked the parameter setting and copied or not accordingly. To my surprise, after I cleared the default setting on the variable behind the Starting Invoice number box, the copy feature kicked in even though there were no Event Handlers tied to the Edit box (nor anything obvious in the Formscript).
It struck me that while clients often like the idea of consistent GUI behaviour, they usually go off the idea once they realise the effort involved in modifying most of the form set. So an understanding of the mechanism might allow a more lightweight method of changing the behaviour of multiple forms.