Skip to main content

Notifications

Announcements

No record found.

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

Role Center - how to layout cues properly

Posted on by 191
I am creating custom role centers.  How do I make it so that these cues fill the page horizontally/ next to each other horizontally?  They currently look like this and I cannot figure out how to modify they layout so they look correct like the base BC role center layouts look.

Categories:
  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    Role Center - how to layout cues properly
    Hi,
    You need to create the cue listpart page and add all your cue boxes to the cue group. Then, include that listpart in the role center.
    Here's an example..
    page 50210 CueGroupListPart
    {
        PageType = CardPart;
        RefreshOnActivate = true;
        Caption = 'Cue Group';
    
        layout
        {
            area(Content)
            {
                cuegroup(CueGroupOne)
                {
                    Caption = 'Cue Group One';
                    field(CueBoxOne; CueBoxOne)
                    {
                        Caption = 'Cue Box One';
                        ApplicationArea = All;
                    }
                }
                cuegroup(CueGroupTwo)
                {
                    Caption = 'Cue Group Two';
                    field(CueBoxOne; CueBoxTwo)
                    {
                        Caption = 'Cue Box Two';
                        ApplicationArea = All;
                    }
                }
                cuegroup(CueGroupThree)
                {
                    Caption = 'Cue Group Three';
                    field(CueBoxOne; CueBoxThree)
                    {
                        Caption = 'Cue Box Three';
                        ApplicationArea = All;
                    }
                }
            }
        }
    }
    In the Role Center page, add the Cue Page like this.
    page 50222 "Test Role Center"
    {
    
        PageType = RoleCenter;
        Caption = 'Test Role Center';
        layout
        {
            area(rolecenter)
            {
                part(CueGroupListPart; CueGroupListPart)
                {
                    ApplicationArea = All;
                }
            }
        }
    }
    Hope this helps.
    Regards,
  • Role Center - how to layout cues properly
    @YUN ZHU: this does not seem to do the trick. This only makes a cuegroup larger. Not make the cue's line up horizontally. 
     
    The rolcenter does seem to group the cardparts and listparts together. The first cardpart seem to take the entire rolecenter space horizontally. The rest are on a new "Line". But sometimes when you have 4 cues in 1 cuegroup the cues are 2 by 2 and sometimes 4 next to eachother. Why?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    Role Center - how to layout cues properly
    Hi, I think you can refer to the standard page, page 1310 "O365 Activities". And note the value of the CuegroupLayout Property.
     
     
    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