Page header contains wrong businessobject data
Page header contains wrong businessobject data
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
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 145 times
Re: Page header contains wrong businessobject data
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:
Thank you.
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();
Re: Page header contains wrong businessobject data
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
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
Re: Page header contains wrong businessobject data
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.
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.
Re: Page header contains wrong businessobject data
Hi,
Any news on this matter?
Kind regards,
Ken
Any news on this matter?
Kind regards,
Ken
Re: Page header contains wrong businessobject data
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.
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.
Re: Page header contains wrong businessobject data
Hi,
Still no news?
Kind regards,
Ken
Still no news?
Kind regards,
Ken
Re: Page header contains wrong businessobject data
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.
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.
Re: Page header contains wrong businessobject data
Hi,
Problem seems to be solved in version 2017.1
Need to do some more testing but looks promising
Thank you.
Kind regards,
Ken
Problem seems to be solved in version 2017.1
Need to do some more testing but looks promising

Thank you.
Kind regards,
Ken
Re: Page header contains wrong businessobject data
Hello
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.