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:
- User selects fields and clicks button
click:"editForm.update()"...
2.editForm.update is called which fires off the callback
editForm.saveData(editForm.updateCallBack);
- The callback then checks if a error is returned and displays.
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();
}
}
The xml output looks like this
<response>
<status>1</status>
<data>
<record>
<error>Error:Message</error>
</record>
</data>
</response>';

