Validation of BusComp_PreWriteRecord is getting triggered if tries to navigate to other view but on
Hi All,
we have a validation on BusComp_PreWriteRecord event of Service Request business component.
Its working perfectly fine when user hits Ctrl+S
But if tries to navigate to another view, error message is thrown but once user hits Ok then system allows user to navigate to another view bypassing the validation.
However if user hits Ctrl+S and then user tries to move to another view its does not allow till user fill required details or his Esc.
Please suggest.
sample code:
if((vSRType == "Contract-Scheduled" || vSRType == "Contract-Unscheduled") && this.GetFieldValue("CDOS Rate Eng") =="" && vRenEng == "Dealer")
{
throw("'Rate' is Mandatory Field");