I got something like this to work!
public class CustMultiSelectController
{
public static void main(Args _args)
{
if (!_args.record() ||
_args.dataset() != tableNum(SalesTable))
{
throw error(Error::wrongUseOfFunction(funcName()));
}
Common multiSelectionRecord;
MultiSelectionContext multiSelectionContext;
SalesTable salesTable;
multiSelectionContext = _args.multiSelectionContext();
if (multiSelectionContext)
{
multiSelectionRecord = multiSelectionContext.getFirst();
while (multiSelectionRecord)
{
select forupdate firstonly salesTable
where salesTable.RecId == multiSelectionRecord.RecId;
info(strFmt(“%1”, salesTable.SalesId));
multiSelectionRecord = multiSelectionContext.getNext();
}
}
}
}