Page 1 of 1

How to customize BusinessObjects column

Posted: Thu Jan 19, 2012 6:37 am
by tevildo
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!

How to customize BusinessObjects column

Posted: Fri Jan 20, 2012 7:27 am
by Alex K.
Hello,

Please send us a sample rpoject for analysis.

Thank you.

How to customize BusinessObjects column

Posted: Fri Jan 20, 2012 8:30 am
by tevildo
Hello,

I've sent an email to support@stimulsoft.com.

How to customize BusinessObjects column

Posted: Fri Jan 20, 2012 10:19 am
by Andrew
Ok! Thank you.

How to customize BusinessObjects column

Posted: Tue Jan 31, 2012 10:17 am
by Ivan
Hello,

Please instead of code:

Code: Select all

           BO.BusinessObjectValue = new List() { AM };
use the following line of code:

Code: Select all

           Report.RegBusinessObject(BO.Category, BO.Name, BO.Alias,  new List() { AM });
Thank you.