I have a table called custom table with 7 fields:
- Custom Code datatype: Code;
- Custom Picture datatype: BLOB;
- Expiry Date of type: Date;
- Toxity of type option the options are: , Caution, Danger, and Hazardous;
- Custom Number of datatype: integer;
- Custom Description of type: text and
- Commission of type decimal.
I need to write a codeunit that will be called in the C/AL of the custom table that will transfer user options to the C/AL code.
From the option list the code works perfectly on the onValidate() function: