PDA

View Full Version : Problem in recovering the value of the timefield



gigofizz
24 Jan 2012, 7:05 AM
I have a problem retrieving value in the timefield
30956

Thank you for your help.

jay@moduscreate.com
24 Jan 2012, 8:57 AM
Stating that you have a problem doesn't help us figure out why you are having the problem. Could it be a field name to model mapping issue?

gigofizz
24 Jan 2012, 10:19 AM
I mention (to you) the important points as follows.

I have the following code:

View (Edit.js):


{xtype:'timefield',
name: 'eve_hora',
margins: '0 0 0 6',
labelWidth: 30,
fieldLabel: this.locale.module.activities.form.hour,
flex: 1,
allowBlank: false,
//minValue: '7:00',
//maxValue: '20:00',
//increment: 30,
format: "H:i:s A",
//parse: "g:i:s A"}


View (Grid.js):


{header: this.locale.module.activities.columns.hevent,
dataIndex: 'eve_hora',
//format : 'H:i',
sortable: true,
flex: 1}


Model


fields: [{name: 'eve_fecha',
type: 'date'
},
{name: 'eve_hora'
}]




Thank you for your help.