Problem with generic types

Stimulsoft Reports.WPF discussion
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Problem with generic types

Post by llysyganicz »

I have problem with business object that is generic type.
I create business object

Code: Select all

var model = new Model<Model2>();
model.Author = "Author";
model.M2 = new Model2
{
  Content = "Contnet",
  Title = "Title"
};
and add it to report

Code: Select all

report.RegBusinessObject("Doc", model);
In report designer I can access only fields from Model2.
Generics worked in version 2013.3
Attachments
StiTest.zip
Test project
(8.28 MiB) Downloaded 519 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with generic types

Post by HighAley »

Hello.

Thank you for the sample.
We have reproduced the issue.
We use reflection to get structure of objects, there could be problems with it.
We need some additional time for testing.
We will let you know about results.

Thank you.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Problem with generic types

Post by llysyganicz »

Problem also exists in older version
I check project history and we didn't use generic business object at the begining.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with generic types

Post by HighAley »

Hello.

Thank you for the additional information.
We have to make an improvement for supporting your business objects.
It will take some time. we will let you know when we get any result.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with generic types

Post by HighAley »

Hello.

We have made an improvement.
Please, check our next prerelease build from March 20.

Thank you.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Problem with generic types

Post by llysyganicz »

Hello,

After your improvment I have problem with generic collection.
When I have empty list then for business object I have two columns: Capacity and Count. Those columns are properties of List<> type.
When list have at least one element then I get proper columns.
Sample project in attachment.

In my business project I use entity framework and lazy loading. Efect is the same like with empty list.
Attachments
StiTest.zip
(79.46 KiB) Downloaded 491 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Problem with generic types

Post by Ivan »

Hello.

Thank you for the sample.
We need some additional time for testing.
We will let you know about results.

Thank you.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Problem with generic types

Post by llysyganicz »

Hello,

Do you have any news about this issue?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with generic types

Post by HighAley »

Hello.

We made some improvements but after this large refactoring was made and there is something wrong again.
We need a few additional days to fix it.
We will keep in touch with any news.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with generic types

Post by HighAley »

Hello.

We have made an improvement.
Please, check our next prerelease build.
It will be available on Friday.

Thank you.
Post Reply