AL icon indicating copy to clipboard operation
AL copied to clipboard

PromotedActionCategories in Page Extensions...

Open NeilHalliday opened this issue 4 years ago • 7 comments

Hi,

When changing the PromotedActionCategories in a page extension the standard property does not work, however the PromotedActionCategoriesML does work. The multi-language element generates a warning however and will be an error at some point in the future.

Here is an example of what I mean...

I'm extending the warehouse shipment page, and have the following property change in it.

image

When using just the PromotedActionCategories property, the result is as follows...

image

If you then change it to the PromotedActionCategoriesML the result is as follows...

image

For the moment we can carry on using the multi-language property, but will be unable to when that is deprecated.

NeilHalliday avatar Mar 19 '21 08:03 NeilHalliday

seems like a dupe of https://github.com/microsoft/AL/issues/1398 or others including those linked therein

or see https://github.com/microsoft/AL/issues/5373 at least towards the end

Basically, there are a few issues already saying this doesn't work, and that even if it did it seems to invite a race condition if multiple extensions declare the property. MS say they would like to improve/fix it in future.

dzzzb avatar Mar 19 '21 09:03 dzzzb

We had a similar issue as well, only for us the translation stayed in english. What ended up fixing it for us was that in the XLF file the property "Original" was not set correctly. In our case this settings was incorrect in the app (baseapp) that our app had a dependency on. So the problem was not even in the app that defined th PromtedActionCategories. This caused the PromotedActionCategories to fail for the translated language.

I am referrring to: <file datatype="xml" source-language="en-US" target-language="nl-NL" original="YourAppName">

Perhaps this is also the issue in your case?

neverbeam avatar Mar 23 '21 09:03 neverbeam

How could the base app be relevant to new captions for PromotedActionCategories in the page extension?

I just saw this again, and the correct caption was shown when viewing in English (US) language, but it reverted to Category9 when changed to English (UK).

dzzzb avatar Mar 25 '21 14:03 dzzzb

We have the same issue , that in the source language the caption for the Promoted Action Category in the Page Extension works, but as soon as we use another Language (de-DE for example) it shows Category9.

cet0bs avatar Jan 11 '22 10:01 cet0bs

same here. Using onPrem BC 19.4 - NZ Version. we have a page extensions on Service Order. As long as the Users langugaeg setting are setup as e.g en-US or en-UK (and some other en-s) it shows fine. The moment I switch to en-NZ the UI shows categories, no longer correct captions. We do not use PromotedActionCategoriesML ...

KristofKlein avatar Mar 15 '22 10:03 KristofKlein

Perhaps this can help you a bit: https://community.dynamics.com/business/f/dynamics-365-business-central-forum/418979/working-with-xliff-things-to-know

The issue for me was always that the original tag in the translation xlf file was not correct.

neverbeam avatar Mar 15 '22 11:03 neverbeam

ok that link was indeed helpful. So to see if I got this right: I use a NZ version of BC. That leads to a NZ xlif in the base app. now my extension comes around without any xlif but with an extended PromotedActionCategories. As the Servicetier is not able to "combine" xlifs for that "inputstring" it takes what it has: Base App xlif. And this does not know of my Categories (of course) so it just runs along with this "translation"....as I (user) said: please show me in NZ .... so I have to have a translation from english to english, just to make sure that the "outmost" xliff wins the question on: which String should we use for NZ PromotedActionCategories ... yeah that is no good :D I can get my situation work, but ....well, no good :)

KristofKlein avatar Mar 15 '22 15:03 KristofKlein

Hello, this issue is an older issue and since our last update we have implemented a new syntax for promoting actions. Please review the updated documentation here: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-promoted-actions

EmilDamsbo avatar Nov 02 '22 13:11 EmilDamsbo