FormDataSource.getNext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the next record that meets the criteria that are set up in an earlier call to the FormDataSource.getFirst method.
public:
virtual Microsoft::Dynamics::Ax::Xpp::Common ^ getNext();
public virtual Microsoft.Dynamics.Ax.Xpp.Common getNext ();
abstract member getNext : unit -> Microsoft.Dynamics.Ax.Xpp.Common
override this.getNext : unit -> Microsoft.Dynamics.Ax.Xpp.Common
Public Overridable Function getNext () As Common
Returns
The next record in the dataset.
Remarks
Depending on the initialization that is performed in the call to the FormDataSource.getFirst method, the getNext method might return only records that have a particular mark value, and it might return records from the cache.
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;
}