Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » populate a textbox
populate a textbox [message #1064261] Tue, 18 June 2013 13:13 Go to next message
4040 4040 is currently offline 4040 4040Friend
Messages: 78
Registered: February 2013
Hi,birt am currently doing report with Radio button and text box i.e
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
for example

i )country 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

ii)City 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

and then while i enter some text in text box it have to auto search a word in it....

how can i pass parameter for this type Report?

my jsp file:

<%@ page language="java" contentType="text/html; charset=UTF-8"
<%@ taglib uri="/birt.tld" prefix="birt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<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";
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<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 id="state" style="display:none;">
<br>STATE<input type="Text" name="B">

<div id="city" style="display:none;">
<br>CITY<input type="Text" name="C">


<birt:paramDef id="1" name="geography" style="display:none"/> </br>
<birt:paramDef id="2" name="MeasureToShow" />
<input type="Submit" value="Run Report" >


here i attached a birt report

so can u provide a solution for this by correcting my report

thank u in advance
Re: populate a textbox [message #1064396 is a reply to message #1064261] Wed, 19 June 2013 05:25 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1897
Registered: July 2009
Senior Member

I responded to your other post with the same question. Smile


Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Parameterized Query - Problem
Next Topic:Problem to use the RCPMultiPageReportEditor in a RCP application
Goto Forum:

Current Time: Sat Apr 25 08:53:13 GMT 2015

Powered by FUDForum. Page generated in 0.02138 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software