Hi Isomorphic,
We have faced with strange behaviour on the RelativeDateItem.
We have a RelativeDateItem on dynamic form with ValuesManager and setSaveOnEnter(true) on the form. Also we have SubmitValuesHandler on the ValuesManager which does fetch on the grid according to inserted values from the form.
When we change quantity field in relativeDateItem (selecting n days ago before) via keyboard and press enter it works wrong.Sometimes it takes previous inserted value, sometimes doesn't recognized at all that value was changed and does nothing.
For better explanation I changed the existing Date Range Filtering ShowCase. I added changeHandler and changedHandler to the RelatiiveDateItem and call inside SC.say("") to be sure that they are not called or called only once.
This is java file which I changed: GridDateRangeFilterSample.java
Steps to reproduce the problem:
1)click on 'Nationhood', input 'n', select 'N days ago' by mouse!, verify you see the event changed message, click 'Tab'
2)input some value into quantity field (e.g.5) (it should be inserted 1 before)
3)click enter - verify you don't see the change event message and there is fetch request with incorrect criteria in smart gwt console (if you input 5 then it will be previous value 1 days ago: the current date is 22/08/2016 so it will show 21/08/2016)
4)click on quantity field or use tab and inline old value (use ctr+A) and insert new value (e.q.4)
5)press enter - verify you don't see change event message until you click outside the form and there is fetch request in smart gwt console with incorrect criteria (if you click 1 it will be 4days ago from previous inserted value: the current date is 22/08/2016 so it will show 21/08/2016 - 4 days ago = 17/08/2016)
Another case:
6) click on quantity field or use tab and clear old value via backspace and insert new value (e.g.10)
5)press enter - verify you don't see change event message and there is no fetch request in console, even if you see the message "we are doing fetch".But there is error messages in gwt dev mode console.
This is print screen of consoles:
The problem above is occurred with version 5.0p.2016-08-12 version and only with IE browser. We noticed this problem using version of IE is 11.0.9600.18376CO and also on 11.0.9600.18230C0.
It works better in FF and Chrome.At least we see the correct criteria in dev console and fetch request was executed after backspace.
We have faced with strange behaviour on the RelativeDateItem.
We have a RelativeDateItem on dynamic form with ValuesManager and setSaveOnEnter(true) on the form. Also we have SubmitValuesHandler on the ValuesManager which does fetch on the grid according to inserted values from the form.
When we change quantity field in relativeDateItem (selecting n days ago before) via keyboard and press enter it works wrong.Sometimes it takes previous inserted value, sometimes doesn't recognized at all that value was changed and does nothing.
For better explanation I changed the existing Date Range Filtering ShowCase. I added changeHandler and changedHandler to the RelatiiveDateItem and call inside SC.say("") to be sure that they are not called or called only once.
This is java file which I changed: GridDateRangeFilterSample.java
Steps to reproduce the problem:
1)click on 'Nationhood', input 'n', select 'N days ago' by mouse!, verify you see the event changed message, click 'Tab'
2)input some value into quantity field (e.g.5) (it should be inserted 1 before)
3)click enter - verify you don't see the change event message and there is fetch request with incorrect criteria in smart gwt console (if you input 5 then it will be previous value 1 days ago: the current date is 22/08/2016 so it will show 21/08/2016)
4)click on quantity field or use tab and inline old value (use ctr+A) and insert new value (e.q.4)
5)press enter - verify you don't see change event message until you click outside the form and there is fetch request in smart gwt console with incorrect criteria (if you click 1 it will be 4days ago from previous inserted value: the current date is 22/08/2016 so it will show 21/08/2016 - 4 days ago = 17/08/2016)
Another case:
6) click on quantity field or use tab and clear old value via backspace and insert new value (e.g.10)
5)press enter - verify you don't see change event message and there is no fetch request in console, even if you see the message "we are doing fetch".But there is error messages in gwt dev mode console.
This is print screen of consoles:
The problem above is occurred with version 5.0p.2016-08-12 version and only with IE browser. We noticed this problem using version of IE is 11.0.9600.18376CO and also on 11.0.9600.18230C0.
It works better in FF and Chrome.At least we see the correct criteria in dev console and fetch request was executed after backspace.
Comment