Is is possible to access ReportParameters in bindings? I am trying to avoid adding a column to my dataset with a single value, but am having some difficulties.
I have a function
Public Shared Function GetStarValue(ByVal _Metric As Double, ByVal _ValType As Int32) As String
If _ValType = -1 Then
Return "*"
Else
Return CStr(FormatNumber(_Metric, 1))
End If
End Function
Called via a binding for a textbox works fine:
=GetStarValue(cdbl(Fields.MyScore), -1)
this does not
=GetStarValue(cdbl(Fields.MyScore), cint(ReportParameters(1).Value))
debug Textbox on the page populated with the following correctly shows -1 so the value is available:
TextBox5.Value = ReportParameters(1).Value
Error is:
An error has occurred while processing TextBox 'TextBox1':
The expression contains undefined function call ReportParameters().
Is it possible to access parameters in this way, if not, any alternatives other than adding 1000 rows of "-1" to my dataset?
Thanks.
I have a function
Public Shared Function GetStarValue(ByVal _Metric As Double, ByVal _ValType As Int32) As String
If _ValType = -1 Then
Return "*"
Else
Return CStr(FormatNumber(_Metric, 1))
End If
End Function
Called via a binding for a textbox works fine:
=GetStarValue(cdbl(Fields.MyScore), -1)
this does not
=GetStarValue(cdbl(Fields.MyScore), cint(ReportParameters(1).Value))
debug Textbox on the page populated with the following correctly shows -1 so the value is available:
TextBox5.Value = ReportParameters(1).Value
Error is:
An error has occurred while processing TextBox 'TextBox1':
The expression contains undefined function call ReportParameters().
Is it possible to access parameters in this way, if not, any alternatives other than adding 1000 rows of "-1" to my dataset?
Thanks.