Community
Participate
Working Groups
For an end users convenience an option for alternatively using a picker component to choose a date (or time) is required. The picker could work like a combo box: * the user is able to directly enter a date/time in a date field * the user has the option to click a button (associated with the date field), this displays a calendar (or time) box to choose from. The picker component must be fully localizable in order to support proper display of date/time in a users locale.
All my reports depend on start-end date parameter setting and being able to use a date picker will help. I am also interested in being able to set the default parameter value of the start and end dates in a dynamic way: e.g. StartDate=today-7days EndDate=today Thank you
*** Bug 223007 has been marked as a duplicate of this bug. ***
Schedule for 2.5.0 and set the helpwanted keyword.
*** Bug 209134 has been marked as a duplicate of this bug. ***
Is there any possibility that we evaluate and have IP review for the YUI calendar control (http://developer.yahoo.com/yui/calendar/)? Seems it's very promising.
I will check if YUI is already approved in the orbit project.
My company and I are very interested in getting this enhancement. Is there a definitive ETA on when this calendar widget will be implemented in BIRT?
(In reply to comment #7) > My company and I are very interested in getting this enhancement. Is there a > definitive ETA on when this calendar widget will be implemented in BIRT? There is no ETA for this enahancement yet. Is there a possbility for your company to help contribute to this feature?
My company and I are interested in this enhancement. Is there an ETA on this at all? The ability to have a calendar type of object to select dates on a reports parameters would be fantastic. You mentioned that a contribution may be needed to help push this enhancement along, how much would we be looking at?
(In reply to comment #9) > My company and I are interested in this enhancement. Is there an ETA on this at > all? The ability to have a calendar type of object to select dates on a reports > parameters would be fantastic. > You mentioned that a contribution may be needed to help push this enhancement > along, how much would we be looking at? Sorry for not being clear. I was referring to code contribution. If you are interested in purcharing service or product that already has this feature. Please check out http://www.birt-exchange.com.
Any update on this? A datepicker was implemented in the expression builder (bugzilla 124726). Last comment appeared several months ago, just wondering if this has died or if a solution has been found but not implemented. Any information would be appreciated
Hello, The enhancement was targeted for 2.5. Can you give us any information on the advancement, please ?
(In reply to comment #11) > Any update on this? A datepicker was implemented in the expression builder > (bugzilla 124726). Last comment appeared several months ago, just wondering if > this has died or if a solution has been found but not implemented. Any > information would be appreciated The datapicker in expression builder is in the Eclipse IDE, the datepicker for the web viewer can not use it since it is a web application. Are you deploying BIRT as a desktop application or as a web application?
For my company, we use BIRT viewer as a web-app, but we also need the date picker in the parameter window of the BIRT designer when previewing the report.
please attach your code to this bug if you can make the enhancement to the web viewer. We will incorporate it into the source tree after testing and code review.
I was able to get this integrated using a jquery widget. This is a bit hardcoded and could be setup to take specific id's to create the widget on. Here are the steps i have taken: 1. Added jquery stuff to BIRT under birt/customjs/jquery for the calendar widget and its css/images, but can be called anything of course. 2. Added cal.gif to the birt/images directory for the calender widget. 3. Added jquery scripts/css imports to FramesetFragment.jsp, then added this line to the top of the first javascript tag 'jQuery = jQuery.noConflict();' This will allow us to use any jquery library now by importing the using the jQuery syntax instead of the '$'. 4. Added ID attribute to the HiddenParameterFragment.jsp and TextBoxParameterFramgment.jsp page, so we can use it with the jquery cal widget. The hidden input change is so you can specify a hidden text field as an secondary text field to populate. The benefit is so you can have a secondary format for display, or make it easiery to combine with non date fields. The best thing in my mind is to pass back to the Java backend a Date object so you don't have to parse anything. 5. Inside the jquery/styles/custom.css you will need to either us the original or when you overwrite it you need to add a z-index: 203; so that the cal will display on top of the parameter fragment. This is of course if you download a jquery library and not use the one provided. 6. All you need to do now is create a parameter group, DateGroup. Add a Date data type in a Text box display type. Set a format of Short Date, call this parameter start_date; create a second field called end_date. Add this group to a report and run it, you should now see a pretty calendar widget to set your date fields. Let me know what you think, Thanks!
Created attachment 172786 [details] contains files needed to integrate a calendar widget into parameter pages Sorry forgot to add this step, haha the most important one too: Add the jQuery widget javascript to the very bottom of the <div> in ParameterDialogFragment.jsp. The calendar will get added on jQuery(document).ready(); You can find the specific code in the zip i have uploaded.
Created attachment 172789 [details] Correct File to Use Sorry please use this zip file instead as it contains everything.
Note to Zhiqiang, please submit a IP review request to Eclipse emo to use jquery in BIRT project.
I've tried the attached patch with described instructions and it works well. I further tried with the latest jQuery 1.4.2+ui-1.82, but seems not working. I will file an IP review request for jQuery 1.3.2+ui-1.7.2 first.
https://dev.eclipse.org/ipzilla/show_bug.cgi?id=4292
Can any one please give a step by step process on how to add this widget to the eclipse BIRT source code. Thank you
Created attachment 188775 [details] source files to extend BIRT with a JQ datepicker (minimal selection) Optimized the files committed by Nick. override the default BIRT-viewer files with the one in the attached "birt_jq-datepicker_customization.zip"-file Remarks: * valid for BIRT-viewer v. 2.6.1 * default configured for Dutch (to be parameterized) * Had to use JQuery 1.3.2 + JQuery UI 1.7.3 (JQ 1.5 + JQ UI 1.8.9 conflicts with PrototypeJS 1.4 used by BIRT)
Is there an estimated release date for Target Milestone 3.7.0? To the best of my knowledge, the current version of BIRT (and the BIRT Viewer) is 2.6.2. If 3.7.0 is relative to the current numbering scheme, a date picker in the BIRT Viewer would still not be available any time soon.
(In reply to comment #25) > Is there an estimated release date for Target Milestone 3.7.0? To the best of > my knowledge, the current version of BIRT (and the BIRT Viewer) is 2.6.2. If > 3.7.0 is relative to the current numbering scheme, a date picker in the BIRT > Viewer would still not be available any time soon. Release date for 3.7 is end of June 2011, along with the Indigo Eclipse release. However, we need to pass the IP review of JQuery by the Eclipse foundation to include this patch in BIRT download. In the meantime, you can incroporate the patch attached to this bugzilla in your application if you can use Jquery in your app.
Created attachment 194715 [details] fixed source files to extend BIRT with a JQ datepicker (minimal selection) fixed bug when normal TextBoxFragment, added extra check in "TextBoxParameterFragment.jsp": if (parameterDateFormatJQ!=null) {
Still need wait for IP review result of jQuery UI library.
Created attachment 210596 [details] fixed source files to extend BIRT with a JQ datepicker (minimal selection, v.2) finetuned Datepicker (allows now the use the <enter>-key on datefields to submit the form)
(In reply to comment #29) also added a year-selector (+/- 2 yrs)
This patch works great. But I require a newer version of jQuery UI. Has anybody found a way to get this work with 1.8.x or greater?