We see that a RecordList has a destroy() and are wondering under which scenarios one would need to call destroy() on a RecordList. The JavaDoc appears to come from the BaseClass with only "Destroy this object." for documentation, so we are not sure what we should be doing here.
For example, if we getDataAsRecordList from a DSResponse, do we need to handle the destroy()ing of that RecordList?
Another example would be a RecordList we create and pass into a FacetChart via setData. Are we responsible for the destroy()ing of that RecordList or will the FacetChart handling the destruction of that RecordList.
The same question can be asked if we create a RecordList and call setData on a ListGrid with that RecordList.
In general, what considerations should be made when dealing with RecordLists and when would we need handle the destruction of RecordLists we create?
SmartClient Version: v9.1p_2014-08-31/Pro Deployment (built 2014-08-31)
Thanks
For example, if we getDataAsRecordList from a DSResponse, do we need to handle the destroy()ing of that RecordList?
Code:
DSCallback callback = new DSCallback() {
@Override
public void execute(DSResponse response, Object data, DSRequest dsRequest) {
RecordList rl = response.getDataAsRecordList();
}
};The same question can be asked if we create a RecordList and call setData on a ListGrid with that RecordList.
In general, what considerations should be made when dealing with RecordLists and when would we need handle the destruction of RecordLists we create?
SmartClient Version: v9.1p_2014-08-31/Pro Deployment (built 2014-08-31)
Thanks