[progress Communities] [progress Openedge Abl] Forum Post: Re: Retrieve A List- From The...

  • Thread starter Thread starter Vimalkumar Selvaraj
  • Start date Start date
Status
Not open for further replies.
V

Vimalkumar Selvaraj

Guest
Hi Shira, It should be straight forward, you should get data from both DataSources and merge them and use that in your new Data Source. I assume all 3 Datasources schema model will be same var data1 = dataSource1.data(); //First data source data var data2 = dataSource2.data(); //Second data source data //concat two array data by converting kendo model to actual json var mergedData = data1.toJSON().concat(data2.toJSON()); var newDataSource = new kendo.data.DataSource({ data:mergedData, sort:{field:'dob',dir:'asc'}, schema:{ model:{ fields:{ dob:{type:'date'}, name:{type:'string'}, age:{type:'number'} } } } }); newDataSource.fetch(function(){ var data = newDataSource.view(); console.log(data[0].dob); }); Hope this helps, Thanks, Vimal.

Continue reading...
 
Status
Not open for further replies.
Back
Top