Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Retrieve Object from ListGridRecord's getAttributeAsObject

$
0
0
I am unable to retrieve the ListGridRecordArray in the following code. An exception is thrown.
What is the proper way to get the ListGridRecordArray ?

Code:

ListGridRecord lgr = new ListGridRecord();
Record[] records = new ListGridRecord[list.size()];

for(int i = 0; i < list.size(); i++)
{
  //populate records
}

lgr.setAttribute("someName", records );
Record[] records2 =
(ListGridRecord[])breakRecord.getAttributeAsObject( "someName" );

SmartClient Version: v8.3p_2013-04-15/Enterprise Deployment (built 2013-04-15)
Firefox 20.0.1

Viewing all articles
Browse latest Browse all 4756

Trending Articles