ext4我没用过,不小得params:Ext.JSON.encode(form.getValues()) 这句话有问题没有。反正3不行。另外注意参数名的大小写!
解决方案 »
- java,Android视频教程
- hibernate如何多函数查询
- tomcat Address already in use: JVM_Bind<null>:8080
- 怎么查找接口所有实现类
- 如何解决web程序不同浏览器窗口使用同一账号重复登录问题
- 急急 struts 连接池配置怎么不行啊,还有,这种方式好不好用,常用哪种方式
- 新建工程加入spring支持问题
- struts问题:导数据!详细情况请进!
- 菜鸟的问题,有java基础,学会EJB大概要多长时间?
- weblogic可不可以通过写代码来动态创建连接池及数据源啊。
- weblogic应用异常退出 附dump文件内容
- uploadify多文件上传
buttons: [ {
text: '增加',
formBind: true, //only enabled once the form is valid
disabled: true,
handler: function() {
var form = this.up('form').getForm();
var window =this.up('window');
if (form.isValid()) {
form.submit({
success: function(form, action) {
Ext.Msg.alert('增加成功', action.result.msg);
window.close();
store.load();
},
failure: function(form, action) {
Ext.Msg.alert('增加失败', action.result.msg);
}
});
}
}
},{
text: '取消',
handler: function() {
this.up('window').close();
}
}]
gdgl_add_Item:function(button){
var cmpanel=button.up('globalStatisticsView');
var store = cmpanel.getStore();
var myWindow = Ext.create('Ext.window.Window',{
title:'增加联系人',
height: 300,
width: 450,
id:'add_window',
layout: 'form',
modal:true,
items: { // Let's put an empty grid in just to illustrate fit layout
xtype: 'form',
border: false,
url:'gdgl/addmanagers',
layout: 'anchor',
defaults: {
anchor: '100%'
},
defaultType: 'textfield',
items: [{
fieldLabel: '故障时间',
name: 'failuretime',
xtype: 'datefield',
margin:10,
allowBlank:false
},{
fieldLabel: '故障地点',
name: 'failureaddress',
margin:10,
allowBlank: false
},{
fieldLabel: '维修时间',
name: 'repairtime',
xtype: 'datefield',
margin:10,
allowBlank: true
},{
fieldLabel: '维修人',
margin:10,
name: 'maintenanceman',
allowBlank: true
},{
fieldLabel: '完成情况',
margin:10,
name: 'completion',
allowBlank: true
},{
fieldLabel: '故障内容',
margin:10,
name: 'failurecontent',
allowBlank: true
}],
buttons: [ {
text: '增加',
formBind: true, //only enabled once the form is valid
disabled: true,
handler: function() {
var form = this.up('form').getForm();
var window =this.up('window');
if (form.isValid()) {
form.submit({
success: function(form, action) {
Ext.Msg.alert('增加成功', action.result.msg);
window.close();
store.load();
},
failure: function(form, action) {
Ext.Msg.alert('增加失败', action.result.msg);
}
});
}
}
},{
text: '取消',
handler: function() {
this.up('window').close();
}
}]
}
});
myWindow.show();
},
后台没有报错。就是老是插不进去数据,firefox还老是报错