Page 1 of 1

Page header contains wrong businessobject data

Posted: Thu Jun 16, 2016 8:17 am
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

Re: Page header contains wrong businessobject data

Posted: Fri Jun 17, 2016 12:13 pm
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.

Re: Page header contains wrong businessobject data

Posted: Tue Jun 21, 2016 7:44 am
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

Re: Page header contains wrong businessobject data

Posted: Wed Jun 22, 2016 6:07 am
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.

Re: Page header contains wrong businessobject data

Posted: Wed Aug 10, 2016 6:41 am
by Rythorn
Hi,

Any news on this matter?

Kind regards,
Ken

Re: Page header contains wrong businessobject data

Posted: Thu Aug 11, 2016 11:47 am
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.

Re: Page header contains wrong businessobject data

Posted: Wed Mar 01, 2017 2:47 pm
by Rythorn
Hi,

Still no news?

Kind regards,
Ken

Re: Page header contains wrong businessobject data

Posted: Fri Mar 03, 2017 9:40 pm
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.

Re: Page header contains wrong businessobject data

Posted: Tue May 02, 2017 8:09 am
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

Re: Page header contains wrong businessobject data

Posted: Tue May 02, 2017 11:05 am
by Alex K.
Hello

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

Thank you.