1

Hey,


When we are using an enum in a validate for example and want to attribute a value to the field it's expected to use something like:


Salesheader.Validate("Document Type",Salesheader."Document Type"::"Blanket Order")


My idea is, given the field in validate, the compiler automatically assumes that you will give a value in that enum and the part "Salesheader."Document Type"::" is not needed. So something like this would be valid:


Salesheader.Validate("Document Type", "Blanket Order")


The validate was an example. The same for SetRange, SetFilter, etc

Best regards,

Category: Development
STATUS DETAILS
New