RunbaseReport subclass 2 but different question

It comes with “Default” button. I know there’s a function to hide it but is there one that gets invoked when it’s clicked? I have a range of dates that i would like to reset to some predifined values when the default button is clicked but i have no clue how to capture the click event. I assume this is the place where i would want to reset those values? Thanks for any help you can offer.

Hi, The Default function is usually used to reset the query ranges to their default values, but can be extended to overwrite any other dialog field. It calls the initQuery() method. You can place there the initialization you need to make, like this: public Query initQuery() { Query query; ; query = super(); if (dialogFromDate) {dialogFromDate.value(02\01\2005);} if (dialogToDate) {dialogToDate.value(31\12\2005);} return query; } Ciprian

and answering the first question - the reset() method is called when you press this button. The stack of it is like this: callerRunbase.reset(); callerRunbase.unpack(c); callerRunbase.initParmDefault(); callerRunbase.putToDialog(); callerRunbase.dialogReInit(); callerRunbase.dialogUpdate(dialog);