Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

(0) ShareShare
ReportReport
Posted on by 60

Is there away to create Pages of Type "Card" without Groups but still get the benefit of having the fields on the page put (neatly) in 2 columns?

If not, is there a way to avoid having to name those Groups? (imo, card page is cleaner without the names and when there's only 1 group,the group name sometimes can be redundant)

Lastly, must I have Groups on Card Pages in order to utilize the Actions functionality on those same pages?

Thanks

  • antmas Profile Picture
    antmas 60 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    Heinrich, thanks again for your time and effort. I will try this out.

    Appreciatively,

    Anthony

  • Suggested answer
    Airbird22 Profile Picture
    Airbird22 2 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    Hi,

    Sorry, I got it wrong. But I found the correct way. Use grids. I created this:

    pastedimage1637778032876v1.png

    Using the following code:

    page 50100 "TestPage"
    {
        Caption = 'TestPage';
        PageType = Card;

        layout
        {
            area(content)
            {
                grid(MyGrid1)
                {
                    GridLayout = Columns;

                    field(Field1; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field2; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid2)
                {
                    GridLayout = Columns;
                    field(Field3; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field4; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid3)
                {
                    GridLayout = Columns;
                    field(Field5; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field6; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid4)
                {
                    GridLayout = Columns;
                    field(Field7; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field8; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid5)
                {
                    GridLayout = Columns;
                    field(Field9; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field10; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid6)
                {
                    GridLayout = Columns;
                    field(Field11; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field12; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid7)
                {
                    GridLayout = Columns;
                    field(Field13; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field14; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid8)
                {
                    GridLayout = Columns;
                    field(Field15; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field16; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid9)
                {
                    GridLayout = Columns;
                    field(Field17; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field18; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
                grid(MyGrid10)
                {
                    GridLayout = Columns;
                    field(Field19; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                    field(Field20; myDecimal)
                    {
                        ApplicationArea = All;
                    }
                }
            }
        }

        var
            myDecimal: Decimal;
    }
    You can create as many columns as you want by adding more fields per grid. 
    Hope this helps.
    Heinrich
    ps. Please mark answer if you are happy.
  • antmas Profile Picture
    antmas 60 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    Heinrich, that is not the behavior that I see.

    Card pages without groups show the fields as 1 column, regardless of the amount of space (pls see pic).

    Removing groups on card pages with many more fields shows me that they don't go into a 2nd column even when they reach the bottom of the page.

    Perhaps I am doing something wrong. thx

    TestPageWithAndWithGroups.png

  • Suggested answer
    Airbird22 Profile Picture
    Airbird22 2 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    It should only display 2 columns if the fields are more that the vertical space on the page. It first fills the fields in the left column until it runs out of space and then starts on the right column.

    Please mark as answered if you are satisfied.

  • antmas Profile Picture
    antmas 60 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    Heinrich, I appreciate the reply & advice (from both you & NorthW).

    Just to clarify... the answer as to whether we can create a Card Page without groups but still retain the two columns of fields is "no", Correct?

    thanks

  • Suggested answer
    Airbird22 Profile Picture
    Airbird22 2 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    Hi,

    What NorthW suggested is the best option. Remember you cannot tell BC how to stack fields on a card better than the above since it automatically places them based on the available space on the webpage. That is why the fast tabs (groups) are so powerful since it allows you to show to the user what is important while hiding fields which may be used less often.

    Honestly, the whole system works like this and it would be better to just adapt to this methodology rather than changing pages.

    Hope this helps.

    Heinrich

  • antmas Profile Picture
    antmas 60 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    NorthW, thanks for the reply / suggestion.

    As laid out, I think that this accomplishes creating a Card page without groups, but it doesn't seem to accomplish getting them into the typical 2 column format. The reason that I need this is for a few pages with many fields. In these scenarios, Card Pages with a single column of fields don't display data well at all... aren't user friendly.

    Pls lmk if I've misunderstood what you're suggesting.

    thanks again

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    RE: Card Pages without Groups, or at least Groups without Names, and do page Actions always require having Groups?

    It will work perfectly fine to have a page without groups like this:

    page 50100 CustCard

    {

       Caption = 'CustCard';

       PageType = Card;

       SourceTable = Customer;

       layout

       {

           area(content)

           {

               field("No."; Rec."No.")

               {

                   ToolTip = 'Specifies the value of the No. field.';

                   ApplicationArea = All;

               }

               field(Name; Rec.Name)

               {

                   ToolTip = 'Specifies the value of the Name field.';

                   ApplicationArea = All;

               }

           }

       }

       actions

       {

           area(Processing)

           {

               action(MyAction)

               {

               }

           }

       }

    }

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans