There are two approaches to customizing autosearch when using the ClientReport component.
a. Customize the built-in autosearch dialog in the same manner as applies to a standard TppReport (see RBuilder\Demos\AutoSearch\Custom AutoSearch Dialog).
b. Use the ClientReport.OnReceiveAutoSearchFieldsEvent. This event fires when the client report receives autosearch fields from the server. In the event-handler, you can programmatically set the search values. You can optionally set ShowAutoSearchDialog to False to suppress the autosearch dialog and then call PrintToDevices to send the autosearch values to the server.
Comments
1. If you are using the ClientReport, see the article below.
2. If you are using the WebTier, this will be supported in the next release.
-------------------------------------------
ClentReport: Custom AutoSearch
-------------------------------------------
There are two approaches to customizing autosearch when using the
ClientReport component.
a. Customize the built-in autosearch dialog in the same manner as applies to
a standard TppReport (see RBuilder\Demos\AutoSearch\Custom AutoSearch
Dialog).
b. Use the ClientReport.OnReceiveAutoSearchFieldsEvent. This event fires
when the client report receives autosearch fields from the server. In the
event-handler, you can programmatically set the search values. You can
optionally set ShowAutoSearchDialog to False to suppress the autosearch
dialog and then call PrintToDevices to send the autosearch values to the
server.
example:
ClientReport1.AutoSearchFields[0].ShowAllValues := False;
ClientReport1.AutoSearchFields[0].SearchExpression := 'A';
{optional code to suppress the autosearch dialog and generate the report}
ClientReport1.ShowAutoSearchDialog := False;
ClientReport1.PrintToDevices;
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Julio B.