Page 1 of 3
Problem with generic types
Posted: Thu Mar 12, 2015 10:31 am
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
Re: Problem with generic types
Posted: Thu Mar 12, 2015 11:51 am
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.
Re: Problem with generic types
Posted: Thu Mar 12, 2015 12:35 pm
by llysyganicz
Problem also exists in older version
I check project history and we didn't use generic business object at the begining.
Re: Problem with generic types
Posted: Fri Mar 13, 2015 7:33 am
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.
Re: Problem with generic types
Posted: Fri Mar 13, 2015 2:08 pm
by HighAley
Hello.
We have made an improvement.
Please, check our next prerelease build from March 20.
Thank you.
Re: Problem with generic types
Posted: Thu Jun 18, 2015 9:43 am
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.
Re: Problem with generic types
Posted: Fri Jun 19, 2015 2:03 pm
by Ivan
Hello.
Thank you for the sample.
We need some additional time for testing.
We will let you know about results.
Thank you.
Re: Problem with generic types
Posted: Mon Jul 13, 2015 5:47 am
by llysyganicz
Hello,
Do you have any news about this issue?
Re: Problem with generic types
Posted: Tue Jul 14, 2015 12:57 pm
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.
Re: Problem with generic types
Posted: Thu Jul 16, 2015 9:15 am
by HighAley
Hello.
We have made an improvement.
Please, check our next prerelease build.
It will be available on Friday.
Thank you.