Expand my Community achievements bar.

Controlling height of dummy subforms

Avatar

Former Community Member

Hi

Problem

I have a Table, with a headerRow a BodyRow (can pageBreak) and a FooterRow.

More specifically

  • headerrow = column specification
  • bodyrow = product-data
  • footerrow = total-section

Goal

We want the footerrow to be positioned at the bottom of the currentPage if there is enough space and no pageBreak occurs

We want the footerrow to be positioned at the top of the page if no preceding bodyrows occur on the same page.

Solution

We tried working with a dummy subform to modify it's height based on calculations of the last bodyrow and it's own height compared to the max y value of the page currently visiting.

However, this does not work as it seems some attributes are hidden or not accessible using xfa.resolveNode. We work with several flowed forms, I think that is the rootCause of the hidden height & y values.

1 Reply

Avatar

Level 10

Hi,

// glad you got the presence working OK

John Brinkman has an excellent example of this on his blob (http://blogs.adobe.com/formfeed/scripting/layout/), if you scroll to the end of the page: "Position a Subform at Page Bottom".

I think that this is what you need, but in any case he also has a sample looking at absolute page positions (at the top of the page).

Good luck,

N.