Home
Analytics
populate textbox when radio button selected
404040
Hi,birt am currently doing report with Radio button and text box i.e <br />
how to populate textbox when radio button selected and i have to pass some text in text box and it have to get result of parameter for charts<br />
<strong class='bbc'>for example </strong><br />
<br />
i )<strong class='bbc'>country</strong> is Radio button if i select then TextBox have to populate in that i will pass a "india" so it have to produce a total sale of that country <br />
<br />
ii)<strong class='bbc'>City</strong> is Radio button if i select then TextBox have to populate in that i will pass a "Tamil nadu" so it have to produce a total sale of that City <br />
<br />
and then while i enter some text in text box it have to auto search a word in it....<br />
<br />
how can i pass parameter for this type Report?<br />
<br />
can u provide sample db example for this it useful for me...to do for my report<br />
<br />
<br />
thank in advance....
Find more posts tagged with
Comments
404040
sir i have tried a report with sample db......with jsp
but i dono how to pass a value to birt report
my jsp file:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/birt.tld" prefix="birt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
;
<html>
<head>
<script type="text/javascript" language="JavaScript">
function radioWithText(d)
{
document.getElementById('country').style.display = "none";
document.getElementById('state').style.display = "none";
document.getElementById('city').style.display = "none";
document.getElementById(d).style.display='inline';
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form name="radiowithtexbox">
Country<input type="Radio" name="radio2text" value="Radiobutton1"
onclick="javascript:radioWithText('country')" checked="checked" />
State<input type="Radio" name="radio2text" value="Radiobutton2"
onclick="javascript:radioWithText('state')" unchecked />
City<input type="Radio" name="radio2text" value="Radiobutton2"
onclick="javascript:radioWithText('city')" unchecked />
<div id="country" style="display:visible;">
<br>COUNTRY<input type="Text" name="A">
</div>
<div id="state" style="display:none;">
<br>STATE<input type="Text" name="B">
</div>
<div id="city" style="display:none;">
<br>CITY<input type="Text" name="C">
</div>
</form>
<birt:parameterPage
id="report1"
name="page1"
reportDesign="cascade.rptdesign"
isCustom="true"
pattern="run">
<birt:paramDef id="1" name="geography" style="display:none"/> </br>
Metrics:
<birt:paramDef id="2" name="MeasureToShow" />
</br>
<input type="Submit" value="Run Report" >
</birt:parameterPage>
</body>
</html>
here i attached a birt report
so can u provide a solution for this by correcting my report
thank u in advance
404040
can u guide for this report?
thank u in advance
404040
Any help for this report?