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.
You can just use Ctrl+A without any action/code.
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.
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.
Precisely, This is what I said when they asked to implement such a feature.
So its time to convenience them :)
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.
Hi, I think you can try the following two methods.
Record.Mark([Boolean]) Methodhttps://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-mark-method
Record.MarkedOnly([Boolean]) Methodhttps://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-markedonly-method
Hope this helps.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sumit Singh 2,674
Rishabh Kanaskar 2,580
YUN ZHU 2,115 Super User 2025 Season 2