Hello,
First I'd like to say that Docmosis is very well documented, with examples that are easy to understand and to try out yourself. Thanks for that!
I have a question regarding headers and footers of the document (I'm using Docmosis 2.0):
I have a repeating section which repeats over a list of persons and which generates 1 or 2 pages per person. I would like to have a footer which contains the name of the current person in the loop on each page. I'm not sure if this is possible, because as far as I've noticed, the header and footer of the document are set only once, at the beginning of rendering the document?
I've tried to make this work using a global custom variable $currentPerson, which I set in the loop as follows: $currentPerson=$idx. Then in my footer, I tried to do this: allPersonens.x[$currentPerson].name (allPersons being my named ArrayList with persons), but it doesn't work. When I try to print the name of the person in the footer statically like this: allPersons.x[0].name, it does work, but I need to have some sort of counter or another way to get the current person in the footer.
Is this possible?
Thanks in advance!
Hello HoSpiTaL_gHoSt.
Thanks for the positive feedback - it's much appreciated.
Docmosis doesn't currently support this. The headers and footers are populated independently of the content of the document, so in your example, the current person is not known at the time of populating the footer. If we can come up with a solution we'll let you know.
