Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
TO GET CHART BY CHECK BOX
404040
HI SIR...<br />
<br />
<br />
am struggling in a report with chart to get value for different option with check box<br />
<br />
am having 4 check box <br />
1)ALL<br />
2)A<br />
3)B<br />
4)c<br />
<br />
if i click <strong class='bbc'>All</strong> i have to show a full chart <br />
<br />
if i click <strong class='bbc'>A</strong> i want to show A only <br />
<br />
like wise i have to create <br />
<br />
<strong class='bbc'>i have followed a html code below but its not working<br />
</strong><br />
<br />
<form name="input" onSubmit="return reloadPage();"><br />
<br />
<script type="text/javascript"><br />
<br />
<br />
function reloadPage() {<br />
//alert("Reload time");<br />
var temp = new String(location.href);<br />
var targetURL = new String();<br />
<br />
if(temp.indexOf("__overwrite=") != -1 ){<br />
targetURL = temp.substring(0, temp.indexOf("&__overwrite") -1);<br />
}else{<br />
targetURL = temp;<br />
}<br />
<br />
targetURL += "&__overwrite=true";<br />
targetURL += "&hideOfficeCodeLabel=" + document.cbform.mycheckbox.checked;<br />
targetURL += "&hideCityLabel=" + document.cbform2.mycheckbox.checked;<br />
targetURL += "&hideStateLabel=" + document.cbform3.mycheckbox.checked;<br />
targetURL += "&hideCountryLabel=" + document.cbform4.mycheckbox.checked;<br />
<br />
<br />
<br />
<br />
//alert( targetURL ); <br />
location.replace(targetURL);<br />
<br />
return false;<br />
}<br />
// Move below script<br />
//<table width=100%><br />
// <tr><br />
// <td colspan=2><input type="button" value="Apply Changes" onEnter = "reloadPage()" //onclick="reloadPage()"></td><br />
// </tr><br />
//</table><br />
timer=setTimeout('reloadPage()', 5000);<br />
</script><br />
<br />
<br />
<br />
</form><br />
<br />
<br />
to checkbox:<br />
<form name="cbform"><br />
<INPUT TYPE=CHECKBOX NAME="mycheckbox" <VALUE-OF>if( params["hideOfficeCodeLabel"].value){<br />
"checked";<br />
}else{<br />
"";<br />
}</VALUE-OF>>Hide Office Code</INPUT><br />
</form><br />
<br />
<br />
so can u give idea to do that ? and then give sample report according to my query
Find more posts tagged with
Comments
kclark
Are you wanting to show different charts based on the parameters or wanting to only show specific data in one chart based on the parameters?
404040
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="115321" data-time="1363960198" data-date="22 March 2013 - 06:49 AM"><p>
Are you wanting to show different charts based on the parameters or wanting to only show specific data in one chart based on the parameters?<br /></p></blockquote>
<br />
thanks for reply<br />
<br />
1)showing different parameter .........only based on check box data value have to change...<br />
<br />
2) my second question is i have got a datepicker in birt- viewer but while i have called in jsp its not displaying only showing texbox i followed procedure as like wt i followed in birt viewer ....in tomcat am not getting...date picker. kindly give idea for that too.....<br />
<br />
3)i am running jsp in <br />
<br />
<birt:parameterPage id="birtParmPage" reportDesign="item2.rptdesign" name="my form"<br />
pattern="run"<br />
format="html"<br />
title="My Viewer Tag"<br />
isCustom="true"<br />
showTitle="true"<br />
showToolBar="true"<br />
showNavigationBar="true"<br />
target="content"><br />
<br />
so i have to create <strong class='bbc'>export report</strong> in text html so give source for that too......
kclark
If you're wanting to remove a series in your chart based on a report parameter have a look at <a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1289-remove-chart-series-based-on-parameter/'>this
devshare.</a><br />
<br />
What date picker are you using for your parameter or did you write it? Is it working in one browser and not the other?
404040
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="115368" data-time="1364221863" data-date="25 March 2013 - 07:31 AM"><p>
If you're wanting to remove a series in your chart based on a report parameter have a look at <a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1289-remove-chart-series-based-on-parameter/'>this
devshare.</a><br />
<br />
What date picker are you using for your parameter or did you write it? Is it working in one browser and not the other?<br /></p></blockquote>
<br />
<br />
thanks for reply<br />
<br />
for datepicker i followed this :on birt viewer its running but not in tomact<br />
<a class='bbc_url' href='
http://terrarum.net/administration/adding-a-calendar-widget-to-birt.html'>http://terrarum.net/administration/adding-a-calendar-widget-to-birt.html</a><br
/>
<br />
i had visit a example but i need is <br />
<br />
i created a report like "all" and particular its working in it<br />
<br />
inside a birt viewer i have to check A ,b,c checkbox according to option result want to display in it by html<br />
<br />
so only i followed this example with html<br />
<br />
<br />
<br />
<form name="input" onsubmit="return reloadPage();"><br />
<br />
<script type="text/javascript"><br />
<br />
<br />
function reloadPage() {<br />
//alert("Reload time");<br />
var temp = new String(location.href);<br />
var targetURL = new String();<br />
<br />
if(temp.indexOf("__overwrite=") != -1 ){<br />
targetURL = temp.substring(0, temp.indexOf("&__overwrite") -1);<br />
}else{<br />
targetURL = temp;<br />
}<br />
<br />
targetURL += "&__overwrite=true";<br />
targetURL += "&hideOfficeCodeLabel=" + document.cbform.mycheckbox.checked;<br />
targetURL += "&hideCityLabel=" + document.cbform2.mycheckbox.checked;<br />
targetURL += "&hideStateLabel=" + document.cbform3.mycheckbox.checked;<br />
targetURL += "&hideCountryLabel=" + document.cbform4.mycheckbox.checked;<br />
<br />
<br />
<br />
<br />
//alert( targetURL ); <br />
location.replace(targetURL);<br />
<br />
return false;<br />
}<br />
// Move below script<br />
//<table width=100%><br />
// <tr><br />
// <td colspan=2><input type="button" value="Apply Changes" onEnter = "reloadPage()" //onclick="reloadPage()"></td><br />
// </tr><br />
//</table><br />
timer=setTimeout('reloadPage()', 5000);<br />
</script><br />
<br />
<br />
<br />
</form><br />
<br />
<br />
to checkbox:<br />
<form name="cbform"><br />
<INPUT TYPE=CHECKBOX NAME="mycheckbox" <VALUE-OF>if( params["hideOfficeCodeLabel"].value){<br />
"checked";<br />
}else{<br />
"";<br />
}</VALUE-OF>>Hide Office Code</INPUT><br />
</form>
divya1990
Hi,
I need a chart that is accessed using the check boxes.
According to the box clicked the chart wants to display the values.
and too giv any other report related to this check box usage.