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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Created a Card Page When I Should Have Created a List Page

(0) ShareShare
ReportReport
Posted on by 3,518

Hi:

I'm testing AL code in a sandbox environment.  I made a simple, yet frustrating, mistake.

For the "PageType" code, I should have typed "= List;".  Instead, I typed "=Card;".

I had already published the code, before I realized the mistake.

Afterward, I changed the code to be "PageType = List;".

Unfortunately in Business Central, the page is still a card and not a list.

How do I delete the card page and republish this code, so that a list page is created?

Thanks!

John

I have the same question (0)
  • Samantha73 Profile Picture
    3,297 on at

    John - Have you tried publishing with "schemaUpdateMode": "ForceSync" .  Only works on Sandbox currently v18

  • john.ellis Profile Picture
    3,518 on at

    Hi Samantha73:

    Actually, in the last few moments, I found a way to delete the page.  You simply delete your code in Visual Studio Code and run "AL: Publish without debugging".

    That got me back to square one.  Good.

    But, after going through that experiment, AL still wants to create the List Page as a Card!

    I tried everything.  I even gave the code a new ID number and name.  But, still, when I pull up the page, it's a Card Page instead of a List Page.

    Ugh!!!!  I don't get it.

    Below is my code, in case you have any ideas.  Anything would be appreciated.

    Thanks, for the quick response!

    John

    page 50140 "Date Formula"

    {

       PageType = List;

       ApplicationArea = All;

       UsageCategory = Administration;

       SourceTable = "Date Formula";

       layout

       {

           area(Content)

           {

               group(GroupName)

               {

                   field("Primary Key"; "Primary Key") { ApplicationArea = All; }

                   field("Reference for Date Calculation"; "Reference for Date Calculation") { ApplicationArea = All; }

                   field("Date Formula to Test"; "Date Formula to Test") { ApplicationArea = All; }

                   field("Date Result"; "Date Result") { ApplicationArea = All; }

               }

           }

       }

    }

  • Samantha73 Profile Picture
    3,297 on at

    Might be a refresh issue or caption ..

    couple of things you can try:

    1.restart everything - not sure on prem or SaaS. publish to new sandbox

    2. Add obvious caption like Caption = 'TEST1 John';

  • Verified answer
    YUN ZHU Profile Picture
    98,498 Super User 2026 Season 1 on at

    Hi, It looks like you only revised the page type, but did not add a repeater group.

    A simple Example of a list page:

    pastedimage1634082286810v1.png

    Hope this will help.

    Thanks.

    ZHU

  • john.ellis Profile Picture
    3,518 on at

    That was it!  Thank you, Yun Zhu!

    John

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,850 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,084 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans