PDA

View Full Version : Help with extjs3.4 form submission - Please help



kumar_Rajesh78
11 Dec 2013, 5:06 PM
I have another issue with extjs form submission. The following is my form.
It submits to the correct URL, but when it comes back it does not get into the success block.

Please help.

Thanks a lot.
Rajesh


xtype: 'form',
padding: 0,
margin: 0,
border: false,
timeout: 300,
method:'POST',
url: '/wam-coldfusion/rest/api/simulator/report/refreshReportData',
height: 0,
region: 'north',
monitorValid: true,
standardSubmit: true,
id: 'leverageForm2',
fbar: {
xtype: 'toolbar',
buttonAlign: 'center',
id: 'leverageForm2Toolbar',
items: [
{
xtype: 'button',
text: 'Refresh Report Data',
type: 'submit',
formBind: true,
handler: function() {
Ext.getCmp('leverageForm2').getForm().submit({
waitMsg: 'Submitting for Report Generation ...',
success: function(form, action) {
Ext.Msg.alert('Success', action.result.message);
//window.location.reload();
},
failure: function(form, action) {
Ext.Msg.alert('Failure', 'Export Unsuccessful!');
}
});

}
}
]
}
},


server code:


@POST
@Path("report/refreshReportData")
public void reloadLeverageReportData(){
//do a bunch of stuff
}

bkraut
12 Dec 2013, 1:25 AM
Did you tried to set the scope?

kumar_Rajesh78
12 Dec 2013, 8:50 AM
Thanks for the response.
I have not tried setting the scope. What shall be the scope that I should be setting it.

Gary Schlosberg
19 Dec 2013, 12:23 PM
Also being discussed here:
http://www.sencha.com/forum/showthread.php?278048