Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

How to create an action to "select all" rows in a List Page.

Posted on by 15

I need to create an action called Select All so that users don't need to use the selection feature provided by MS. Just one cliick on the action and all the lines get selected.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 63,857 Super User on at
    RE: How to create an action to "select all" rows in a List Page.

    Hi, I think you can try the following two methods.

    Record.Mark([Boolean]) Method
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-mark-method

    Record.MarkedOnly([Boolean]) Method
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-markedonly-method

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Amit_Sharma Profile Picture
    Amit_Sharma 2,545 on at
    RE: How to create an action to "select all" rows in a List Page.

    Hi,

    For this create on field and write code. When it is pressed, all lines selected.

    Regards

    Amit Sharma

    www.erpconsultors.com

    www.linkedin.com/.../

    Press Yes if info is useful.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 20,991 Super User on at
    RE: How to create an action to "select all" rows in a List Page.

    So its time to convenience them :)

  • Non AI Human Profile Picture
    Non AI Human 15 on at
    RE: How to create an action to "select all" rows in a List Page.

    Precisely, This is what I said when they asked to implement such a feature.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 20,991 Super User on at
    RE: How to create an action to "select all" rows in a List Page.

    Hi,

    Adding more info. We believe less customization and as Mohana said, if we have already that functionality without any customization then why do we require customization.

  • Non AI Human Profile Picture
    Non AI Human 15 on at
    RE: How to create an action to "select all" rows in a List Page.

    It looks like it was not clear, but I asked, How can I create an action to select all rows in a list in AL not about a shortcut key.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 50,260 Super User on at
    RE: How to create an action to "select all" rows in a List Page.

    You can just use Ctrl+A without any action/code.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans