on ‎2007 Feb 15 12:44 PM
I have an irpt that has toggle buttons at the bottom of the page. When a person clicks a toggle button a new window opens, passes the param to an iChart and displays the chart. Currently, I am only passing one param. My queries (current page and ichart) have 4 param and I would like to know the correct syntax in passing multiple params.
Example:
var SelOption = ProductID
var strUrl = "Histogram_QA_Moistures.irpt?ID="+ ProductID;
window.open(strUrl, "Histogram");
My first parm is "Histogram_QA_Moistures.irpt?ID="+ ProductID
I need to add...
"Histogram_QA_Moistures.irpt?Line="+ Line
"Histogram_QA_Moistures.irpt?Operator="+ Operator
"Histogram_QA_Moistures.irpt?Lot="+ Lot
Please show me the correct syntax to line all four of these param for strUrl.
Thanks!!
Request clarification before answering.
Hi,
now u try with this format by seperating each parameter by an & operator and appending with other parameters after assigning its value.it will work,
var strUrl = "Histogram_QA_Moistures.irpt?ID="+ ProductID"&Line="Line"&Operator"Operator"&Lot"Lot;
window.open(strUrl, "Histogram");
regards,
Ravi Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't seem to be working. I am able to pass the first param with your code, but I noticed something that wasn't consistant in your code.
There wasn't an "=" after "&Operator" and "&Lot". Should there be?? I modified the code, but I still didn't get the results I was looking for. I should be able to pick only Line and run the chart and get only line data, but I get blank charts for everything but ProductID.
var strUrl = "Histogram_QA_Moistures.irpt?ID="+ ProductID+"&Line="+Line+"&Operator="+Operator+"&Lot="+Lot;
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.