Accessing AutoSearch variables
Can anyone tell me how to access the values the user enters into the
"search" screen the DADE user sees when they run a report.
As an simple example I have a file with items that have a date_reveived and
a date_shipped_out. The report asks the user to enter an inventory date and
compares the inventory_date (entered in the startup query screen) and
compares the two dates against that to determine what's in stock at the
inventory_date. I would be good just to include the inventory date in the
report header so you have a printed record of what's in stock at what date.
I know what I want to do but can't find the right sysntax to set up a RAP
variable to print.
"search" screen the DADE user sees when they run a report.
As an simple example I have a file with items that have a date_reveived and
a date_shipped_out. The report asks the user to enter an inventory date and
compares the inventory_date (entered in the startup query screen) and
compares the two dates against that to determine what's in stock at the
inventory_date. I would be good just to include the inventory date in the
report header so you have a printed record of what's in stock at what date.
I know what I want to do but can't find the right sysntax to set up a RAP
variable to print.
This discussion has been closed.
Comments
This can be done in RAP using the TppReport.AutoSearchCriteriaByName
routine. If for instance you have a variable inside your header band you
could place the following code inside the HeaderBand.BeforePrint event to
get the effect you are after...
Variable1.Value :=
Report.AutoSearchCriteriaByName('Customer','CustNo').Value;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com