Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Setting query wizard description programatically

edited January 2009 in End User
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

Comments

  • edited January 2009
    Hi Paul,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2009
    Thanks for that Nico, I will investiagte implementing it in that way.

    Paul




    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.