web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Business Central forum

Enabling Advanced Application Area Problem

(0) ShareShare
ReportReport
Posted on by

Dear community,

I tried making the hidden NAV controls visible in my Business Central sandbox by following the advice given here:
docs.microsoft.com/.../devenv-extending-application-areas

So in total I did:
-created a fresh "hello world" project in visual studio code like here:
docs.microsoft.com/.../devenv-get-started
-add new file, call it "Codeunit.50102.EnableAdvancedApplicationArea.al"
-pasted the code shown below into it, as copied from
docs.microsoft.com/.../devenv-extending-application-areas
-pressed F5 to try it out
Result: The "hello world" popup did appear but hidden controls were still hidden.

For example "Package Tracking No." field on the "Posted Sales Shipment" page is still invisible.
It is mentioned in the docs as a specific example of a control that should be made visible, here:
docs.microsoft.com/.../sales-how-track-packages

What steps am I missing?
This first AL extension I made has no other purposes than to make the hidden NAV controls available.

I checked the following:
- Is the color coding as expexted
- No syntax errors
- No runtime errors after F5, and after doing some navigation in my sandbox
- The Hello World popup did indeed appear
- my "CRONUS" test company has the 'Essentials' experience set

Thanks for any help on this.

With best regards,
Wolter Kaper

--------------------------------------------------------------
copied code in Codeunit.50102.EnableAdvancedApplicationArea.al
--------------------------------------------------------------
codeunit 50102 EnableAdvancedApplicationArea
{
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Application Area Mgmt. Facade", 'OnGetEssentialExperienceAppAreas','', false, false)]
    local procedure EnableAdvancedApplicationAreaOnGetEssentialExperienceAppAreas(var TempApplicationAreaSetup : record 9178 temporary)
    begin
        TempApplicationAreaSetup.Advanced := true
    end;

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Application Area Mgmt. Facade", 'OnGetPremiumExperienceAppAreas','', false, false)]
    local procedure EnableAdvancedApplicationAreaOnGetPremiumExperienceAppAreas(var TempApplicationAreaSetup : record 9178 temporary)
    begin
        TempApplicationAreaSetup.Advanced := true
    end;
 
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Application Area Mgmt. Facade", 'OnSetExperienceTier','', false, false)]
    local procedure EnableAdvancedApplicationAreaOnSetExperienceTier(ExperienceTierSetup : record 9176;var TempApplicationAreaSetup : record 9178 temporary;var ApplicationAreasSet : boolean)
    begin
        TempApplicationAreaSetup.Advanced := true
    end;
}
--------------------------------------------------------------

Categories:
I have the same question (0)
  • WolterKaper Profile Picture
    on at

    Yes, I found it! It's there after all!

    Sorry, I am not only a beginning AL programmer but a beginning Business Central user too.

    Turns out I had to press a few more "more" links!!

    Thanks a lot for the help and the patience with a newbe like me.

  • WolterKaper Profile Picture
    on at

    Dear Stefano, thanks for the efforts so far but the "Package Tracking No." is not yet showing up. I did:

    - add the page extension in a separate file called "PageExt.50103.MyPostedSalesShipmentExt.al"

    - pressed F5

    It said the package was succesfully published but I did not see the field, sorry.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    ApplicationArea for the "Package Tracking No." field is set to [tag:Suite], so this is why you don't see that in the Advanced application area.

    Try creating a page extension like the following:

    pageextension 50100 MyPostedSalesShipmentExt extends "Posted Sales Shipment"

    {

       layout

       {

           modify("Package Tracking No.")

           {

               ApplicationArea = All;

           }

       }        

    }

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You cannot inspect field properties of the internal tables only with a cloud sandbox, you need to have a local sandbox.

    I'll check that property for you... please wait :)

  • WolterKaper Profile Picture
    on at

    Stefano, my sandbox is a standard microsoft hosted sandbox in the cloud.

    I got it following the steps in this doc:

    docs.microsoft.com/.../devenv-get-started

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Do you have a local D365BC sandbox? If so, you can open C/SIDE, edit the object and check the ApplicationArea property of this field. I don't have access to a sandbox now to check that for you.

  • WolterKaper Profile Picture
    on at

    Stefano, the field that I want to enable is "Package Tracking No." in the screen "Posted Sales Shipment".

    According to the docs it has the "Advanced" application area. I read it here:

    docs.microsoft.com/.../sales-how-track-packages

    Is that information is wrong or outdated...?

    I do not yet know how to find out the application area of microsoft-created UI-elements other than by reading the docs.

    Can you help me out?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    What is the ApplicationArea property assigned to the fields in your extension? They should have ApplicationArea = Advanced if you want to enable that only in this experience.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans