Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a Multiple Value Parameter with ASP/HTML

Status
Not open for further replies.

carla

Technical User
Jan 9, 2001
39
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top