I don't know if is possible this:
I have a list Form. One field called Exclude is editable (Text 50) and in OnValidate for this field in the Form is called a new Function.
This Function is in the Table with a local variable to the same Table (lvrec). This function do this:
Primary Key in table is "Document No.", "Line No."
lvrec.SETRANGE("Document No.", DocNo);
When i input a value in Exclude field in Form, records for the same Document No. are deleted but give this error:
The Sale Detail does not exist.
Identification fields and values:
Document No.='DOC0001',Line No.='10000'
I try CurrForm.UPDATE, RESET... But anything is wrong recovering form record...