Adding to other role centres
Spotlight 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 Spotlight Cues to it in a few lines. Once it’s added, everything is set up as usual on Spotlight Cue Panels and Spotlight Cues, with no further code.
1. Add the dependency
Section titled “1. Add the dependency”In your extension’s app.json:
"dependencies": [ { "id": "07f5ed35-a9ab-430f-bb3c-f5bd90d43faf", "name": "Spotlight Cues", "publisher": "Alec Gray", "version": "2.3.0.0" }]Download the symbols as usual (AL: Download Symbols).
2. Add the two parts
Section titled “2. Add the two parts”Spotlight 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(SpotlightCues; "SPC Spotlight Cues Part") { ApplicationArea = All; } part(SpotlightCuesB; "SPC Spotlight Cues Part B") { ApplicationArea = All; Caption = ' '; } // ...your other parts } }}On a Microsoft role centre that doesn’t have Spotlight Cues yet:
pageextension 50100 "Contoso Bookkeeper RC" extends "Bookkeeper Role Center"{ layout { addfirst(rolecenter) { part(SpotlightCues; "SPC Spotlight Cues Part") { ApplicationArea = All; } part(SpotlightCuesB; "SPC Spotlight 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.
Good to know
Section titled “Good to know”- 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 Spotlight 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.