- In Visual Studio Code, open the alExtensibleAppProject folder. In Explorer, select Transaction Entry.al and add the following field in Editor:
field(10; Status; Enum "Transaction Status"){}
- In Explorer, create a new file named Transaction Status.al, and in Editor, create a new enum object. Let's also add the New and Verified values to the enum:
enum 50000 "Transaction Status"{ Extensible = true; value(0; New) { Caption = 'New'; } value(1; Verified) { Caption = 'Verified'; }}
You can use the tenum snippet to quickly create a new enum object.
- Now, add the new field to the Transaction Worksheet.al file, after the Suggested Unit Price field:
field(Status; Status){ ApplicationArea = All;}
- Let's add a check to make sure ...