Hi,
I have to Update Multiple selected Records in a Grid by clicking on a button. Any Suggestions please.
Regards,
Ram.
Hi,
I have to Update Multiple selected Records in a Grid by clicking on a button. Any Suggestions please.
Regards,
Ram.
Hi Ram,
You can write method in your click method,
Have a look at this blog:
community.dynamics.com/.../how-to-update-multiple-rows-at-backend-and-refresh-the-ui
As martin said , MutliSelectionHelper class is also a good choice to iterate records.
Refer to the following codes:
CustPaymModeTable custPaymModeTablelocal;
MultiSelectionHelper helper = MultiSelectionHelper::construct();
helper.parmDatasource(custPaymModeTable_ds);
custPaymModeTablelocal = helper.getFirst();
while (custPaymModeTablelocal.RecId != 0)
{
info(custPaymModeTablelocal.PaymMode);
custPaymModeTablelocal = helper.getNext();
}
You can use MutliSelectionHelper class to iterate the records. Change values, save each record, refresh the datasource.
By the way, you again picked a wrong category. Please pay more attention to it.
André Arnaud de Cal...
292,978
Super User 2025 Season 1
Martin Dráb
231,821
Most Valuable Professional
nmaenpaa
101,156
Moderator