Page header contains wrong businessobject data

Stimulsoft Reports.NET discussion
Post Reply
Rythorn
Posts: 5
Joined: Thu Jun 16, 2016 8:07 am

Page header contains wrong businessobject data

Post by Rythorn »

Hi,

I will try to explain the problem with a sample project

The sample project exports 6 pdf files. 3 files with business object PersonData and 3 files with business object PersonData2.
Difference between these two objects : PersonData contains a property RowData and PersonData2 contains a list of RowData.
Export of PersonData is OK, Column 2 contains the correct data but the export of PersonData2 is not OK – Column2 is always 1.


See sample project in attachment to reproduce this problem.
Reports are located in the bin\debug\reports folder.
Exports are located in the bin\debug\exports folder.

PersonData 1.pdf (business object with one property RowData)
Column1 Name Column2 1

PersonData 2.pdf (business object with one property RowData)
Column1 Name Column2 2

PersonData 3.pdf (business object with one property RowData)
Column1 Name Column2 3


PersonData2 1.pdf (business object with list of RowData)
Column1 Name Column2 1

PersonData2 2.pdf (business object with list of RowData)
Column1 Name Column2 1 --> wrong, should be 2

PersonData2 3.pdf (business object with list of RowData)
Column1 Name Column2 1 --> wrong, should be 3


How can I solve this issue?

Ken
Attachments
TestStsHeader.zip
(308.9 KiB) Downloaded 146 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page header contains wrong businessobject data

Post by HighAley »

Hello, Ken.

The issue is in the differences of your business objects. In the second business objects RowData property of PersonData2 has List<RowData> type.
The list should be used on a band. Then it will be initiated right and will show all data. But there is no band on your report. So at the second rendering the data are not updated.

To solve the issue, please, add next code to the BeginRender event of the report:

Code: Select all

PersonData2.SetDetails();
Thank you.
Rythorn
Posts: 5
Joined: Thu Jun 16, 2016 8:07 am

Re: Page header contains wrong businessobject data

Post by Rythorn »

Hi,

This works as long as I don't add any other components on the page.

I added a data row to the page and now I get this result

- PersonData2 1.pdf
(header row) Column1 Name Column2 1 --> ok
(data row) Name 1 --> ok

-PersonData2 2.pdf
(header row) Column1 Name Column2 1 --> this should be 2
(data row ) Name 2 --> ok


-PersonData2 3.pdf
(header row) Column1 Name Column2 2 --> this should be 3 (this contains data of the previous object?)
(data row ) Name 3 --> ok

See attachment.

Kind regards,
Ken
Attachments
TestStsHeader.zip
(201.95 KiB) Downloaded 150 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page header contains wrong businessobject data

Post by HighAley »

Hello.

Sorry, for delay with answer.
This question need more time that we thought.
We will let you know when we get any result.

Thank you.
Rythorn
Posts: 5
Joined: Thu Jun 16, 2016 8:07 am

Re: Page header contains wrong businessobject data

Post by Rythorn »

Hi,

Any news on this matter?

Kind regards,
Ken
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page header contains wrong businessobject data

Post by HighAley »

Hello.

Sorry, but we found many issues in our engine.
It's not so easy to make an improvement.
We are still working on it and will let you know when we get any result.

Thank you.
Rythorn
Posts: 5
Joined: Thu Jun 16, 2016 8:07 am

Re: Page header contains wrong businessobject data

Post by Rythorn »

Hi,

Still no news?

Kind regards,
Ken
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Page header contains wrong businessobject data

Post by Alex K. »

Hello,

Sorry for the delay with response.
Unable to solve the problem quickly.
We have made some improvements, please check the next build when it will be available in the next week.

Thank you.
Rythorn
Posts: 5
Joined: Thu Jun 16, 2016 8:07 am

Re: Page header contains wrong businessobject data

Post by Rythorn »

Hi,

Problem seems to be solved in version 2017.1
Need to do some more testing but looks promising :)

Thank you.

Kind regards,
Ken
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Page header contains wrong businessobject data

Post by Alex K. »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply