K
KC
I have a switch function that is not working properly. There is no
syntax error, but it is not displaying any data. The columns come out
empty. I'm trying to change a field dynamically. I have wrote a
function to return a value. Based on the function value returns, I
want the value change.
code.FNC is my function, which I pass 2 parameters in.
=switch(code.FNC(Parameters!MACOM.value, Parameters!FACTTYPE.Value) =
"FACTOR", Fields!FACTOR_WITH_CONOPS.Value,
code.FNC(Parameters!MACOM.Value, Parameters!FACTTYPE.Value) = "ORG",
Fields!ORG_FACTOR_SOLDIER_WCONOPS.Value,
code.FNC(Parameters!MACOM.Value, Parameters!FACTTYPE.Value) = "INST",
Fields!INST_FACTOR_SOLDIER_WCONOPS.Value,
code.FNC(Parameters!MACOM.Value, Parameters!FACTTYPE.Value) = "BOTH",
Fields!ORG_FACTOR_SOLDIER_WCONOPS.Value ).
Thanks for any help I can get, KC
syntax error, but it is not displaying any data. The columns come out
empty. I'm trying to change a field dynamically. I have wrote a
function to return a value. Based on the function value returns, I
want the value change.
code.FNC is my function, which I pass 2 parameters in.
=switch(code.FNC(Parameters!MACOM.value, Parameters!FACTTYPE.Value) =
"FACTOR", Fields!FACTOR_WITH_CONOPS.Value,
code.FNC(Parameters!MACOM.Value, Parameters!FACTTYPE.Value) = "ORG",
Fields!ORG_FACTOR_SOLDIER_WCONOPS.Value,
code.FNC(Parameters!MACOM.Value, Parameters!FACTTYPE.Value) = "INST",
Fields!INST_FACTOR_SOLDIER_WCONOPS.Value,
code.FNC(Parameters!MACOM.Value, Parameters!FACTTYPE.Value) = "BOTH",
Fields!ORG_FACTOR_SOLDIER_WCONOPS.Value ).
Thanks for any help I can get, KC