I must admit I'm a bit confused when it comes to knowing the difference between the Dictionary and the Datasource. I've managed to populate the Dictionary with Business Objects by using a Silverlight implementation of a Dataset, but I cant figure out how to get the same fields into the Data Source section so I can set sorting and grouping options.
This is the code I'm using to populate the report.
report.BusinessObjectsStore.Clear();
foreach (DataTable dt in dataSet.Tables)
{
DataView dv = dataSet.GetDataView(null, null, dt.TableName, null);
report.RegBusinessObject(currentItem.StoredProcedure, dt.TableName, dv.GetBindableData(_connector));
//Stimulsoft.Report.Dictionary.StiDataViewSource dvSource = new Stimulsoft.Report.Dictionary.StiDataViewSource(dt.TableName, dt.TableName);
//dvSource.Dictionary = report.Dictionary;
//report.Dictionary.DataSources.Add(dvSource);
}
report.Dictionary.Synchronize();
reportDesigner.Report = report;
I'm using the Silverlight Native designer and viewer in my application.
Hope you can help
Angelo
How to get field list in Datasource AND Dictionary Lists
-
- Posts: 12
- Joined: Thu May 19, 2011 7:41 pm
How to get field list in Datasource AND Dictionary Lists
Hello, Angelo
We do not have universal methods of sorting BO's. Business Objects are so specific that applying to them the standard methods of sorting, filtering, grouping is not possible. You should send your Business Object that is already sorted and grouped.
Thank you.
We do not have universal methods of sorting BO's. Business Objects are so specific that applying to them the standard methods of sorting, filtering, grouping is not possible. You should send your Business Object that is already sorted and grouped.
Thank you.