Skip to main content



      Home
Home » Archived » BIRT » Is there a calendar picker for a date report parameter?
Is there a calendar picker for a date report parameter? [message #201441] Thu, 16 November 2006 17:42 Go to next message
Eclipse UserFriend
Originally posted by: gregbluntzer.maximus.com

I was wondering is there a calendar picker for a date report parameter?

I want to pass in a start date and and end date so that i can find a range
of records.

I want the user to be able to see a calendar picker to choose the start date
and end date.

Does Birt have that functionality?

Thanks,

Greg
Re: Is there a calendar picker for a date report parameter? [message #201533 is a reply to message #201441] Fri, 17 November 2006 00:22 Go to previous messageGo to next message
Eclipse UserFriend
you can do it by yourself.
In birt/pages/parameter/TextBoxParamterFragment.jsp
add lines
----
<%
if (parameterBean.getParameter().getDataType()==4) {
%>
<IMG id=calendar
onclick="JavaScript:setday(this,document.getElementById('<%=parameterBean.getName()% >'));"
height=18 src='birt/ajax/core/calendar.gif' width=19 align="center"
border=0>
<%} %>
</TD>
</TR>

----
add add calendar.js in
birt/pages/layout/FramesetFragment.jsp,
this if my file for example:
----
<HEAD>
......
<SCRIPT type="text/javascript" src="birt/ajax/core/calendar.js"></SCRIPT>
</HEAD>
----

"Greg Bluntzer" <gregbluntzer@maximus.com> д
Re: Is there a calendar picker for a date report parameter? [message #201583 is a reply to message #201533] Fri, 17 November 2006 06:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi, I am intresting in this issue, too. Where i can found calendar.js?
It will be great including this on birt framework.

Thanks!

Mauro

qbaojian wrote:
> you can do it by yourself.
> In birt/pages/parameter/TextBoxParamterFragment.jsp
> add lines
> ----
> <%
> if (parameterBean.getParameter().getDataType()==4) {
> %>
> <IMG id=calendar
> onclick="JavaScript:setday(this,document.getElementById('<%=parameterBean.getName()% >'));"
> height=18 src='birt/ajax/core/calendar.gif' width=19 align="center"
> border=0>
> <%} %>
> </TD>
> </TR>
>
> ----
> add add calendar.js in
> birt/pages/layout/FramesetFragment.jsp,
> this if my file for example:
> ----
> <HEAD>
> .....
> <SCRIPT type="text/javascript" src="birt/ajax/core/calendar.js"></SCRIPT>
> </HEAD>
> ----
>
> "Greg Bluntzer" <gregbluntzer@maximus.com> дÈëÏûÏ¢
> news:ejipgb$jh3$1@utils.eclipse.org...
>> I was wondering is there a calendar picker for a date report parameter?
>>
>> I want to pass in a start date and and end date so that i can find a range
>> of records.
>>
>> I want the user to be able to see a calendar picker to choose the start
>> date and end date.
>>
>> Does Birt have that functionality?
>>
>> Thanks,
>>
>> Greg
>>
>>
>>
>>
>
>
Re: Is there a calendar picker for a date report parameter? [message #201799 is a reply to message #201583] Mon, 20 November 2006 03:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johnw.innoventsolutions.com

Mauro,

You can use any number of widely available Javascript calendar
components using this method. I typically use this one
(http://www.bazon.net/mishoo).

But I, personally, create an external form page, and pass my parameters
in via POST, this keeps the core pages in BIRT unmodified for upgrades,
and allows my to brand the page anyway in any format I want.

John

Mauro R. Ubeda wrote:
> Hi, I am intresting in this issue, too. Where i can found calendar.js?
> It will be great including this on birt framework.
>
> Thanks!
>
> Mauro
>
> qbaojian wrote:
>> you can do it by yourself.
>> In birt/pages/parameter/TextBoxParamterFragment.jsp
>> add lines
>> ----
>> <%
>> if (parameterBean.getParameter().getDataType()==4) {
>> %>
>> <IMG id=calendar
>> onclick="JavaScript:setday(this,document.getElementById('<%=parameterBean.getName()% >'));"
>> height=18 src='birt/ajax/core/calendar.gif' width=19 align="center"
>> border=0>
>> <%} %>
>> </TD>
>> </TR>
>>
>> ----
>> add add calendar.js in
>> birt/pages/layout/FramesetFragment.jsp,
>> this if my file for example:
>> ----
>> <HEAD>
>> .....
>> <SCRIPT type="text/javascript" src="birt/ajax/core/calendar.js"></SCRIPT>
>> </HEAD>
>> ----
>>
>> "Greg Bluntzer" <gregbluntzer@maximus.com> дÈëÏûÏ¢
>> news:ejipgb$jh3$1@utils.eclipse.org...
>>> I was wondering is there a calendar picker for a date report parameter?
>>>
>>> I want to pass in a start date and and end date so that i can find a
>>> range of records.
>>>
>>> I want the user to be able to see a calendar picker to choose the
>>> start date and end date.
>>>
>>> Does Birt have that functionality?
>>>
>>> Thanks,
>>>
>>> Greg
>>>
>>>
>>>
>>>
>>
>>
Re: Is there a calendar picker for a date report parameter? [message #201864 is a reply to message #201799] Mon, 20 November 2006 06:42 Go to previous messageGo to next message
Eclipse UserFriend
Thanks John for the advice.

Regards,
Mauro

John Ward wrote:
> Mauro,
>
> You can use any number of widely available Javascript calendar
> components using this method. I typically use this one
> (http://www.bazon.net/mishoo).
>
> But I, personally, create an external form page, and pass my parameters
> in via POST, this keeps the core pages in BIRT unmodified for upgrades,
> and allows my to brand the page anyway in any format I want.
>
> John
>
> Mauro R. Ubeda wrote:
>> Hi, I am intresting in this issue, too. Where i can found calendar.js?
>> It will be great including this on birt framework.
>>
>> Thanks!
>>
>> Mauro
>>
>> qbaojian wrote:
>>> you can do it by yourself.
>>> In birt/pages/parameter/TextBoxParamterFragment.jsp
>>> add lines
>>> ----
>>> <%
>>> if (parameterBean.getParameter().getDataType()==4) {
>>> %>
>>> <IMG id=calendar
>>> onclick="JavaScript:setday(this,document.getElementById('<%=parameterBean.getName()% >'));"
>>> height=18 src='birt/ajax/core/calendar.gif' width=19 align="center"
>>> border=0>
>>> <%} %>
>>> </TD>
>>> </TR>
>>>
>>> ----
>>> add add calendar.js in
>>> birt/pages/layout/FramesetFragment.jsp,
>>> this if my file for example:
>>> ----
>>> <HEAD>
>>> .....
>>> <SCRIPT type="text/javascript"
>>> src="birt/ajax/core/calendar.js"></SCRIPT>
>>> </HEAD>
>>> ----
>>>
>>> "Greg Bluntzer" <gregbluntzer@maximus.com> дÈëÏûÏ¢
>>> news:ejipgb$jh3$1@utils.eclipse.org...
>>>> I was wondering is there a calendar picker for a date report parameter?
>>>>
>>>> I want to pass in a start date and and end date so that i can find a
>>>> range of records.
>>>>
>>>> I want the user to be able to see a calendar picker to choose the
>>>> start date and end date.
>>>>
>>>> Does Birt have that functionality?
>>>>
>>>> Thanks,
>>>>
>>>> Greg
>>>>
>>>>
>>>>
>>>>
>>>
>>>
Re: Is there a calendar picker for a date report parameter? [message #202442 is a reply to message #201864] Wed, 22 November 2006 10:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi all,

Is there any way to add the calendar picker in the page where we select
the parameters to be passed? I mean i hv 4 different parameters of which 2
are dates. Now i'm passing date parameters as string in a combo box. I
want to know whether i can add a date picker instead of combo box. If itz
possible could anyone tell me the steps for that?


Regards,
Manuel
Re: Is there a calendar picker for a date report parameter? [message #202501 is a reply to message #202442] Wed, 22 November 2006 11:41 Go to previous messageGo to next message
Eclipse UserFriend
i understood now how to add the calendar. But i have a problem. The
calendar.js script is not working. itz showing object not found error. I'm
using birt 2.1.0. Do i need to do anything else other than u specified?
Re: Is there a calendar picker for a date report parameter? [message #202773 is a reply to message #202501] Fri, 24 November 2006 05:21 Go to previous message
Eclipse UserFriend
I managed to show the calendar pop up.. but when i select the date, itz
not populated to the text field. I have added by code below

FramesetFragment.jsp
----------------------

<!-- Calendar -->
<script type="text/javascript" src="birt/ajax/core/calendar.js"></script>
<script type="text/javascript"
src="birt/ajax/core/calendar-setup.js"></script>
<script type="text/javascript"
src="birt/ajax/core/calendar-en.js"></script>
<style type="text/css">@import
url("birt/ajax/core/calendar-win2k-1.css");</style>


TextBoxParameterFragment.jsp
-----------------------------

<img id="f_trigger_c" style="cursor: pointer; border: 0px;"
title="Date selector"
onmouseover="this.style.background='gray';"
height="18"
src="birt/ajax/core/calendar.gif"
width="19"
align="center"

onclick="JavaScript:setday(this.document.getElementById('<%=parameterBean.getName()% >'));"
onmouseout="this.style.background=''" />

<script type="text/javascript">
Calendar.setup({
inputField : "f_date_c",
ifFormat : "%m/ %d/ %Y %l: %M: %S %p ",
button : "f_trigger_c",
position : [900,300],
singleClick : true,
weekNumbers : false
});
</script>


<%
}
%>


</TD>
</TR>



Do i need to do anything else? Please help me.


Regards,
Manuel
Previous Topic:Scripted DataSource & Unique ID
Next Topic:how to launch eclipse with my specific ".project "??
Goto Forum:
  


Current Time: Sun Jun 01 18:13:02 EDT 2025

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

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

Back to the top