в
BestPractices есть статья Traversing multi selected records in a data source
вот ссылка, которую можно запихать в адресную строку IE:
mk:@MSITStore:C:\Program%20Files\Navision\Client\Bin\Dev_BPHB.chm::/Application_Design/Design_Patterns/TraverseMultiselectedDataSource.htm
Там рекомендуют делать так:
PHP код:
void clicked()
{
xRefReferences xRefReferencesEdit;
for (xRefReferencesEdit = xRefReferences_ds.getFirst(1) ? // are there any marked records -
xRefReferences_ds.getFirst(1) : // if yes, get the first marked record
xRefReferences; // else, use the current record
xRefReferencesEdit; // continue as long as there are some records to work on
xRefReferencesEdit = xRefReferences_ds.getNext()) // get the potential next marked record
{
// do processing with xRefReferencesEdit
...
}
}