FormDataSource.getNext Method [AX 2012]
Returns the next record that meets the criteria that are set up in an earlier call to the FormDataSource.getFirst method.
The following example determines whether two records are selected in a form.
boolean twoMarked()
{
SysVersionControlTmpItem tmpitem = this.getFirst(1);
if (!tmpitem)
{
return false;
}
tmpitem = this.getNext();
if (!tmpitem)
{
return false;
}
tmpitem = this.getNext();
if (!tmpitem)
{
return true;
}
return false;
}
Community Additions
ADD
Show: