Показать сообщение отдельно
Старый 05.08.2023, 07:35   #1  
Blog bot is offline
Blog bot
Участник
 
25,491 / 846 (79) +++++++
Регистрация: 28.10.2006
How to select\unselect all records in a form grid
Источник: http://alexvoy.blogspot.com/2023/08/...ecords-in.html
==============

While adding standard command button you can opt for SelectAll to mark all records in a form grid. However, there is no such a command for the opposite - unselect all records.


You can easily achieve it by using the following method and two usual button form controls.



[Form]public class mgcDeleteForm extends FormRun{ public void selectAll(boolean _select) { VendPaymFormat_DS.markAllLoadedRecords(_select); } [Control("Button")] class FormButtonControlSelectAll { public void clicked() { element.selectAll(true); super(); } } [Control("Button")] class FormButtonControlUnSelectAll { public void clicked() { element.selectAll(false); super(); } }}











Источник: http://alexvoy.blogspot.com/2023/08/...ecords-in.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.