Page 1 of 1

Remove column from the business object dictionary

Posted: Tue Jun 24, 2014 6:49 pm
by Tânia
Hello,

Removed a property in my class that I'm registering in the report, but this property remains displayed business object dictionary, tried running the command:
report.Dictionary.BusinessObjects.Clear ();
report.Dictionary.RemoveUnusedData ();

The first command removed my relationship with the band data, the second did not see any difference.

What should I do to display the deleted columns of my object?

Thank you in advance,
Tânia

Re: Remove column from the business object dictionary

Posted: Wed Jun 25, 2014 8:34 am
by HighAley
Hello.

Please try to use next code:

Code: Select all

StiOptions.Dictionary.BusinessObjects.ColumnsSynchronizationMode = Stimulsoft.Report.Dictionary.StiColumnsSynchronizationMode.RemoveAbsentColumns;
report.Dictionary.SynchronizeBusinessObjects();
Thank you.

Re: Remove column from the business object dictionary

Posted: Wed Jun 25, 2014 2:11 pm
by Tânia
Thank you, it worked

Tânia

Re: Remove column from the business object dictionary

Posted: Thu Jun 26, 2014 7:11 am
by Andrew
Dear Tânia,

Thank you for letting us know about this.