Skip to Content
0
Nov 08, 2018 at 05:27 PM

User input during Validation-OnSave absl

100 Views

I have some validation that has been placed in the Validation-OnSave.absl of the SalesOrder business object.

The validation is simple and just checks that the FreightChargeAmount is not zero. If it is zero then it stops the save of the sales order.

var currenttotalvalues = this.TotalValues.GetFirst();

if (currenttotalvalues.FreightChargeAmount.content == 0)

{

raise Freight_Message.Create("E");

return false;

}

return true;

I've been asked to change this so that instead of blocking the save it opens a window which asks the user if this is acceptable or not. If it is acceptable then the save should go ahead, if not the save should be blocked as it is currently.

Is this possible?

If it is how would I do it?