Home Subreports

ReportOnGetAutoSearchValues

edited January 2004 in Subreports
Hello

Wondering if you could help me please. I have a report which consists of 3
subreports which get data from 2 tables. The user should be able to select a
date using a runtime parameter and the relevant data returned to the 3
subreports. I have been told to use the code below but wonder whether I have
written it correctly and if this is ok to be done with 3 subreports

begin

Report.CreateAutoSearchCriteria ('Salesord_hdr', 'Orderdate', soEqual,
plParams['Orderdate'],true);

Report.CreateAutoSearchCriteria ('Dr_Trans', 'Orderdate', soEqual,
plParams['Orderdate'],true);

Report.CreateAutoSearchCriteria ('Dr_Trans2', 'Orderdate', soEqual,
plParams['Orderdate'],true);

end;

Thank you

Anna

Comments

  • edited January 2004
    Hi Anna,

    The code below seems to be correct if applied in the correct way. Please
    take a look at the AutoSearch Demos located in the \RBuilder\Demos\5.
    AutoSearch\... directory for a few examples that should get you on the right
    track.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.