Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to set value in DateTimeItem field in filter builder.

$
0
0
Hi,
We have upgraded Smart Gwt-4.0p to Smart Gwt-4.1p(10 March 2015)
Browser : IE10, 11, Google Chrome: 43.0.2357.37 m

In our application we are using "com.smartgwt.client.widgets.form.FilterBuilder" to create user defined filters.
We added this control in a separate window.
We are using datetime filter .For date we are using date util because of localization issue(according to this post http://forums.smartclient.com/showthread.php?t=32016)

Issue :
If user enter the date as 25/05/06, it is getting converted as 0025/05/06 on tab off -wrong
Expected date : 2025/05/06 on tab off

In filterBuilder.addFilterChangedHandler we are converting the datevalue and setting into DateTimeItem field. But it is not working.

getUserDisplayDate() method we are using to convert date.

I have attached code for your reference.
Please let me know how to resolve this issue?

Thanks.

Attached Files
File Type: java FilterCriteriaFieldsDS.java (4.9 KB)
File Type: java TestsmartGwtProject.java (4.8 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles