PDA

View Full Version : [SOLVED] form.load DateField and trackResetOnLoad



Dumbledore
25 Apr 2008, 4:11 AM
Hi there,

i have trouble with the automatic filling of a datefield in a form via JSON.


this.productForm = new Ext.form.FormPanel({
id: 'productForm',
trackResetOnLoad: true,
monitorValid : true,
disabled: true,

i use trackResetOnLoad. After i load the fields via form.load() all values of all fields display the correct values. But if i call in Firebug



Ext.getCmp('productForm').getForm().findField('product_visible_from').getValue();

the output is "Mon Sep 29 1930 00:00:00 GMT+0200" instead of the displayed value.

Is it not possible to load datevalues via JSON and form.load()?


Bye, Dumbledore

Dumbledore
26 Apr 2008, 1:03 AM
it is an Ext Bug... Fix is here:

http://www.extjs.com/forum/showthread.php?t=33112