Iterate over multiselected posts

Usefull code that gets the selected posts.


void iterateSelectedRecords()
{
CustTable custLocal;
;
//getFirst method gets all the selected records in the grid
custLocal = CustTable_ds.getFirst(true);

while (custLocal)
{
// Do something with the posts
// get the next selected record
custLocal = CustTable_ds.getNext();
}
}


Another usefull function is *****_ds.mark(), which returns the number of selected posts.

Comments

Popular posts from this blog

How to disable auto enabled flight key using KillSwitch

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking