I have a subgrid looks up records to add to the grid itself. The records being added might be an invalid record. I use the onload event handler to figure out whether the record being added is valid or not. If its invalid the goal is to set up an error message to indicate that the record is invalid and not to save. When I add a new record the sub grid automatically saves regardless if the added record is correct or not. I tried adding the prevent auto save function into the form.
function preventAutoSave(econtext){
var eventArgs = econtext.getEventArgs(); if (eventArgs.getSaveMode() == 70 || eventArgs.getSaveMode() == 2) { eventArgs.preventDefault(); } }
It still doesn't stop the subgrid from autosaving its results. Since I can't create a view without invalid records the only option was to check if the record is invalid as it is added in. Is there a way to disable the subgrid autosaving
*This post is locked for comments