Breaking news from around the world
Get the Bing + MSN extension
Check out the latest Business Central updates!Learn about the key capabilities and features of Dynamics 365 Business Central and experience some of the new features.
Download overview guide | Watch Business Central video
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I want to add multi selection checkbox in my custom listing page in AL extension and also want to remove selected records from the listing page from Run button. Can anyone help me how to add multi selection checkbox and how to pass id of selected records to Codeunit.
You can add a boolean field to your source table and display this field on the list.
A second way could be using MARK for marking the selected records:
1) Create a page field called "Selected" with SourceExpression = MARK.
2) Add an action call "Select" on the page
3) In the OnAction trigger add a local variable that points to your table (here called YourTable) and add the following code:
IF YourTable.FINDSET THEN
GET(YourTable.XXX); //Here you've to select the record by primary key, I've called the primary key XXX
To deselect the record, add a new action with MARK(false).
Thanks for your quick response, CurrPage.SetSelectionFilter(<TableName>); works for me, I was searching how to get the selected value from list page and this function gives me selected rows and we can pick the key field from the source table and can do further manipulation.
Business Applications communities