How to customize BusinessObjects column
Posted: Thu Jan 19, 2012 6:37 am
Hello,
I want to customize the BusinessObjects columns. I want to hide some columns and change the alias.
I'm trying to do that with this code:
BO.BusinessObjectValue = new List() { AM };
BO.Columns.Add(new StiDataColumn("Column_1", "Name", Type.GetType("System.String")));
BO.Columns.Add(new StiDataColumn("Column_2", "Description", Type.GetType("System.String")));
Report.Dictionary.BusinessObjects.Add(BO);
Report.Dictionary.SynchronizeBusinessObjects();
Report.Dictionary.Synchronize();
The BusinessObject appears in the Dictionary Panel, but the preview doesn't list any data.
Thanks!
I want to customize the BusinessObjects columns. I want to hide some columns and change the alias.
I'm trying to do that with this code:
BO.BusinessObjectValue = new List() { AM };
BO.Columns.Add(new StiDataColumn("Column_1", "Name", Type.GetType("System.String")));
BO.Columns.Add(new StiDataColumn("Column_2", "Description", Type.GetType("System.String")));
Report.Dictionary.BusinessObjects.Add(BO);
Report.Dictionary.SynchronizeBusinessObjects();
Report.Dictionary.Synchronize();
The BusinessObject appears in the Dictionary Panel, but the preview doesn't list any data.
Thanks!