BartPermentier / al-toolbox

Adds Features to the AL Language Extension
MIT License
13 stars 9 forks source link

Disable Promoted properties on the raction snippet in runtime 10+ #94

Closed fvet closed 1 year ago

fvet commented 1 year ago

The raction snippet currently suggests:

action(ActionName)
            {
                ApplicationArea = All;
                Caption = 'Caption', comment = 'nl-BE="YourLanguageCaption"';
                Promoted = true;
                PromotedCategory = Process;
                PromotedIsBig = true;
                Image = Image;

                trigger OnAction()
                begin

                end;
            }

If the app.json file has a runtime 10 or higher AND contains the NoPromotedActionProperties setting, then the raction snippet should no longer contain the Promotedxxx properties.

action(ActionName)
            {
                ApplicationArea = All;
                Caption = 'Caption', comment = 'nl-BE="YourLanguageCaption"';
                Image = Image;

                trigger OnAction()
                begin

                end;
            }
dsaveyn commented 1 year ago

Thank you for reporting this. This will be included in the next release.