So, there is this thread here , in which there is an example that creates a different title for the first page than the rest of the pages. I can download this example and run it in order.
When I tried to imitate this example, I could not do it (Clarification: after changing the source to the database of my source, the header would not change correctly). In the end, I started copying parts of my report to a sample to see what caused the problem (Clarification: I removed the differences between my report and the example one by one to determine the exact difference that caused the problem). It turned out to be my desk.
For some reason, I canβt explain if I am adding a new dataset myself, deleting a table using an example database and adding a table using my dataset, this will not work. When I say that this will not work, I mean that each heading is the same on every page and will not change for subsequent pages as expected.
If I run the debugger and set a breakpoint on a script that forces a different first and different page content (shown below) than what seems to be happening is that the onRender event is fired on each page in the database example table. .. but with my table it only gets called once. This leads to the fact that the main page only checks the onRender script once at the beginning, when the variable pageNumber = 1. I do this for hours and hours and I really like someone who can know why this is to help me, please.
Here is the code:
if( pageNumber > 1 ){ this.getStyle().display = "none"; }
Your help and knowledge is greatly appreciated,
-Asaf
source share