Skip to main content

Notifications

Announcements

No record found.

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.

  • karthikeyani c Profile Picture
    190 on at
    RE: Regarding - Designing Cue and Tiles in Business Central using AL code

    yes , It gets worked ...

    Thanks to all who helped me ...

  • Verified answer
    Tabrez Ajaz Profile Picture
    785 on at
    RE: Regarding - Designing Cue and Tiles in Business Central using AL code

    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
    RE: Regarding - Designing Cue and Tiles in Business Central using AL code

    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...
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,025 Moderator on at
    RE: Regarding - Designing Cue and Tiles in Business Central using AL code

    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
    RE: Regarding - Designing Cue and Tiles in Business Central using AL code

    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
    JAngle Profile Picture
    89 on at
    RE: Regarding - Designing Cue and Tiles in Business Central using AL code

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 505 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 400

#3
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 384

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans