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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Regarding - Designing Cue and Tiles in Business Central using AL code

(0) ShareShare
ReportReport
Posted on by 190

Hi ALL,

I'm facing problem when i'm designing cues and tiles ...

Cues-and--Tiles.jpeg

When I clicked Custom Cue the page viewed is not editable.

Kindly, need the procedure of the code for designing cue and tiles.

Thanks, in Advance.

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    159 on at

    This is a good resource: businesscentralgeek.com/2-ways-to-create-cues

  • karthikeyani c Profile Picture
    190 on at

    Yes ,I have already tried it but never get it done ..

    I'm receiving error in CalcFormula and I need clarification about declaring Calcformula...

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    The calcformula is defined in the table that you base your tile on.

    What error messesage are you getting ?

    docs.microsoft.com/.../devenv-calcformula-property

  • karthikeyani c Profile Picture
    190 on at

    Hi ...

    I'm not getting an error . when I click the Custom cue Tile the page viewed is correct but I can't able to edit that. Like this, and my req is I want it to look like normal bc page . And I don't know where I missed this. Kindly help me to come out of this.

    Cues-_2D00_-page-object.jpeg

    Here is my Procedure of Code.

    Table : 

    field(1; EmpNo; Code[20])
            {
                NotBlank = true;
                DataClassification = ToBeClassified;
            }
            field(2; "Number of Days"; Integer)
            {
                Editable = true;
                FieldClass = FlowField;
                CalcFormula = count(Recruitment where("Stat" = filter(All)));
    keys
        {
            key(PK; EmpNo)
            {
                Clustered = true;
            }
        }

        procedure InsertIfNotExists()
        begin
            Rec.Reset();
            if not Rec.Get() then begin
                Rec.Init();
                Rec.Insert();
            end;
        end; 
    }
    Page :
    PageType = CardPart;
        SourceTable = CustomCueTable;
        RefreshOnActivate = true;


        layout
        {
            area(Content)
            {
                cuegroup(cuegroup1)
                {
                    Caption = 'Leave Requests';
                    

                    field(NumberofDays; Rec."Number of Days")
                    {
                        Caption = 'Numberof days';
                        ApplicationArea = Basic, Suite;
                        StyleExpr = Style;

                        trigger OnDrillDown()
                        var
                            Recruit: Record Recruitment;
                            RecruitmentList: Page "Leave Request";
                        begin
                            Recruit.SetRange(Blocked::All);
                            RecruitmentList.SetTableView(Recruit);
                            RecruitmentList.Run();
                        end;
                    }
                }
            }
        }

        actions
        {
            area(Processing)
            {
                action("Set Up Cues")
                {
                    ApplicationArea = All;
                    Image = Setup;

                    trigger OnAction()
                    var
                        CuesAndKpis: Codeunit "Cues And KPIs";
                        CueRecordRef: RecordRef;
                    begin
                        CueRecordRef.GetTable(Rec);
                        CuesAndKpis.OpenCustomizePageForCurrentUser(CueRecordRef.Number);
                    end;
                }
            }
        }

        trigger OnOpenPage()
        begin
            Rec.InsertIfNotExists();
        end;

        trigger OnAfterGetCurrRecord()
        var
            Recruit: Record CustomCueTable;
        begin
             Recruit.SetRange(Stat::open);
            BlockedRecruitmentVar := Recruit.Count();

            if BlockedRecruitmentVar > 2 then
                Style := 'Unfavorable';
        end;


        var
            BlockedRecruitmentVar: Integer;
            Style: Text;
            Stat: Enum MyEnum;
            All: Enum MyEnum;
    There was no problem with the Programming Code. Kindly mention if there is any change / need to added .
    Thanks in Advance...
  • Verified answer
    Tabrez Ajaz Profile Picture
    789 on at

    Hi karthikeyani,

    Can you also show the properties of "Leave Request" page?

    If you set editable properties to false there, then remove this property or make it true.

  • karthikeyani c Profile Picture
    190 on at

    yes , It gets worked ...

    Thanks to all who helped me ...

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 462 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 272 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans