using smartgwt 4.0
I am using FilterBuilder and link it with datasource
i need to use the filterbuilder criteria so when i select date today
the criteria created from FilterBuilder will have value today i need date not today
the java script object created is
{
"_constructor":"AdvancedCriteria",
"operator":"and",
"criteria":[
{
"fieldName":"createdDate",
"operator":"equals",
"value":{
"_constructor":"RelativeDate",
"value":"$today"
}
},
{
"operator":"or",
"criteria":[
{
"fieldName":"customer.active",
"operator":"equals",
"value":false
},
{
"fieldName":"customer.active",
"operator":"equals",
"value":true
}
],
"anyCriteria":true,
"_constructor":"AdvancedCriteria"
}
]
}
I am using FilterBuilder and link it with datasource
i need to use the filterbuilder criteria so when i select date today
the criteria created from FilterBuilder will have value today i need date not today
the java script object created is
{
"_constructor":"AdvancedCriteria",
"operator":"and",
"criteria":[
{
"fieldName":"createdDate",
"operator":"equals",
"value":{
"_constructor":"RelativeDate",
"value":"$today"
}
},
{
"operator":"or",
"criteria":[
{
"fieldName":"customer.active",
"operator":"equals",
"value":false
},
{
"fieldName":"customer.active",
"operator":"equals",
"value":true
}
],
"anyCriteria":true,
"_constructor":"AdvancedCriteria"
}
]
}