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...
Suggested answer

Display selected number of records by the total number of records in Customer list

(0) ShareShare
ReportReport
Posted on by 111

I want to display how many records are selected in the customer list page out of the total number of records in Business Central. Can someone help me with this?

Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    62,477 Moderator on at
    RE: Display selected number of records by the total number of records in Customer list

    Hi, hope the following can give you some hints as well.

    https://yzhums.com/5625/

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    20,991 Moderator on at
    RE: Display selected number of records by the total number of records in Customer list

    Hi,

    You can try with below code

                                CurrPage.SetSelectionFilter(yourrecord);
                                yourrecord := rec;
                                if yourrecord.FindSet() then
                                   totalcoount := yourrecord.count;

  • Suggested answer
    sVerme Profile Picture
    120 on at
    RE: Display selected number of records by the total number of records in Customer list

    Hi Ibakordor Kharmih,

    please have a look at SetSelectionFilter

    SetSelectionFilter gets the selected records, and you can just do a .Count() after getting them. 

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

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

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans