Since upgrade from smart gwt 3 to smart gwt5 (current version is 5.0p.2016-06-25) we noticed strange behavior for the component RelativeDateItem. (Browser: FF 26 version and other)
Unfortunately, I can't find any showcases with such component.
We create 2 RelativeDateItem items on the forms :one is with setRangePosition(RelativeDateRangePosition.START) and another one with setRangePosition(RelativeDateRangePosition.END) and both of them have type "date".
But in our ds.xml file we have type as "datetime".We use this fields, as criteria for fetch.We implement it like this because we don't want to allow user to see time and to change it.(only date should be visible in the input component).
We also noticed if we change type to "datetime" in RelativeDateItem component everything is ok, but user can change the time. We only want that user select date from calendar and automatically (as we set rangeposition) this date will be transformed to the start of day (00:00:00) and to the end of the day(23:59:59) accordingly. But by default we have 00:00:00 for both items.
Can you please explain such behavior?Is it a bug?Or it was changed by design?
In smartgwt 3 version it works good.
I just wanted also to mention that if to compare request from RPC console for smart gwt 3 version and smart gwt 5 version then we can see the next difference:
smart gwt 3 version (date and time in the request):
{
dataSource:"datasourceName",
operationType:"fetch",
componentId:"isc_BasicStatisticsGrid_Card_statistics_grid_0",
data:{
operator:"and",
criteria:[
{
operator:"greaterOrEqual",
value:"2016-06-28T00:00:00",
fieldName:"datetime_from"
},
{
operator:"lessOrEqual",
value:"2016-07-04T23:59:59",
fieldName:"datetime_to"
}
]
}
smart gwt 5 version (only date in request):
{
dataSource:"datasourceName",
operationType:"fetch",
componentId:"isc_BasicStatisticsGrid_Card_statistics_grid_0",
data:{
operator:"and",
criteria:[
{
operator:"greaterOrEqual",
value:"2016-06-28",
fieldName:"datetime_from"
},
{
operator:"lessOrEqual",
value:"2016-07-04",
fieldName:"datetime_to"
}
]
}
Unfortunately, I can't find any showcases with such component.
We create 2 RelativeDateItem items on the forms :one is with setRangePosition(RelativeDateRangePosition.START) and another one with setRangePosition(RelativeDateRangePosition.END) and both of them have type "date".
But in our ds.xml file we have type as "datetime".We use this fields, as criteria for fetch.We implement it like this because we don't want to allow user to see time and to change it.(only date should be visible in the input component).
We also noticed if we change type to "datetime" in RelativeDateItem component everything is ok, but user can change the time. We only want that user select date from calendar and automatically (as we set rangeposition) this date will be transformed to the start of day (00:00:00) and to the end of the day(23:59:59) accordingly. But by default we have 00:00:00 for both items.
Can you please explain such behavior?Is it a bug?Or it was changed by design?
In smartgwt 3 version it works good.
I just wanted also to mention that if to compare request from RPC console for smart gwt 3 version and smart gwt 5 version then we can see the next difference:
smart gwt 3 version (date and time in the request):
{
dataSource:"datasourceName",
operationType:"fetch",
componentId:"isc_BasicStatisticsGrid_Card_statistics_grid_0",
data:{
operator:"and",
criteria:[
{
operator:"greaterOrEqual",
value:"2016-06-28T00:00:00",
fieldName:"datetime_from"
},
{
operator:"lessOrEqual",
value:"2016-07-04T23:59:59",
fieldName:"datetime_to"
}
]
}
smart gwt 5 version (only date in request):
{
dataSource:"datasourceName",
operationType:"fetch",
componentId:"isc_BasicStatisticsGrid_Card_statistics_grid_0",
data:{
operator:"and",
criteria:[
{
operator:"greaterOrEqual",
value:"2016-06-28",
fieldName:"datetime_from"
},
{
operator:"lessOrEqual",
value:"2016-07-04",
fieldName:"datetime_to"
}
]
}
Comment