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 Prefixes for Report Labels in Report Extensions. #259

Open pri-kise opened 2 years ago

pri-kise commented 2 years ago

No Prefix/Suffix is added to Labels of Report Extensions

waldo1001 commented 2 years ago

Labels? You have an example?

pri-kise commented 2 years ago

e.g.

reportextension 50000 "XXX Put-away List" extends "Put-away List"
{

    rendering
    {
        layout("XXX Put-Away List")
        {
            Caption = 'XXX Put-Away List';
            LayoutFile = './src/General/ReportExt/PutAwayList.rdlc';
            Type = RDLC;
        }
    }

    labels
    {
        WhseActLineSourceCaptionTest = 'Src.';
    }
}

Not Prefix is added to `WhseActLineSourceCaptionTest `.
waldo1001 commented 2 years ago

Hm - never realized this had to be affixed.. . I don't get any warnings either - so now I'm wondering what I'm not seeing?

Do you have a reference?

Doing so will be difficult, by the way .. the text is far too generic for regex, so it needs quite some additional parsing :(

pri-kise commented 2 years ago

Well I couldn't find any reference either. But as soon as start adding a label with the same name as the BaseApp. I receive an error. image https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/diagnostics/diagnostic-al384

I created an issue https://github.com/microsoft/AL/issues/7141, that the rule AS0098 should validated on new labels, too.