Report and find data
Hi,
I created a query with a search criteria and build my report with this
query.
When I clic on the magnifying glass, I have a new window with the text :
"show all data where the is equal to" (with =
the name of the field). How can I replace by a better text
?
Thank you
--
Arnaud
I created a query with a search criteria and build my report with this
query.
When I clic on the magnifying glass, I have a new window with the text :
"show all data where the is equal to" (with =
the name of the field). How can I replace by a better text
?
Thank you
--
Arnaud
This discussion has been closed.
Comments
It is possible to customize the Autosearch dialog to show anything you need.
For an example of creating a custom AutoSearch dialog, see the example
located in the \RBuilder\Demos\5. AutoSearch\4. Custom AutoSearch Dialog\...
directory.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Ok.
But now if I want to do the same think in the EndUser module, how can I
do that ?
--
Arnaud
If you register a custom AutoSearch dialog as you do in the example, your
enduser solution will use this dialog as well when you run it.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I don't know if I explain my problem correctly :-(
I want to make a program like \RBuilder\Demos\3. EndUser\1. Report
Explorer. When the end user want to do a report with a search query,
the field name in the AutoSearchDialog is the same like the table name.
How can he replace this name by an other ? (he don't want to see "show
all data where is equal to", but "Show all data where
is equal to").
Thank you (and sorry for my english :-(
--
Arnaud
The only way to change what the AutoSearch dialog displays is to create a
custom AutoSearch Dialog. You will need to start by creating a descendant
to the TppAutoSearchDialog being sure to implement all the necessary
methods. Then using this descendent, you will need to redesign your own
panel to place on top of the dialog, much like the AutoSearch Panels already
created in the ppASCtrl.pas file. This way you can show any text you want
on the AutoSearch dialog. Check out the TppSimpleSearchPanel class for an
example of what you need to create. An exact example of what I just
explained is available in the \RBuilder\Demos\5. AutoSearch\4. Custom
AutoSearch Dialog\... directory. (See the MyAsDlg.pas for an example of the
descendant you will need to create and register at the bottom). Once you
get this created, simply include this file in your project and the dialog
will appear when you try to use the AutoSearch feature.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Ok, thank you. I had not understood that one could redefine just
certain part of the AutoSearch window.
--
Arnaud