I have expression like this:
(""" & Join(Parameters!Projects.Value, """,""") & """)
When I'm trying to evaluate this using "Expression tester tool for SQL Server 2008"
Missing part of required element such as parenthesis. What is wrong with this?
Here is my original string (working good for report):
=(IIf(Parameters!Projects.Count > 0,
"(project in (""" &
Join(Parameters!Projects.Value, """,""")
& """)", "(")
&
IIf(Parameters!Statuses.Count > 0,
IIf(Parameters!Projects.Count > 0, " and ", "")
&
"status in ("'" &
Join(Parameters!Statuses.Value, "'",""")
& """)", "")
&
IIf(Parameters!Issue_Types.Count > 0,
IIf(Parameters!Projects.Count > 0 Or Parameters!Statuses.Count > 0, " and ", "")
&
"issueType in ("'" &
Join(Parameters!Issue_Types.Value, "'",""")
& """))", ")")) & " or issueKey=""GRL-1"" order by Created asc"
I changed it like this:
=(IIf(Parameters!Projects.Count > 0,
"(project in ("'" &
Join(Parameters!Projects.Value, "'","'")
& "'")", "(")
&
IIf(Parameters!Statuses.Count > 0,
IIf(Parameters!Projects.Count > 0, " and ", "")
&
"status in ("'" &
Join(Parameters!Statuses.Value, "'","'")
& "'")", "")
&
IIf(Parameters!Issue_Types.Count > 0,
IIf(Parameters!Projects.Count > 0 Or Parameters!Statuses.Count > 0, " and ", "")
&
"issueType in ("'" &
Join(Parameters!Issue_Types.Value, "'","'")
& "'"))", ")")) & " or issueKey=""GRL-1"" order by Created asc"
to get my expression evaluted like :
{"jql": "(project in ('Change Instructions')) and status in ('Open') and issueType in ('Fees') or issueKey ='GR L-1' order by Created asc" }
But, it shows an error:
Argument not specified for paramter 'FalsePart' of public function IFF(Expression As Boolean,TruePart as Object, FalsePart as Object) As Object.
How can I get desired string ?Is there any other tool available to evaluate expression for SSRS?
