I want to set the field value of the grid which is related to the data source. I use the datasource_ds.getFirst() and datasource_ds.getNext to retrieve all of the records, and then set the value of each field. After the loop, I use datasource_ds.refreshEx(-1) to refresh the grid, but only the first line is changed.
My code is as below:
SalesLine salesLine;
salesLine = SalesLine_ds.getFirst();
while (salesLine)
{
salesLine.QtyOrdered = 20;
salesLine = SalesLine_ds.getNext();
}
SalesLine_ds.refreshEx(-1);
How can I set value of all lines?
*This post is locked for comments
I have the same question (0)