DATE BETWEEN component in Queryform » History » Version 1
  Guanji Wang, 29/02/2016 16:08 
  
| 1 | 1 | Guanji Wang | h1. FIX BUG FOR DATE BETWEEN component in Queryform | 
|---|---|---|---|
| 2 | 1 | Guanji Wang | |
| 3 | 1 | Guanji Wang | h2. The bug for setting default value in the component DATE_BETWEEN | 
| 4 | 1 | Guanji Wang | |
| 5 | 1 | Guanji Wang | >*  From the captured photo, we can see we can't set the default value to the date filter, we need to improve the user experience and set the default value like {$TODAY} +/- x according to the user require. | 
| 6 | 1 | Guanji Wang | !Selection_049.png! | 
| 7 | 1 | Guanji Wang | |
| 8 | 1 | Guanji Wang | |
| 9 | 1 | Guanji Wang | h2. Fix of the bug | 
| 10 | 1 | Guanji Wang | |
| 11 | 1 | Guanji Wang | >* 1st - workspace/client-admin/js/forms/componentsAdminDef/oneParam/DateBetween.js, replace 3 lines of code | 
| 12 | 1 | Guanji Wang | |
| 13 | 1 | Guanji Wang | !Selection_058.png! | 
| 14 | 1 | Guanji Wang | |
| 15 | 1 | Guanji Wang | >* 2nd - add new js with the path: workspace/client-public-3.0/js/widget/date/DateFieldWithToday.js | 
| 16 | 1 | Guanji Wang | |
| 17 | 1 | Guanji Wang | !Selection_055.png! | 
| 18 | 1 | Guanji Wang | !Selection_056.png! | 
| 19 | 1 | Guanji Wang | !Selection_057.png! | 
| 20 | 1 | Guanji Wang | |
| 21 | 1 | Guanji Wang | >* 3rd - check the new Queryform and test to set default value for the date_obs | 
| 22 | 1 | Guanji Wang | !Selection_054.png! | 
| 23 | 1 | Guanji Wang | |
| 24 | 1 | Guanji Wang | |
| 25 | 1 | Guanji Wang | >* you can download the file 'DateFieldWithToday.js' directly |