Hi there,
I am validating using a php file which contains the business rules. If it fails it returns an xml output with the error number and message. If it passed its added into sql, datasource is refresh and a success message is displayed. The problem is I get blank field on the local datasource after each button click. Any suggestions?
Flow:
1. User selects fields and clicks button
2.editForm.update is called which fires off the callback
3. The callback then checks if a error is returned and displays.
The xml output looks like this
I am validating using a php file which contains the business rules. If it fails it returns an xml output with the error number and message. If it passed its added into sql, datasource is refresh and a success message is displayed. The problem is I get blank field on the local datasource after each button click. Any suggestions?
Flow:
1. User selects fields and clicks button
Code:
click:"editForm.update()"...
Code:
editForm.saveData(editForm.updateCallBack);
Code:
updateCallBack: function(dsResponse, data, dsRequest){ if(dsResponse.status >= 1){ isc.warn(data.error); } else{ isc.say('update successful'); //refresh database //drops myData cache for new records myData.data.invalidateCache(); } }
Code:
<response> <status>1</status> <data> <record> <error>Error:Message</error> </record> </data> </response>';
Comment