Re: Report Parameters by Anders
Anders
Sat Oct 15 03:52:53 CDT 2005
Hi David
You put them immediately before the commands
USE vReportDataSource
or REQUERY('vReportDataSource')
REPORT FORM x TO PRINTER
They can be defines as local variables
LOCAL dateparam1, dateparam2
dateparam1= Thisform.Text2.Value
dateparam2 = Thisform.Text3.Value
REQUERY ('vreportdatasource')
or passed as parameters
FUNCTION xx (dateparam1, dateparam2)
REQUERY('vreportdatasource')
anything as long as they have the same names you used in your view
definition, and are alive when you open or requery the view
-Anders
"David De Wald" <daviddewald@solantic.com> skrev i meddelandet
news:uu72fVD0FHA.3124@TK2MSFTNGP12.phx.gbl...
> Yes, I know SQL and I've made a view that cotains the data I need.
>
> Where exactly would I put:
> dateparam1=DATE(yyyy,mm,dd)
> dateparam2=DATE(yyyy,mm,dd)
> USE vReportDataSource
> REPORT FORM ...
>
> in the report to have it pop for the parameters?
>
> "Anders" <anders@anders> wrote in message
> news:OIU8VfC0FHA.612@TK2MSFTNGP10.phx.gbl...
>> Do you know any SQL commands? Like SELECT .. FROM ... WHERE datecolumn
>> BETWEEN ?dateparam1 AND ?dateparam2 INTO CURSOR reportdatasource
>> or
>> CREATE VIEW vReportDataSource AS SELECT .. FROM ...
>> WHERE datecolumn BETWEEN ?dateparam1 AND ?dateparam2
>>
>> dateparam1=DATE(yyyy,mm,dd)
>> dateparam2=DATE(yyyy,mm,dd)
>> USE vReportDataSource
>> REPORT FORM ...
>>
>> -Anders
>>
>> "David De Wald" <daviddewald@solantic.com> skrev i meddelandet
>> news:enV8nEB0FHA.3300@TK2MSFTNGP15.phx.gbl...
>>> We have an App built on FoxPro that allows us to create reports outside
>>> of it and load then in to it with out access to the source code.
>>> > I need to add parameters for the report to pull in a given date range.
>>> > Is
>>> there a way for me to cause a dialog to pop asking for the parameters,
>>> within the report creation tools in VFP9?
>>>
>>> Thanks in advance,
>>>
>>> David
>>>
>>
>>
>
>