Skip to content

Adding to other role centres

Dynamic Cues appears on the 24 role centres that Business Central enables by default. If you use a custom role centre, or another Microsoft role centre such as Bookkeeper, a developer can add Dynamic Cues to it in a few lines. Once it’s added, everything is set up as usual on Dynamic Cue Panels and Dynamic Cues, with no further code.

In your extension’s app.json:

"dependencies": [
{
"id": "07f5ed35-a9ab-430f-bb3c-f5bd90d43faf",
"name": "DynamicCues",
"publisher": "Alec Gray",
"version": "2.2.0.0"
}
]

Download the symbols as usual (AL: Download Symbols).

Dynamic Cues uses two parts side by side, so panels fill the width of the role centre in two columns. Add both, next to each other, in this order.

On your own role centre:

page 50100 "Contoso Ops Role Center"
{
Caption = 'Contoso Operations';
PageType = RoleCenter;
layout
{
area(RoleCenter)
{
part(DynamicCues; "DRC Dynamic Cues Part")
{
ApplicationArea = All;
}
part(DynamicCuesB; "DRC Dynamic Cues Part B")
{
ApplicationArea = All;
Caption = ' ';
}
// ...your other parts
}
}
}

On a Microsoft role centre that doesn’t have Dynamic Cues yet:

pageextension 50100 "Contoso Bookkeeper RC" extends "Bookkeeper Role Center"
{
layout
{
addfirst(rolecenter)
{
part(DynamicCues; "DRC Dynamic Cues Part")
{
ApplicationArea = All;
}
part(DynamicCuesB; "DRC Dynamic Cues Part B")
{
ApplicationArea = All;
Caption = ' ';
}
}
}
}

Use addfirst(rolecenter) for the top of the page, or addafter(<part>) to place it after a particular part, such as the main Activities part.

  • Same tiles everywhere. The parts show the user’s panels and tiles, wherever they appear. There’s nothing to configure per role centre.
  • Tidy when empty. A user with no tiles sees nothing: the parts collapse, so it’s safe to add them to role centres for every team.
  • Keep Caption = ' ' on Part B. Part A carries the Dynamic Cues heading for both columns.
  • Use both parts. With only Part A, users see every other panel. Part A shows the first, third and fifth panels, and Part B the second, fourth and sixth.