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

D365FO Data management change tracking enable/disable not working

Displaying a value from a array field in EP

Table array field iteration