Iterate over query results returned by the AJAX Toolkit without invoking
queryMore and queryLocator.
- The sforce.connection.query method returns
a QueryResult object.
- A QueryResultIterator object is created and passed the QueryResult object.
- The code iterates through the records.