How to get field list in Datasource AND Dictionary Lists
Posted: Mon Jun 06, 2011 12:48 am
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
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