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,530

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

  • Samantha73 Profile Picture
    3,378 on at

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

  • john.ellis Profile Picture
    3,530 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,378 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
    103,227 Super User 2026 Season 2 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,530 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 739 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 462 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 406 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans