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

Subreport Autosearch

edited August 2008 in RAP
I'm using report.AutoSearchDescription on a standard rsClient report to
print the criteria selected in a memo field - works great.

I created a report with 3 subreports (section type) that have autosearch
criteria. How do I get at each SUBREPORT.AutoSearchDescription?

The main report.AutoSearchDescritption contains the values of all three
combined.


Thanks.

RB 10.08 Server

Comments

  • edited August 2008
    Subreports do not have their own AutoSearch or DADE TdaDataModule. If you
    load an .rtm into a subreport, then the DADE dataviews get merged into the
    main report's TdaDataModule.

    TppReport
    DataModule.DataViews[ ]

    One option would be to iterate over the Report.AutoSearchFields[ ] and
    access each individual AutoSearchField.Description property. That is
    basically what TppReport.AutoSearchDescription returns - is a concatenation
    of the individual autosearch field descriptions.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2008
    AutoSearchField.Description doesn't appear to be implemented.

    Any other way to get at the AutoSearchDescription ?



    Doesn't compile in RAP
    var

    MyDescription:String;
    lAutoSearchField : TppAutoSearchField;

    begin
    lAutoSearchField := Report.AutoSearchFieldByName('MY_FIELD');
    MyDescription := lAutoSearchField.Description; *****




  • edited August 2008

    Try implementing a solution using Delphi code and then write a pass-through
    function that you can call from RAP.


    --------------------------------------------------
    Article: Extending RAP
    ---------------------------------------------------

    There are two very simple and powerful techniques to extend the capabilities
    of RAP infinitely. These are summarized below and covered in more detail in
    the RAP.hlp online help. Demos and tutorials are installed to
    RBuilder\Demos\RAP. The tutorial text is located in RAP.hlp.


    1. RAP Pass-Through Functions

    These are functions that appear in the Language tab of RAP's Code Toolbox.
    These functions are written in Delphi and can be called from RAP. RAP's
    pass-through function architecture enable's developers to add new built-in
    functions to RAP's code toolbox.

    2. Extend RAP's RTTI

    RAP's Run-time Type information defines what classes and properties can be
    accessed via RAP. By default the published properties of any class that is
    registered with Delphi's RegisterClass procedure is recognized by RAP. In
    addition many of the public properties and methods of ReportBuilder classes
    are exposed.







    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.