Skip to main content

Notifications

Announcements

No record found.

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

Hide Next/Previous Buttons on Card Page

(1) ShareShare
ReportReport
Posted on by 8
Is there a way to hide the next/previous buttons on a card page?
 
For example, when I filter the Items List to one item and then navigate to the Item Card, the buttons are not shown. Can the buttons be hidden if I navigate directly to the card I'm adding from the Search dialog, or is the functionality baked into the CardPageID logic?
 
Thank you.
 
 
  • Seth_Abady Profile Picture
    Seth_Abady 8 on at
    Hide Next/Previous Buttons on Card Page
    @TeddyH Thank you.
     
    Here's what I'm trying. My action has the below code unit for it's RunObject. The table has one record in it with PrimaryKey set to 'SETTING' . When the page is opened, the source table is showing 1 record. I'm still seeing the prev/next buttons.
     
    I'm pretty new to AL. Am I missing something?
     
    Thanks!
     
    codeunit 50412 PageLaunch
    {
        trigger OnRun()
        var
            PageSourceTable: Record MyPageSourceTable;
            PageToOpen: Page MyPage;
        begin
            PageSourceTable.SetCurrentKey(PrimaryKey);
            PageSourceTable.PrimaryKey := 'SETTING';
            PageSourceTable.SetRecFilter();
            PageToOpen.Run();
        end;
    }
  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    Hide Next/Previous Buttons on Card Page
    You can filter the record using Rec.SetRecFilter() before calling the page so there is only one record.
    When you open the page with that record, the next/previous buttons should be hidden because there is only one record to show.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    Hide Next/Previous Buttons on Card Page
    Unfortunately, as far as I know there is no way.
    You can submit your suggestions to BC Ideas.
     
    Missing a feature? Post or vote for ideas on: aka.ms/BCIdeas
     
    Thanks
    ZHU
  • Seth_Abady Profile Picture
    Seth_Abady 8 on at
    Hide Next/Previous Buttons on Card Page
    Thank you @Yun Zhu. I had already looked at the article you had posted. It is not what I am looking for.
     
    I'd really like to hide, not just disable, the buttons. I see that functionality when I go from a list page to the list page's card with only 1 item in the filtered result. I'd like to replicate that behavior but in a card page that is opened via an action and not from a list page.
     
    /Seth
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    Hide Next/Previous Buttons on Card Page
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central: How to disable ‘Go to Next/Previous document’ action on Card page and Document page
     
     
    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