Skip to Content
0
Aug 19, 2015 at 07:23 AM

Save Failed error when deleting a BO instance

26 Views

Hi Experts,

This is a weird one.

Summary:

Validation:OnSave - is blocking the deletion of the BO.

Scenario:

I have written a SalesQuote extension with a couple of extra fields. One of the fields is a dropdown list that should have a selection before user can save the BO. This was accomplished using the standard code in the BeforeSave event:

BeforeSave:

if(this.ExampleField.IsInitial())

{

this.allowSave = false; //allowSave is defined in the BO extension

}

else {this.allowSave= true}

Validation:OnSave:

return this.allowSave;

This is working perfectly fine when saving a new BO instance (salesQuote in this example) or modifying the existing SalesQuote. But I can't delete the BO's anymore from the OWL screen.

After Selecting a BO in the OWL screen and clicking "Delete" the "Save Failed" error comes up and after refreshing the list the BO is still available.

I have tried a placing the true/false logic in the after modify or even in the OnSave event itself, still won't let me delete the BO.

Any ideas? Do I miss something obvious?

Cheers,

Paul