Home > Archive > Visual Basic Crystal Reports > April 2006 > Missing Parameter Field Current Value...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Missing Parameter Field Current Value...
|
|
| den 2005 2006-04-07, 8:04 am |
| Hi every body,
I am supplying a value to a parameter inside a subreport and still
shows this error message below:
Missing parameter field current value.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details:
CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException:
Missing parameter field current value.
I have written the codes shown below to fill the parameter with value and
cannot figure it out why it still return the error shwon above. TestReport is
Main Crystal Report. Thanks.
[code]
Private reportDoc As New TestReport()
Dim subreport As ReportDocument = reportDoc.OpenSubreport("Sample")
Dim stDate As String = String.Format("{0}/{1}/{2}", Me.dddFrom.Month,
Me.dddFrom.Day, Me.dddFrom.Year)
Dim parField As ParameterFieldDefinition =
subreport.DataDefinition.ParameterFields.Item("StartDate")
Dim parValues As ParameterValues = parField.CurrentValues
Dim disValue As New ParameterDiscreteValue()
disValue.Value = stDate
parValues.Add(disValue)
parField.ApplyCurrentValues(parValues)
Me.crvReport.ReportSource = report
[\code]
den2005
--
MCP Year 2005, Philippines
| |
| den 2005 2006-04-12, 4:05 am |
| This problem has been resolved using different approach.
den2005
--
MCP Year 2005, Philippines
"den 2005" wrote:
> Hi every body,
>
> I am supplying a value to a parameter inside a subreport and still
> shows this error message below:
>
> Missing parameter field current value.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information about
> the error and where it originated in the code.
>
> Exception Details:
> CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException:
> Missing parameter field current value.
>
>
> I have written the codes shown below to fill the parameter with value and
> cannot figure it out why it still return the error shwon above. TestReport is
> Main Crystal Report. Thanks.
>
> [code]
>
> Private reportDoc As New TestReport()
>
> Dim subreport As ReportDocument = reportDoc.OpenSubreport("Sample")
>
> Dim stDate As String = String.Format("{0}/{1}/{2}", Me.dddFrom.Month,
> Me.dddFrom.Day, Me.dddFrom.Year)
>
> Dim parField As ParameterFieldDefinition =
> subreport.DataDefinition.ParameterFields.Item("StartDate")
>
> Dim parValues As ParameterValues = parField.CurrentValues
>
> Dim disValue As New ParameterDiscreteValue()
>
> disValue.Value = stDate
>
> parValues.Add(disValue)
>
> parField.ApplyCurrentValues(parValues)
>
> Me.crvReport.ReportSource = report
>
> [\code]
>
>
>
> den2005
>
> --
> MCP Year 2005, Philippines
| |
| aVbGuy 2006-04-25, 7:18 pm |
| Anyone getting this error - call the setdatasouce method before setting
parameter values.
"den 2005" wrote:
[color=darkred]
> This problem has been resolved using different approach.
>
> den2005
> --
> MCP Year 2005, Philippines
>
>
> "den 2005" wrote:
>
|
|
|
|
|