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

Date problem on FilterBuilder

$
0
0
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"
}
]
}

Viewing all articles
Browse latest Browse all 4756

Trending Articles