Denin2004
13 Jun 2012, 2:05 PM
Hello!
I declare this form. I set standardSubmit:true. When I press button my URL open in the same page browser.
How submit form in new browser page? I think that I must set action.target = '_blank'.
But I don't understand how I do this.
Ext.define('UsersApp.view.reportTableTab', {
extend: 'Ext.panel.Panel',
alias: 'widget.reportTableTab',
items:[{xtype:'form',
frame: true,
title: 'Date Range',
width: 270,
margin : 20,
url: urlSite+urlPHP+'getContentPage.php?siteState=ConfigSiteTab-SaveEMail&json=1',
standardSubmit:true,
items:[{xtype: 'datefield',
fieldLabel: 'Check In',
id: 'checkIn',
allowBlank: false},
{xtype: 'datefield',
fieldLabel: 'Check Out',
id: 'checkOut',
allowBlank: false}
],
buttons: [{text: 'Calculate',
handler: function(btn){btn.up('form').getForm().submit();}}
]
}]
});
Thanks, Denis.
I declare this form. I set standardSubmit:true. When I press button my URL open in the same page browser.
How submit form in new browser page? I think that I must set action.target = '_blank'.
But I don't understand how I do this.
Ext.define('UsersApp.view.reportTableTab', {
extend: 'Ext.panel.Panel',
alias: 'widget.reportTableTab',
items:[{xtype:'form',
frame: true,
title: 'Date Range',
width: 270,
margin : 20,
url: urlSite+urlPHP+'getContentPage.php?siteState=ConfigSiteTab-SaveEMail&json=1',
standardSubmit:true,
items:[{xtype: 'datefield',
fieldLabel: 'Check In',
id: 'checkIn',
allowBlank: false},
{xtype: 'datefield',
fieldLabel: 'Check Out',
id: 'checkOut',
allowBlank: false}
],
buttons: [{text: 'Calculate',
handler: function(btn){btn.up('form').getForm().submit();}}
]
}]
});
Thanks, Denis.