Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 12 of 12 total
Thread Splitting JSON data between two grids.
Fri, Sep 11 2015 9:19 AMPermanent Link

thomh

Would be nice if TDataSet.LoadColumns and LoadRows get an extra ArrayName parameter:

TDataSet.LoadColumns(const ColumnData: String; const jsonArrayName: string = '')
TDataSet.LoadRows(const RowData: String; Append: Boolean=False; const jsonArrayName: string = '')

So I could do this all from one server call instead of 4 separate ones:

DataSet1.LoadColumns(jsonData, 'usercols');
DataSet1.LoadRows(jsonData, false, 'userrows');

DataSet2.LoadColumns(jsonData, 'clientcols');
DataSet2.LoadRows(jsonData, false 'clientrows');

Today you must either use "columns" or "rows".
Which would be the default if you left ArrayName parameter empty.

// Thom
Fri, Sep 11 2015 9:24 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Thom,

<< So I could do this all from one server call instead of 4 separate ones: >>

The dataset handling will get batching support soon (2.03, probably).  I've got to add a bunch of new dataset stuff, including filtering/calculated columns/master-detail links.

Tim Young
Elevate Software
www.elevatesoft.com
Previous PagePage 2 of 2
Jump to Page:  1 2
Image