Is there a way to filter a date coloumn in a list grid by inserting only the year and not a full date?
From what i know the isc.DateUtil.createLogicalDate(year, month, day) is called to parse the input value into a date object.
If i wanna filter only by the year, let's say 2017, the parsing fails and the filtering process can't take place because the criteria is empty.
This is the request:
First case has as an input value of 2017 and the second one a full date of 26.01.2018.
{
"_constructor":"AdvancedCriteria",
"operator":"and",
"criteria":[
]
}
Criteria is empty here!
{
"_constructor":"AdvancedCriteria",
"operator":"and",
"criteria":[
{
"fieldName":"lastLogin",
"operator":"equals",
"value":isc.DateUtil.createLogicalDate(2018, 0, 26)
}
]
}
I use smartGWT 5.1.
Thank you,
Marius
From what i know the isc.DateUtil.createLogicalDate(year, month, day) is called to parse the input value into a date object.
If i wanna filter only by the year, let's say 2017, the parsing fails and the filtering process can't take place because the criteria is empty.
This is the request:
First case has as an input value of 2017 and the second one a full date of 26.01.2018.
{
"_constructor":"AdvancedCriteria",
"operator":"and",
"criteria":[
]
}
Criteria is empty here!
{
"_constructor":"AdvancedCriteria",
"operator":"and",
"criteria":[
{
"fieldName":"lastLogin",
"operator":"equals",
"value":isc.DateUtil.createLogicalDate(2018, 0, 26)
}
]
}
I use smartGWT 5.1.
Thank you,
Marius
Comment