Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sencha touch Sencha Formfields传递空字段_Sencha Touch_Extjs_Sencha Touch 2 - Fatal编程技术网

Sencha touch Sencha Formfields传递空字段

Sencha touch Sencha Formfields传递空字段,sencha-touch,extjs,sencha-touch-2,Sencha Touch,Extjs,Sencha Touch 2,我正在学习Sencha Touch。我以前用一个表单创建了这个应用程序,效果很好 现在我正在开发一个新的小测试应用程序,我从另一个应用程序复制代码,它只将空变量传递给webservice 观点: <!-- language: lang-js --> Ext.define('Gasoline.view.InsertTankTrip', { requires: [ 'Ext.form.FieldSet' ], extend: 'Ext.form.Panel', xtyp

我正在学习Sencha Touch。我以前用一个表单创建了这个应用程序,效果很好

现在我正在开发一个新的小测试应用程序,我从另一个应用程序复制代码,它只将空变量传递给webservice

观点:

<!-- language: lang-js -->
    Ext.define('Gasoline.view.InsertTankTrip', {
requires: [
    'Ext.form.FieldSet'
],

extend: 'Ext.form.Panel',
xtype: 'inserttankpanel',
id: 'insertTankForm',

config: {
    title: 'Insert Tank Trip',
    iconCls: 'add',
    url: 'contact.php',
    items:[
        {
            xtype: 'fieldset',
            title: 'Insert Tank Trip',
            instructions: '(Make sure the info is correct!)',


            items:[
                {
                    xtype: 'datepickerfield',
                    label: 'Date',
                    name: 'date',
                    value: new Date()
                },
                {
                    xtype: 'textfield',
                    label: 'Amount',
                    name: 'amount',
                    minValue:-9007199254740992,
                    maxValue: 9007199254740992
                }
            ]
        },{
            xtype: 'button',
            text: 'Send',
            ui: 'confirm',
            action: 'insertTankSubmit'

        }
    ]
}
});
这会将以下内容发送到webservice(目前不存在,我只是使用开发人员工具检查)

日期:2012-07-26T17:02:16 金额:

所以日期会被发送,号码不会

如果我为数字填写一个标准值。。。它会被发送,但如果您键入了某些内容,它仍然不会发送使用的内容

xtype: 'numberfield'
而不是

xtype: 'textfield'

我尝试过许多解决方案……但都不奏效

最后我删除了一切。。。用完全相同的方式编码,然后开始工作

xtype: 'textfield'