This support forum belongs to the Query Builder Gallery Module.
Query Builder has a bug tracker here: http://github.com/jafl/yui-modules/issues
| Page 1 of 2 | [ 19 posts ] | Go to page 1, 2 Next |
|
Hi John,
I am trying to plug calendar in the query builder. The way I am thinking to implement this First Identify which variable user has selected for that criterion row If the variable needs calendar then disable the value input box and put icon at the side of this box for popup calendar. My question is what is the best way to identify what variable user has selected. If there is other way to implement it please let me know Mayank |
|
I'm trying to find the time to build a date range plugin for Query Builder. (I just need to finish my DateTime gallery module first.) The plugin will still use input fields, to allow the user to type if they prefer that. A calendar will pop up when the input field gets focus.
Your method can work, too, but you need some way to display the selected date when the calendar popup is not visible. |
|
Hi John,
That's great that you are planning to build date picker for query builder. mean time I came up with following solution http://ideone.com/Kr454 1) I am extending QueryBuilder and overided appendNew method where I am firing changeSelect event if some one changes the newly appended selected box (which contains all the keys). 2) I am handling that changeSelect event such that if selected keys needs the date picker then I am creating one. After that just syncing between calendar date and value text. Mayank |
|
The code in appendNew doesn't account for removing a row from the list of filters. If the user removes a row, count needs to be decremented. Otherwise, selectNode will be null next time the user adds a row.
|
|
Also, you should really implement the Calendar as a QueryBuilder plugin. You could base it on the QueryBuilder.String class:
http://jafl.github.com/yui3-gallery/yui ... ng.js.html |
|
Thanks John,
I thought of making it as plugin but was looking for quick workaround. Anyways I've created it as plugin now http://ideone.com/a9yeT Now for calendar I've following configuration Code: calendar:[ { value: Operators.EQUALS, text:'Is' }, { value:Operators.BETWEEN, text:'Between', multipleValue:true } ] |
|
Very nice! My only suggestion is that you switch from 'click' on the input to 'focus'.
|
|
Thanks John !
I've changed it to focus event |
|
Hi John,
The only issue now I've that Query builder is created using table now because of calendar BETWEEN operator I have two values for the date variable and other variable has one value that causing unequal number of <td> tags for under <tr> tags and thats causing some formatting issue. Do you have any idea how to handle this problem ? Mayank |
|
It should push the + and - buttons further to the right. That is by design. Are there other formatting issues?
|
| Page 1 of 2 | [ 19 posts ] | Go to page 1, 2 Next |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group