Check for vertical scroll bar

Hi all,

I want to make a template that has 2 (power)tables.
Top table displays data, bottom table is just one line and displays a total. (see screenshot)

Everything syncs nicely and totals are automatically updated.
My only remaining issues are:
a) detect if top table has its vertical scroll visible
b) based on (a) resize width of bottom table

My alternative is to force a 2nd row into the bottom data set if there are more than x rows in the top data set - but that is not very elegant.

Any ideas?


You can turn it on through scripting.
Don’t know how you populate your table, but for example putting this in a propertyChange script:

if propertyName=="data": t=event.source.parent.getComponent('Power Table') t.setVerticalScrollBarPolicy(t.VERTICAL_SCROLLBAR_ALWAYS)