Hi Mriganka,
Hi Dominic Lee
Thank you for you inputs, but none of this variants haven’t solved my problem (maybe I misunderstood you), please see the following results:
The name of my BaseEnum is “InsCategory”, which contains the following elements: Val1 [0], Val2 [1], Val3 [2] .
FieldCategory – is the name of the field (which contains my BaseEnum -“InsCategory”) in my temp table. I was trying to replace FieldCategory to FieldCategory1. The same result
//-------------------------------------------------------------------------------
In this case:
=IIF(Parameters!Parameter.value <> Fields!Val2EnumValue.value, false, true)
I’ve made the following expression
1. =IIF(Parameters!DS_Category.Value<>Fields!FieldCategory.Value,false,true)
Error1. The Hidden expression for the tablix ‘Tablix2’ contains an error: Overload resolution failed because no Public '<>' can be called with these arguments: 'Public Shared Operator <>(a As String, b As String) As Boolean': Argument matching parameter 'a' cannot convert from 'Object()' to 'String'.
//-------------------------------------------------------------------------------
2. =IIF(Parameters!DS_Category.Value<>Fields!Val2.Value,false,true)
Error 2: Field token Fields! Val2.Value is invalid. Could not find the identifier.\SSRS Reports\Reports\Report
//-------------------------------------------------------------------------------
3. =IIF(Parameters!DS_Category.Value<>Fields!FieldCategory1.Value,false,true)
Error3. The Hidden expression for the tablix ‘Tablix2’ contains an error: Overload resolution failed because no Public '<>' can be called with these arguments: 'Public Shared Operator <>(a As String, b As String) As Boolean': Argument matching parameter 'a' cannot convert from 'Object()' to 'String'.
//-------------------------------------------------------------------------------
In this case:
=Iif(Parameters!rdpReport_noYes.Value = "Yes",false,true)
4.
=IIF(Parameters!DS_Category.Value<>"Val2",false,true)
Error4. The Hidden expression for the tablix ‘Tablix2’ contains an error: Overload resolution failed because no Public '<>' can be called with these arguments: 'Public Shared Operator <>(a As String, b As String) As Boolean': Argument matching parameter 'a' cannot convert from 'Object()' to 'String'.
//-------------------------------------------------------------------------------
By the way, the #4 variant is valid, if for my “DS_Category” Parameter the property Multi Value = false, but in my case, this property Multi Value = true.
Any other Idea?