waldo1001 / crs-al-language-extension

Make working with the (Dynamics NAV / 365) AL Language easier and more efficient.
MIT License
34 stars 42 forks source link

Support Automatic Prefix / Suffix for new Enum Values in EnumExtensions #262

Open pri-kise opened 1 year ago

pri-kise commented 1 year ago

If create an enum extension that adds new values, I would love a feature, that automatically adds a Prefix to the new Enum Values.

Example Input:

enumextension 50000"XXX Report Selection Usage" extends "Report Selection Usage"
{
    value(50000; "Sales Special Document")
    {
        Caption = 'Sales Special Document';
    }
    value(50001; "Purch.Special Doc. (Excel)")
    {
        Caption = 'Purch.Special Doc. (Excel)';
    }
}

Example Output

enumextension 50000"XXX Report Selection Usage" extends "Report Selection Usage"
{
    value(50000; "XXX Sales Special Document")
    {
        Caption = 'Sales Special Document';
    }
    value(50001; "XXX Purch.Special Doc. (Excel)")
    {
        Caption = 'Purch.Special Doc. (Excel)';
    }
}