Project

General

Profile

DATE BETWEEN component in Queryform » History » Version 1

Anonymous, 29/02/2016 16:08

1 1 Anonymous
h1. FIX BUG FOR DATE BETWEEN component in Queryform
2 1 Anonymous
3 1 Anonymous
h2.  The bug for setting default value in the component DATE_BETWEEN
4 1 Anonymous
5 1 Anonymous
>*  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 Anonymous
!Selection_049.png!
7 1 Anonymous
  
8 1 Anonymous
9 1 Anonymous
h2. Fix of the bug
10 1 Anonymous
11 1 Anonymous
>* 1st - workspace/client-admin/js/forms/componentsAdminDef/oneParam/DateBetween.js, replace 3 lines of code
12 1 Anonymous
13 1 Anonymous
!Selection_058.png!
14 1 Anonymous
15 1 Anonymous
>* 2nd - add new js with the path: workspace/client-public-3.0/js/widget/date/DateFieldWithToday.js
16 1 Anonymous
17 1 Anonymous
!Selection_055.png!
18 1 Anonymous
!Selection_056.png!
19 1 Anonymous
!Selection_057.png!
20 1 Anonymous
21 1 Anonymous
>* 3rd - check the new Queryform and test to set default value for the date_obs
22 1 Anonymous
!Selection_054.png!
23 1 Anonymous
24 1 Anonymous
25 1 Anonymous
>* you can download the file 'DateFieldWithToday.js' directly