RecordList length() and first() caused an exception
On a DynamicForm object I call the method getRecordList. If I try to use the RecordList returned from this method call I get the following exception.
There are no messages in the Development console when this happens.
Here is the code I'm using:
Either of the last two lines of code will cause an exception.
On a DynamicForm object I call the method getRecordList. If I try to use the RecordList returned from this method call I get the following exception.
Uncaught exception escaped : com.google.gwt.event.shared.UmbrellaException
Exception caught: (TypeError) @com.smartgwt.client.data.RecordList::getLength()([]): self.getLength is not a function
See the Development console log for details.
Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling.
Exception caught: (TypeError) @com.smartgwt.client.data.RecordList::getLength()([]): self.getLength is not a function
See the Development console log for details.
Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling.
Here is the code I'm using:
Code:
DynamicForm uploadForm = Forms.UPLOAD_CONTACT_LIST.getForm(); RecordList records = uploadForm.getRecordList(); // Record record = uploadForm.getRecordList().first();
Comment