Hi,
I like to assign a date value to one parameter. It's not assigning properly.
Here is the scenario.
I will be getting values of parameters from a URL.
In the above URl application is able to assign department, but not Rec_date. It's bringing up the report with the default value.
I hardcoded the date value in certain format. It didn't workout.
Following the code which sets values for parameters.
Set reportParameters = queryResult.Item(1).PluginInterface("Report"
.ReportParameters
Set Fields = CreateObject("CrystalReports.Fields"
For Each Parameter in reportParameters
Set myParameter = CreateObject("CrystalReports.ParameterField"
Set Value = CreateObject("CrystalReports.ParameterFieldDiscreteValue"
if ((UCase(Parameter.ParameterName) = "START_DATE"
) then
Value.Value = Request.QueryString("Start_Date"
'Value.Value = "Start_Date;date(2003,05,01);true"
end if
Next
' Code for displaying report.
Can you please help me in assigning date.
Thanks in advance.
Mary
I like to assign a date value to one parameter. It's not assigning properly.
Here is the scenario.
I will be getting values of parameters from a URL.
In the above URl application is able to assign department, but not Rec_date. It's bringing up the report with the default value.
I hardcoded the date value in certain format. It didn't workout.
Following the code which sets values for parameters.
Set reportParameters = queryResult.Item(1).PluginInterface("Report"
Set Fields = CreateObject("CrystalReports.Fields"
For Each Parameter in reportParameters
Set myParameter = CreateObject("CrystalReports.ParameterField"
Set Value = CreateObject("CrystalReports.ParameterFieldDiscreteValue"
if ((UCase(Parameter.ParameterName) = "START_DATE"
Value.Value = Request.QueryString("Start_Date"
'Value.Value = "Start_Date;date(2003,05,01);true"
end if
Next
' Code for displaying report.
Can you please help me in assigning date.
Thanks in advance.
Mary