Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How do I create a custom parameters page?
SteveRut
<p>I have created some reports with parameters that are text boxes and drop downs. I would like to change the layout of where the text boxes and drop downs are on the screen and also the size of the boxes. Is there a way to do this? </p>
<p> </p>
<p>Thanks!</p>
<p>Steve</p>
Find more posts tagged with
Comments
JFreeman
<p>Thank you for following up with your findings and solution.</p>
<p> </p>
<p>I'm sure this will be helpful for somebody in the future.</p>
reportBirt_user
<blockquote class="ipsBlockquote" data-author="SteveRut" data-cid="137068" data-time="1434132099">
<div>
<p>Just in case anyone also needs help with this I figured a few things out. </p>
<p> </p>
<p>So I figured out that it is ¶m=value1,value2,value3 in the URL when you want multiple values for one parameter</p>
<p> </p>
<p>I wanted to use checkboxes and have the values added and removed when they were checked or not checked. Here is an example of the solution I came up with. There may be a better or easier way but I am new to this and it worked for me.</p>
<p> </p>
<div>div id="PlatformSelectDiv"></div>
<div>Platform: <br></div>
<div> <input type="checkbox" id="param1" value="data1" onClick="updateSubmitButton1()">sample text 1<br></div>
<div> <input type="checkbox" id="param2" value="data2" onClick="updateSubmitButton2()">sample text 2<br></div>
<div> <input type="checkbox" id="param3" value="data3" onClick="updateSubmitButton3()">sample text 3<br></div>
<div><br><br></div>
<div></div></div>
<div> </div>
<div>
<div>function updateSubmitButton1(){</div>
<div> </div>
<div> </div>
<div>var submitButton = document.getElementById("js3_submitButton").firstChild;</div>
<div>var param = document.getElementById("param1").value;</div>
<div> </div>
<div>if(document.getElementById("param1").checked == true){</div>
<div>if(document.getElementById("param2").checked == true || document.getElementById("param3").checked == true){</div>
<div>var newHref = submitButton.href.replace("&ParamName=", "&ParamName="+param+",");</div>
<div>}</div>
<div>else{</div>
<div>//This is because I started with a default value of "" when I linked the report parameters to the driver</div>
<div>var newHref = submitButton.href.replace("&__isNull=ParamName", ""); </div>
<div>submitButton.href = newHref;</div>
<div>var newHref = submitButton.href.replace(".rptdesign", ".rptdesign&ParamName="+param);</div>
<div>}</div>
<div>}</div>
<div>if(document.getElementById("param1").checked == false){</div>
<div>if(document.getElementById("param2").checked == true || document.getElementById("param3").checked == true){</div>
<div>var newHref = submitButton.href.replace(","+param, "");</div>
<div>submitButton.href = newHref;</div>
<div>var newHref = submitButton.href.replace(param+",", "");</div>
<div>submitButton.href = newHref;</div>
<div> </div>
<div>}</div>
<div>else{</div>
<div>var newHref = submitButton.href.replace("&ParamName="+param, "");</div>
<div>}</div>
<div>}</div>
<div>submitButton.href = newHref;</div>
<div>console.log(submitButton.href);</div>
<div>}</div>
<div> </div>
</div>
<p>and then make function updateSubmitButton2() and function updateSubmitButton3() by changing param1, param2, and param3 around to the right spots. </p>
<p> </p>
<p><strong>Hope this can help somebody one day!</strong></p>
</div>
</blockquote>
<p> </p>
<p>Hi ,</p>
<p>This day is the day=). <br>
What i need to do is to get the string that i fill on the text box HTML form and pass this value for the parameter and pass this parameter for other report with drill down. I supposed that is what you did before right ? If you have some dummy example it could be helpfully for me. <br><br>
Thanks in advice.<br>
</p>