Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Creating tiles on BC dashboard

Posted on by 5
Good day,
 
My name is Jeroen Mulder and I'm new on the BC forum. To be honest, it's my first time ever on a forum, so please be gentle ;-)
 
Since six weeks I work for a company which has BC.
Unfortunately (or not) this company is not using many of the powerfull options of BC.
I want to expand the options but I am facing some obstacles.
For a starter I would like to create customized tiles on the dashboard.
For instance I want to see purchase orders which are meeting the following requirements;
 
* The PO has to be made by me personally (users ID)
* The PO must have an expired promised delivery date (<h)
* The PO must have undelivered orderlines (completely received)
 
(Freely translated from Dutch. Sorry)
 
I am able to get this using filters in the purchase order section but I prefer to see this in a tile on the dashboard.
 
Does anybody know how to get this done?
 
Thank you in advance.
 
Categories:
  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    Creating tiles on BC dashboard
    Hi Jeroen Mulder,

    Welcome to the community! It's not difficult to add tiles to your dashboard. You can achieve this by simply creating an extension for the Role Center dashboard you want to customize. For instance, if you'd like to add tiles to the Business Manager Role Center, you'll need to create a page extension for that specific Role Center. To create the tiles, you should develop a CardPart page and then include that page in your Role Center Dashboard.
    To update the tile values displayed on the dashboard, you can write the necessary code in the 'onAfterGetCurrentRecord' trigger.

    Here's an example.. I've also created some sample tiles.
     
     
    I'm providing you with some sample code since you mentioned it's your first time working on this.

    page 50210 CueDistributionFinalize
    {
        PageType = CardPart;
        RefreshOnActivate = true;
        Caption = 'Job Queue Distribution Run Process';
    
        layout
        {
            area(Content)
            {
                cuegroup(GenerateDistribution)
                {
                    Caption = 'Generate Distribution';
                    field(GenDistributionRunCount; GenDistributionRunCount)
                    {
                        Caption = 'Distribution Records';
                        ApplicationArea = All;
                    }
                }
    
                cuegroup(FinalizeDistribution)
                {
                    Caption = 'Generate Purch. Orders';
                    field(FinDistributionRunCount; FinDistributionRunCount)
                    {
                        Caption = 'Distribution Records';
                        ApplicationArea = All;
                    }
                }
    
                cuegroup(GenerateInvoice)
                {
                    Caption = 'Generate Invoice';
                    field(GenerateInvoiceRunCount; GenerateInvoiceRunCount)
                    {
                        Caption = 'Distribution Records';
                        ApplicationArea = All;
                    }
                }
            }
        }
    
        trigger OnAfterGetCurrRecord()
        begin
            GenDistributionRunCount := GenDistributionJobTable.Count;
            FinDistributionRunCount := FinalizeDistribJobTable.Count;
            GenerateInvoiceRunCount := GenerateInvoiceJobTable.Count;
        end;
    
        var
            GenDistributionRunCount, FinDistributionRunCount, GenerateInvoiceRunCount : Integer;
    
    }

    Afterward, add the created page to your Role Center dashboard, specifically in the layout section under 'rolecenter' among the other page parts.
     
                part(CueDistributionFinalize; CueDistributionFinalize)
                {
                    ApplicationArea = All;
                }
     
    I hope this guidance helps. If you have any further questions, please don't hesitate to ask.

    Best Regards,
    Govinda Kumar
  • Kamal Khakhkhar Profile Picture
    Kamal Khakhkhar 303 on at
    Creating tiles on BC dashboard
    Hii Everyone.
     
    as per the requirement here you need to follow the following steps to create a cue in Rolecenter page. for that you need to create a table and page for your required data. i attach link you can get referance from it.
     
     
    Thank you.
    Kamal Khakhkhar
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    Creating tiles on BC dashboard
    Hi, as far as I know this requires customization.
    For example, the tiles below are actually Flowfield. This is defined in code and cannot be modified by the user. So if you want to add a new tile, you can refer to the standard code below.
     
    table 9053 "Sales Cue":
     
    Hope this helps.
    Thanks.
    ZHU

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans