Get the technical value of an enum

You mayby need to retry the value of an enum.

For example : you have this enum : SalesUpdate::DeliverNow, and you will recover DeliverNow, not the label which can be in French, Dutch, English, …

You can proceed like this :

info(new DictEnum(enumNum(SalesUpdate)).value2Symbol(SalesUpdate::DeliverNow));
Advertisements