Notifications
Announcements
No record found.
Dear Experts,
i want to disable the functionality of the delete shortcut (Alt+Delete) on form, because the user is able to delete posted transactions while the delete button is locked.
kindly assist me with the above task.
Regards,
Hi sylvestedD365,
what form are you referring to? If AllowDelete on the form data source is set to No, the user shouldn't be able to delete records via keyboard shortcuts or the button. So it might be possible that you need to evaluate the form properties.
HI Sylvester,
Have you tried to set AllowDelete of datasource?
hi Nikolaos,
its a new form created by me , if i set allow delete to false on form properties, i will not be able to delete the unposted transactions, so if there any way to prevent deleting the posted transactions ? i tried in x++ in selectionChanged method and on init but it didn't work
Hi Blue Wang,
i tried but its preventing me from deleting all the records, i only want to delete specific records.
Just put this logic in the active method of your form data source:
if (some condition) { MyTable_ds.allowEdit(false); } else { MyTable_ds.allowEdit(true); }
Additionally, put similar logic in the validateDelete() method of your table.
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional