Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Create my own parameter window?(It's possible to create my own parameter window?)
icon5.gif  Create my own parameter window? [message #898329] Thu, 26 July 2012 04:38 Go to next message
Blaine Mising name is currently offline Blaine Mising name
Messages: 25
Registered: December 2010
Junior Member
I'm starting using Birt. I read a lot of dumentation, but I've some doubts.
I want to do a web application and integrate birt.


I saw that Birt parameter window haven't the typical calendar icons for date fields, ( after click the icon a calendar is shown, then user can select a date etc...)

1. Can Birt do this? How?

2. If Birt parameters window can't do it, it's possible create my own window to add this funcionality without modifying Birt source code? How?

2. Languages have diferent date formats, then I need to do validation depending the language format. Can Birt do this? How?


Can someone clear my doubts?

[Updated on: Thu, 26 July 2012 05:38]

Report message to a moderator

Re: Create my own parameter window? [message #898626 is a reply to message #898329] Thu, 26 July 2012 18:03 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

By default the BIRT parameter screen does not present date date pickers.
Others have commented on how you can add one here:

http://www.birt-exchange.org/org/forum/index.php/topic/11498-birt-datepicker-plzzzzzzzzzzz/

You also customize the entire parameter entry screen by modifying js
files in the web content directory of the viewer or using the birt tag
libraries:
http://birtworld.blogspot.com/2007/09/22-birt-tag-library-building-custom.html

You could fire client side script to do your validation like

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/tlds/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">
</head>
<body>
<script>
function runReport(form){
alert(form.innerHTML);
form.submit();
}
</script>

<birt:parameterPage id="birtParmPage" reportDesign="TopNPercent.rptdesign"
name="my form"
pattern="frameset"
height="600"
width="800"
format="html"
title="My Viewer Tag"
isCustom="true"
showTitle="true"
showToolBar="true"
showNavigationBar="true"
>
TOP COUNT PARAMETER
<input type="Text" name="Top Count">
<br><br>
TOP PERCENT PARAMETER
<input type="Text" name="Top Percentage">
<br><br>
<input type="BUTTON" value="Run Report" OnClick="runReport(this.form)">
</birt:parameterPage>
</body>
</html>


Jason

On 7/26/2012 4:38 AM, Blaine Mising name wrote:
> I'm starting using Birt. I read a lot of dumentation, but I've some doubts.
> I want to do a web application and integrate birt.
>
> I saw that Birt html parameter window haven't the typical calendar icons
> for date fields, and after click the icon a calendar is shown, then user
> can select a date.
> 1. Can Birt do this? How?
>
> 2. If Birt parameters window can't do it, it's possible create my own
> window to add this funcionality without modifying Birt source code? How?
>
> 2. Languages have diferent date formats, then I need to do validation
> depending the language format. Can Birt do this? How?
>
>
> Can someone clear my doubts?
>
Previous Topic:Cannot run report properly while using aggregations
Next Topic:BIRT
Goto Forum:
  


Current Time: Mon Jul 28 16:28:21 EDT 2014

Powered by FUDForum. Page generated in 0.01785 seconds