Setting query wizard description programatically
I have an application that calls the Query Wizard programatically by
faking a click to the relevant menu item in the OnShow event of the
Designer component.
One thing I cannot find a way to do however is to set the description that
the user must enter on the final page of the wizard programatically to
save the end user from having to enter it.
We are using RB 11.02 and Delphi 7 if that makes any difference.
Thanks
Paul
--- posted by geoForum on http://delphi.newswhat.com
faking a click to the relevant menu item in the OnShow event of the
Designer component.
One thing I cannot find a way to do however is to set the description that
the user must enter on the final page of the wizard programatically to
save the end user from having to enter it.
We are using RB 11.02 and Delphi 7 if that makes any difference.
Thanks
Paul
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
By default the description on the final page of the Query Wizard is the name
of the DataPipeline created. You would need to create a custom wizard in
order to manually alter this at runtime.
Take a look at the daQueryWizard.pas file for a starting point. You would
need to replace and register a class similar to the TdaQueryWizard using the
daRegisterWizard() routine. Inside the Execute routine of that class, you
can see where the QueryWizardDialog is created. Use this routine in your
own wizard to create a custom Wizard dialog with a custom dataset name.
See the TdaWizardFinishPage.SQLToControls; routine for where the EditBox in
the final page of the wizard is actually set.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Paul
--- posted by geoForum on http://delphi.newswhat.com