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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Sample Files AL Coding

(0) ShareShare
ReportReport
Posted on by 150

Hello,

are there any sample files AL available? I'm searching for an example of coding a role center page from scratch.

Thanks a lot for any hint!

Kind regards

Chris

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    You can create a RoleCenter page in AL with this code:

    page 50051 "My Role Center"

    {

    PageType = RoleCenter;

    SourceTable = "Dispatch Cue";

    layout

    {

    area(rolecenter)

    {

    part(DispatchOrders; "Dispatcher Activities")

    {

    ApplicationArea = All;

    Visible = true;

    }

    part(News;"Headline RC Business Manager")

    {

    ApplicationArea = All;

    Visible = true;

    }

    }

    }

    and then you have to assign it to a profile in BC.

  • chrisusesNAV Profile Picture
    150 on at

    Hello,

    thanks again for the fast response. I'm struggeling with the assignment of the profile. I did that in a codeunit but it won't show the entry or the page in the client.

    Would be very handy if there were a example and a complete work-through of a extension available.

    Kind regards

    Chris

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

    From extension, you need to create a Profile object:

    profile ProfileName

    {

       Description = 'Profile Description';

       RoleCenter = "My Role Center";  

    }

    and then assign this profile to a User Group (field "Default Profile ID").

  • Rupali Profile Picture
    335 on at

    How can I assign this profile to already existing user in BC

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

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