tipvernonia
asked on
Using quotes in java script to
I am attempting to open a sub-report by sending parameters from the parent report. I am using a count parameter to determine if the user selected "Select All". If they did I want to send an empty string to the stored procedure instead of a long list.
I thought using single quotes for starting and ending the string, leaving double quotes for the HTML would work.
The build error is [BC30205] End of statement expected
I thought using single quotes for starting and ending the string, leaving double quotes for the HTML would work.
The build error is [BC30205] End of statement expected
="javascript:void(window.open('http://qbsrs.intel.com/ReportServer/Pages/ReportViewer.aspx?%2fQMM%2fReport_detail&rs:Command=Render
IIF(Parameters!Division.Count = Parameters!CountDivision ,"", '&Division="+Join(Parameters!Division.Value,"&Division=")+"')
&IssueSource="+Join(Parameters!IssueSource.Value,"&IssueSource=")+"
IIF(Parameters!Family.Count = Parameters!Family ,"",'&Family="+Join(Parameters!Family.Value,"&Family=")+" ')
&Site="+Join(Parameters!QSCSite.Value,"&Site=")+"
&year_month_nbr="+Fields!year_month_nbr.Value+"
'))"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, you are correct with "using single quotes for starting and ending the string, leaving double quotes for the HTML". Javascript uses both single and dbl quotes for string declarations for easy nesting.
ASKER
Thank you, I took a second look,. I actually had and extra ) at the end. I would not have seen it without your suggestion. Little thing like this just drive you nuts.
Thank you for the quick response. Enjoy the points.
Thank you for the quick response. Enjoy the points.
Thank you, Im glad you saw the error. Good catch!