Hello,
I am using CR8.5. I downloaded some ASP samples from the Business Objects/CR knowledge base, but I am having some trouble with what I am trying to do.
I have an HTML form that contains a list of values with checkboxes next to them. I would like the user to be able to select any number of those checkbox values and have those values passed via ASP to a report. The report contains a Multiple Value parameter.
I can get this to work when I hard code the values in the ASP file:
session("oRpt").ParameterFields.GetItemByName("workgroup").EnableMultipleValues = 1
session("oRpt").ParameterFields.GetItemByName("workgroup").AddCurrentValue(CStr("ERX Advanced TAC"))
session("oRpt").ParameterFields.GetItemByName("workgroup").AddCurrentValue(CStr("ERX Product Support"))
But when I use "Request.Form" to pass the values it's not working. Here's my code:
session("oRpt").ParameterFields.GetItemByName("workgroup").EnableMultipleValues = 1
session("oRpt").ParameterFields.GetItemByName("Workgroup").AddCurrentValue(CStr(Request.Form("prompt0")))
session("oRpt").ParameterFields.GetItemByName("workgroup").AddCurrentValue(CStr(Request.Form("prompt0")))
I'm 100% sure that it's an issue of my code not being correct, but I am not sure of the correct way. Has anyone ever done this before?
Thanks,
Carla
I am using CR8.5. I downloaded some ASP samples from the Business Objects/CR knowledge base, but I am having some trouble with what I am trying to do.
I have an HTML form that contains a list of values with checkboxes next to them. I would like the user to be able to select any number of those checkbox values and have those values passed via ASP to a report. The report contains a Multiple Value parameter.
I can get this to work when I hard code the values in the ASP file:
session("oRpt").ParameterFields.GetItemByName("workgroup").EnableMultipleValues = 1
session("oRpt").ParameterFields.GetItemByName("workgroup").AddCurrentValue(CStr("ERX Advanced TAC"))
session("oRpt").ParameterFields.GetItemByName("workgroup").AddCurrentValue(CStr("ERX Product Support"))
But when I use "Request.Form" to pass the values it's not working. Here's my code:
session("oRpt").ParameterFields.GetItemByName("workgroup").EnableMultipleValues = 1
session("oRpt").ParameterFields.GetItemByName("Workgroup").AddCurrentValue(CStr(Request.Form("prompt0")))
session("oRpt").ParameterFields.GetItemByName("workgroup").AddCurrentValue(CStr(Request.Form("prompt0")))
I'm 100% sure that it's an issue of my code not being correct, but I am not sure of the correct way. Has anyone ever done this before?
Thanks,
Carla