-3
当我输入0到我的ExtJS输入字段(即数字字段)当我保存表格时,我在到数据库的路上得到空值。我有什么特殊的设置,我需要启用0为0对待,而不是像null?我输入0但ExtJS将空值保存到数据库
这里是我的字段代码:
{
xtype: 'numberfield',
itemId: 'testField',
id: 'testField',
fieldLabel: "testField",
fieldStyle: 'text-align: right;',
labelWidth: 320,
labelAlign: 'right',
decimalPrecision: Ext.util.Format.currencyPrecision,
allowBlank: true,
allowDecimals: true,
minValue: 0,
maxValue: 999.9999,
defaultValue: null,
allowNull: true,
hideTrigger: true,
keyNavEnabled: false,
mouseWheelEnabled: false
},
你的领域的名称在哪里?然后打开chrome Web控制台查看发送到服务器的数据,并让我们知道。 – abeyaz