Scenario: You have 10 records in the grid and want to select(mark) on 5 and perform operations. Then use below code to select mark records
Solution 1:
Hcmworker hcmWorker; // table
hcmWorker = this.getfirst(1);// 1 is reflecting the mark records
while (hcmworker)
{
//write custom code to perform operations
hcmworker = this.getNext()
}
Solution 2:
Hcmworker hcmWorker; // table
for(hcmWorker=hcmWorker_ds.getFirst(1);hcmworker;hcmworker=hcmworker_ds.getNext())
{
}