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

Notifications

Announcements

No record found.

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

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,247 on at

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

  • john.ellis Profile Picture
    3,510 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,247 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
    95,331 Super User 2025 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,510 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans