DataField.getNext method
getNext
DataField getNext() throws TFormerException
A Project stores a list of DataField objects. You can use this method to iterate through the list. To retrieve the first DataField in the Project see Project.getFirstDataField.
Returns
The next DataField object in the list or null
Sample: Iterate DataFields in a Stand-Alone FormLayout
// Retrieve the global Project
// A stand-alone FormLayout contains only the global Project, the global Project holds all DataField definitions
Project project = repository.getGlobalProject ();
// Retrieve the first DataField
DataField datafield = project.getFirstDataField ();
while (datafield != null)
{
// Your code follows
System.out.println (datafield.getName ());
// Get the next DataField
datafield = datafield.getNext ();
}