Query Wizard - Dataview functions - Icon disabling
Hi,
While creating a new report, we may create a dataview as well (choosing Data
tab / File menu / New / Query Wizard and following the 7-step process to the
end).
The problem is that we need to prevent the users to gain access to some of
the functions presented by the dataview window. We are trying to do this by
disabling the respective icons. How can we do this? Could you please help
us?
Best regards,
P.S.:I've tried to debug daQueryWizard, but I've got lost...
We use Delphi 7 Professional, ReportBuilder 7.04 Professional.
While creating a new report, we may create a dataview as well (choosing Data
tab / File menu / New / Query Wizard and following the 7-step process to the
end).
The problem is that we need to prevent the users to gain access to some of
the functions presented by the dataview window. We are trying to do this by
disabling the respective icons. How can we do this? Could you please help
us?
Best regards,
P.S.:I've tried to debug daQueryWizard, but I've got lost...
We use Delphi 7 Professional, ReportBuilder 7.04 Professional.
This discussion has been closed.
Comments
It is possible to create a completely custom query wizard and register it
with DADE in ReportBuilder replacing the one included. I would start with
the existing daQueryWizard.pas code as you mentioned and begin to make small
changes in order to get the results you need. If you look at the file you
will see that it is divided into numerous Page classes. Each one of these
"pages" represent a page in the tab sheet of the dialog. Adding, removing,
or altering these classes will affect the wizard as a whole. See the
following example on creating your own custom query wizard.
Note: Once you create your new custom wizard, you will need to unregister
the old wizard and register your new one in the Initialization section of
your file. See the example for more detail.
daUnRegisterWizard(TdaQueryWizard);
daRegisterWizard(TmyQueryWizard);
http://www.digital-metaphors.com/tips/CustomQueryWizard.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com