Home RAP

Autosearch criteria and variables

edited July 2009 in RAP
I hope somebody can give us some advice on how best to achieve this using
RAP please. We are trying to create a report that displays data for a
particular week and the week needs to be selected by the user using
Autosearch criteria. What we have tried to do but failed is to create a
variable on the report and set that to the value entered in the AutoSearch
dialog box but with no luck.

Has anyone implemented something like this, and if so how? We are using RB
11.04 Enterprise edition.




  • edited July 2009
    Hi Paul,

    One option is to use the System Variable component and set it to show the
    SearchDesc. This will give a description of the autosearch value entered by
    the user. If you just would like to show the value entered, you can access
    the autosearch fields using the Report.AutoSearchFields property and assign
    the value of a text component to the value of the field.

    Variables are typically used for calculations that need to be set in the
    OnCalc event. If you are having trouble displaying something with a
    variable, try using a Label and the OnGetText event as an alternative.


    Nico Cizik
    Digital Metaphors

    Best Regards,

    Nico Cizik
    Digital Metaphors
This discussion has been closed.