Monday 6 October 2014

Multiline grid selection


When something is clicked, work through the grid to get just the selected lines (ticked or highlighted)

void clicked()
{
    CustPaymModeTable custPaymModeTablelocal;
    MultiSelectionHelper helper = MultiSelectionHelper::construct(); // construct the helper class
    helper.parmDatasource(custPaymModeTable_ds); // set the datasource of the helper
    custPaymModeTablelocal = helper.getFirst(); //get the first selected record of the helper

    while (custPaymModeTablelocal.RecId != 0)
    {
        info(custPaymModeTablelocal.PaymMode);
        custPaymModeTablelocal = helper.getNext(); //get the next selected record of the helper
    }
}


No comments:

Post a Comment