Change autosearchfield caption
Hi,
The text used in the autosearchdialog is created dynamically. Part of it is
the field alias.
When the autosearchfield is some kind of an expression e.g. extract(month
from somedate), the generated caption is sometimes getting misleading. Is it
possible to customize the text from RAP in these cases?
If not could it be considered so we can set the captions from
OnInitializeParameters() or some other (new) event?
Using RB11.03 / D7
Regards,
Jeroen.
The text used in the autosearchdialog is created dynamically. Part of it is
the field alias.
When the autosearchfield is some kind of an expression e.g. extract(month
from somedate), the generated caption is sometimes getting misleading. Is it
possible to customize the text from RAP in these cases?
If not could it be considered so we can set the captions from
OnInitializeParameters() or some other (new) event?
Using RB11.03 / D7
Regards,
Jeroen.
This discussion has been closed.
Comments
The current best way to do this would be to create a custom autosearch
dialog or manually change the field alias in DADE.
Thanks for the suggestion, we will consider adding the ability to change the
dialog caption for a later release.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
With RB 11.03 you can solve this without writing any code. The key is to use
Parameters - which allow a tremendous amount of control and flexibility over
autosearch behavior by setting properties.
Use the Design workspace to create and configure Parameters. Parameters have
a DataType, Name, as well as LookupSettings and AutoSearchSettings. The
AutoSearchSettings properties can be used to specify the FieldAlias and
SearchOperator.
Once you have defined the parameters, then from the Data workspace you can
bind the query search conditions to the parameters.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com