Is there a calendar picker for a date report parameter? [message #201441] |
Thu, 16 November 2006 17:42  |
Eclipse User |
|
|
|
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 #201799 is a reply to message #201583] |
Mon, 20 November 2006 03:30   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #202773 is a reply to message #202501] |
Fri, 24 November 2006 05:21  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03879 seconds