Hi
We are using v8.3p_2013-03-21/PowerEdition Deployment 2013-03-21
I have a datasource feeding a listgrid. Among others it has a datetime field and another field of type integer on which I want to do initial filtering.
I want to provide an initialcriteria for the listgrid for today i.e. from 04/19/2013 00:00 to 04/19/2013 23:59 and on the other integer type field.
This is what I tried :
initialCriteria:[
{
fieldName: "todotype", value:1
},
{ fieldName: "todoplandate", operator: "greaterOrEqual", value: (new Date(new Date().setUTCHours(00, 00, 00, 0))) },
{ fieldName: "todoplandate", operator: "lessOrEqual", value: (new Date(new Date().setUTCHours(23, 59, 59, 0))) }
],
but its not working as expected.
Can you please help me figure this out?
We are using v8.3p_2013-03-21/PowerEdition Deployment 2013-03-21
I have a datasource feeding a listgrid. Among others it has a datetime field and another field of type integer on which I want to do initial filtering.
I want to provide an initialcriteria for the listgrid for today i.e. from 04/19/2013 00:00 to 04/19/2013 23:59 and on the other integer type field.
This is what I tried :
initialCriteria:[
{
fieldName: "todotype", value:1
},
{ fieldName: "todoplandate", operator: "greaterOrEqual", value: (new Date(new Date().setUTCHours(00, 00, 00, 0))) },
{ fieldName: "todoplandate", operator: "lessOrEqual", value: (new Date(new Date().setUTCHours(23, 59, 59, 0))) }
],
but its not working as expected.
Can you please help me figure this out?
Comment