Skip to main content



      Home
Home » Archived » BIRT » how to get listbox in <birt:viewer>
how to get listbox in <birt:viewer> [message #1058878] Wed, 15 May 2013 10:02 Go to next message
Eclipse UserFriend


here they provide parameter in text box.....


display.jsp:
<birt:viewer id="birtViewer"
reportDesign="customerList.rptdesign"
pattern="run"
height="450"
width="900"
format="html"
showParameterPage="False"
baseURL="/ccdjsp">
<birt:param name="custom" value="<%= request.getParameter(\"CustNum\")%>"></birt:param>
</birt:viewer>

index.jsp

<form action="display.jsp" method="post">

CustomerNumber <input type="text" name="CustNum" />

am getting in <birt:parameterPage id="birtParmPage" > by giving parameter name

but my question is how get parameter listbox in jsp for <birt:viewer id="birtViewer">

can u give some idea or sample jsp its helpful for me....

Re: how to get listbox in <birt:viewer> [message #1058967 is a reply to message #1058878] Thu, 16 May 2013 00:45 Go to previous messageGo to next message
Eclipse UserFriend
Have you seen this page? It shows drop downs in a cascading parameter:

http://birtworld.blogspot.com/2007/09/22-birt-tag-library-building-custom.html
Re: how to get listbox in <birt:viewer> [message #1059070 is a reply to message #1058967] Thu, 16 May 2013 10:00 Go to previous messageGo to next message
Eclipse UserFriend
sir i have seen that page .it contain in <birt:parameterpage> in that i am getting..but i need list box in <birt:viewer> with the request.getparameter value...
Re: how to get listbox in <birt:viewer> [message #1059150 is a reply to message #1059070] Thu, 16 May 2013 22:18 Go to previous messageGo to next message
Eclipse UserFriend
If you have a list box parameter, you'd do it like this in your parameterpage:

Customer Number
<birt:paramDef id="7" name="CustNum" />

To recall the value, you'd use the same request.getParameter that is already in the above JSP code for the viewer.

Maybe I'm not understanding what you're looking for. If not, please explain in more detail what you're wanting. Thanks!
Re: how to get listbox in <birt:viewer> [message #1059324 is a reply to message #1059150] Fri, 17 May 2013 10:02 Go to previous messageGo to next message
Eclipse UserFriend


how to do it in <birt:viewer>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ 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>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SALES REPORT</title>
</head>

<style type="text/css">
.class1
{
width:120px;
height:25px;
}
</style>

<body>




<birt:parameterPage id="birtParmPage"
reportDesign="sale by vertical.rptdesign"
name="my form"
pattern="run"
format="html"
position="static"
scrolling="auto"
width="800"
height="400"
top="100"
left="250"
title="My Viewer Tag"
isCustom="true"
showTitle="false"
showToolBar="false"
showNavigationBar="false"
target="contentnew">



<table height="300" cellspacing="1" cellpadding="1" width="200" border="1" class="blue" align="left">
<tr>
<td ><font size="2">Select country</font></td>
<td><font size="2"><birt:paramDef id="1" name="country" cssClass="class1" /></font></td>
</tr>
<tr>
<td ><font size="2">Select zone</font></td>
<td><font size="2"><birt:paramDef id="2" name="zone" cssClass="class1" /></font></td>
</tr>
<tr>
<td><font size="2">Select state</font></td>
<td><birt:paramDef id="3" name="state" cssClass="class1"/></td>
</tr>
<tr>
<td><font size="2">Select city</font></td>
<td><birt:paramDef id="4" name="city" cssClass="class1" /> </td>
</tr>
<tr>
<td><font size="2">Select Area</font></td>
<td><birt:paramDef id="5" name="Area Manager" cssClass="class1" /> </td>
</tr>
<tr>
<td><font size="2">Select outlet</font></td>
<td><birt:paramDef id="6" name="outlet" cssClass="class1" /> </td>
</tr>
</table>

<table height="40" cellspacing="1" cellpadding="1" width="600" border="1" class="blue" align="center">
<tr>
<td><font size="2"> Period</font></td>
<td><birt:paramDef id="8" name="pDateGrouping" cssClass="class1" /> </td>
</tr>
</table>
<%-- <tr>
<td><font size="2"> Quarter</font></td>
<td><birt:paramDef id="9" name="Quarter" cssClass="class1" /> </td>
</tr> --%>



<table height="40" cellspacing="1" cellpadding="1" width="600" border="1" class="blue" align="center">
<tr>
<td ><birt:paramDef id="7" name="Table" /></td>
<td ><INPUT TYPE="submit" VALUE="RUN REPORT"></td>
</tr>
</table>

</birt:parameterPage>

</body>

</html>




kindly help me........


Re: how to get listbox in <birt:viewer> [message #1059564 is a reply to message #1059324] Mon, 20 May 2013 09:35 Go to previous messageGo to next message
Eclipse UserFriend
hi kindly reply for this topic...am waiting fro solution

and then showparamterpage is shown when i run without selection in <birt:parameterpage> how to set false in parameterpage

thanks in advance

[Updated on: Mon, 20 May 2013 09:35] by Moderator

Re: how to get listbox in <birt:viewer> [message #1059645 is a reply to message #1059564] Tue, 21 May 2013 01:23 Go to previous message
Eclipse UserFriend
I'm still not certain I know what you're asking. Are you wanting to know how to use the selected value from the listbox in the <birt:viewer> tag? If so, it works the same as how you recall the value from the text box.

For the parameter page showing, I believe that if you have the parameter set to "required" in your design and don't have a default value and don't set the value from the jsp that the parameter page will pop up. Can you set the parameter to not be required and let me know if this is still a problem for you?
Previous Topic:Removing carriage returns from a column output
Next Topic:Multi level Pie Chart
Goto Forum:
  


Current Time: Mon Mar 17 06:46:49 EDT 2025

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

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

Back to the top