Smart form page protection at runtime
I believe I have a bit special requirement to achieve in this scenario. Please help me if there is some good way to do it.
I have a smart form structure as shown below. Now there are certain elements ( highlighted in the image) which should display in one single page.
In other words, they should never display separately in different pages. If there is not much space available in current page,
a page break should happen and all of these elements should display in the next page.
The row width( MPO_DATA_ROW1 ) is not constant. Because it has a loop inside and hence the width will vary.
I want atleast the first row from DATA_TABLE1 to display with TEXT9 and HEADER_TABLE1.
Sample Output of such elements together:
My concern is:
1. How will I know how much space is left on the current page, at runtime. So that I can judge and do a page break ( Using command ) .
2. I have to determine how much space will these elements together take, beforehand. And due to the inner loops their width is not fixed.
I am aware of Folder concept and page protection. But I believe I cannot apply those here.
Kindly suggest some way!