4
Hello,
Wondering if it is possible when implementing an Interface on an Enum, to add a property to help declare one or more values with no implementation?

Explanation:
------------------------------------------------------------------------------------------------------------------------
The problem is whenever an Enum implements an interface then each of the enum's values should have an implementation or a DefaultImplementation must be declared on the Enum level.

However, consider the following enum with the below example:

- "None"
- "Invoice"
- "Credit Memo"
- "Shipment"
- "Receipt"

In this case, the "None" value should not have any interface implementation since it just means nothing is selected. Currently the only way to circumvent this issue is to create a "shell" codeunit which implements the same interface and its relative functions with no logic and assign that codeunit to the "None" value.

It would be nice if instead something similar is possible:

Value(1; "None")
{
Implementation = None;
}
Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team