AL icon indicating copy to clipboard operation
AL copied to clipboard

PromotedActionCategories / PromotedActionCategoriesML does not work as expected.

Open calcifieddeveloper opened this issue 7 years ago • 48 comments

Hi,

Describe the bug

PromotedActionCategories / PromotedActionCategoriesML does not work as expected.

To Reproduce

Created a Page Extension in a container and a online Sandbox. I have added a promoted Category but it does show with either PromotedActionCategories = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction;

Or

PromotedActionCategoriesML = ENA = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction', ENZ = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction', ENU = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction';

            action(NewFunctionAction)
            {
                ApplicationArea = All;
                CaptionML = ENU = 'NewFunctionItem',
                        ENA = 'NewFunctionItem',
                        ENZ = 'NewFunctionItem';
                Image = ElectronicRegister;
                Promoted = true;
                PromotedCategory = Category12;
                PromotedIsBig = true;
            }

Expected behavior I expect the new caption to be seen, but it is not.

5. Versions: Version: Platform 15.0.36985.0 + Application 15.0.36626.37063 AL Language 4.0.184307

calcifieddeveloper avatar Oct 21 '19 04:10 calcifieddeveloper

Hi @calcifieddeveloper, can you elaborate a bit more about what you are getting in the webclient (maybe adding a screenshot?) and what you would expect to see?

qutreson avatar Oct 21 '19 07:10 qutreson

Hi, Sure.

image

I would expect if I have new promoted actions defined as Category12 that the caption should show as "NewFunction"

calcifieddeveloper avatar Oct 22 '19 06:10 calcifieddeveloper

Anyone have any ideas ?

calcifieddeveloper avatar Oct 23 '19 08:10 calcifieddeveloper

Hi! We could not reproduce. The following code produces the expected result.


pageextension 50100 CustomerListExt extends "Customer List"
{
    PromotedActionCategoriesML = ENA = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction',
                                  ENZ = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction',
                                  ENU = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction';

    // PromotedActionCategories = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction';

    actions
    {
        addlast("&Customer")
        {
            action(NewFunctionAction)
            {
                ApplicationArea = All;
                CaptionML = ENU = 'NewFunctionItemENU',
                        ENA = 'NewFunctionItemENA',
                        ENZ = 'NewFunctionItemENZ';

                Image = ElectronicRegister;
                Promoted = true;
                PromotedCategory = Category12;
                PromotedIsBig = true;

                trigger OnAction()
                begin

                end;
            }
        }
    }
}

image

AndreyKorepanov avatar Oct 25 '19 14:10 AndreyKorepanov

Could you try the code above, if the problem is still there please provide any additional info could help us to get a repro: the source code/project, other extensions etc. Thanks.

AndreyKorepanov avatar Oct 25 '19 14:10 AndreyKorepanov

Hi, Please find attached a project that can replicate the issue ALProject1.zip

calcifieddeveloper avatar Oct 29 '19 08:10 calcifieddeveloper

Hi Andrey, Any update ?

calcifieddeveloper avatar Oct 30 '19 08:10 calcifieddeveloper

Hi @calcifieddeveloper, not yet. We are working on it and I'll let you know when we have anything new as soon as possible.

AndreyKorepanov avatar Oct 30 '19 10:10 AndreyKorepanov

Thanks @AndreyKorepanov

calcifieddeveloper avatar Oct 30 '19 12:10 calcifieddeveloper

Hi @calcifieddeveloper I've tested your project and it works as expected on my side, please find the screenshot below (the only thing I changed is the CreateFile action - I substituted it with the CreateApprovalWorkflow, to be able to compile it). I can not see any problems here. The only my guess regarding the "Category 12" title displaying (see the first your screenshot) is could it be that you are using different Regional & Language settings, not listed in the PromotedActionCategoriesML?
image

AndreyKorepanov avatar Oct 31 '19 12:10 AndreyKorepanov

Hi, Sorry, I still don't get the expected result with this code. Category12 ALProject1.zip

calcifieddeveloper avatar Nov 06 '19 07:11 calcifieddeveloper

@calcifieddeveloper what localization of the application are you using? Is there a specific docker tag that you are using or is it a local installation?

atoader avatar Nov 06 '19 08:11 atoader

Yes indeed, I am using this one : mcr.microsoft.com/businesscentral/sandbox:au

calcifieddeveloper avatar Nov 06 '19 22:11 calcifieddeveloper

@calcifieddeveloper @atoader I have same issue on docker image: mcr.microsoft.com/businesscentral/sandbox:us-ltsc2016 But it works good on docker image mcr.microsoft.com/businesscentral/sandbox:ltsc2016

monchangg avatar Nov 08 '19 06:11 monchangg

Thanks @monchangg.

@atoader any ideas ?

calcifieddeveloper avatar Nov 11 '19 00:11 calcifieddeveloper

Tested again on this image bcinsider.azurecr.io/bcsandbox-master:au-ltsc2019 (pulled this morning) with the same code and I get the same result.

calcifieddeveloper avatar Nov 11 '19 04:11 calcifieddeveloper

We have identified the root cause a week ago. We have a fix in the pipeline and we plan to ship it for 15.2

atoader avatar Nov 28 '19 19:11 atoader

@atoader Can I know when the 15.2 will be released?

monchangg avatar Dec 03 '19 06:12 monchangg

Any news regarding this bug?

GTimmers avatar Feb 26 '20 08:02 GTimmers

Issue still present... Any updates?

Drakonian avatar Apr 06 '20 03:04 Drakonian