simonellistonball
24 Apr 2007, 4:05 AM
Has anyone seen anything like this before?
I'm using a rowselect event on one grid to update the contents of another grid by changing the baseParams behind the second grid's data store.
summaryClick: function(item) {
var date = new Date(item.getSelected().get('date'));
example.ds.baseParams = { year: date.format('Y'), month: date.format('m'), day: date.format('d') };
example.ds.reload();
}
However, the post does not pick up the day column.
After some digging I've found this is because the date.format('d') is returning an array eg ['2','5'] for the 25th instead of a string.
Can anyone give me any pointers on why the Ext date class might do this?
Many thanks,
Simon
I'm using a rowselect event on one grid to update the contents of another grid by changing the baseParams behind the second grid's data store.
summaryClick: function(item) {
var date = new Date(item.getSelected().get('date'));
example.ds.baseParams = { year: date.format('Y'), month: date.format('m'), day: date.format('d') };
example.ds.reload();
}
However, the post does not pick up the day column.
After some digging I've found this is because the date.format('d') is returning an array eg ['2','5'] for the 25th instead of a string.
Can anyone give me any pointers on why the Ext date class might do this?
Many thanks,
Simon