Hello Experts!
I have a very big problem and i hope that anybody of you knows how to solve it.
I have created a dynamic purchase order form for my customer, it is not interactive.
So i created a subform for the header and a subform for the positions of the purchase order. The header subform is divided in three subforms.
One of these sub-subforms is controlled through a mark to set it hidden or visible. This i do through a FormCalc script in the ready:form event.
The header subform is flowed because it contains variable data. Also the position subform is flowed.
To get the header subform on each page after page break, i created a table with a header and only one line. Then i put the header subform into the headerline of the table to repeat it on each page. I put the position subform into the bodyline of the table.
Everything works fine so far.
But when i get an automatic page break, beacause the positions reached the end of the page and go to the next content area, the hidden sub-subform of my header subform in the header line of the table appears. I don´t understand why. It looks like, that the hide command will be ignored.
I tried to hide the sub-subform in the header subform also in the ready:layout event, but this leads to an empty block because the following subform will not be moved up to the empty space. So i think i must find a way to hide the sub-subform between ready:form where the pagebreaks have not been inserted and the ready:layout where the page breakes have been inserted. I also tried at initilization event, but this does also not work.
I also take the other way, that the sub-subform is completely exluded from the layout and only if the mark is set, than set it visible. That also does not work because it would be shown on first page, but after page breake it does not appear.
Does anybody of you have an idea or a solution, how to hide my sub-subform after an automatic page break occures?
Thank you in advanced!
Best regards from germany!
Björn