web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • 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,035 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
    115 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 3,012

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,682 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,328 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans