Preparing a Scrollable Region for Processing

In addition to this, there is special processing that has to be done for a scrollable region. When you define fields in a scrollable region, you define the fields on the first row. You also tell Vermont Views how many visible rows are in the scrollable region and how many rows of data. Vermont Views automatically takes care of displaying the extra rows of fields. This is all handled during form initialization.

When initializing a scrollable region, Vermont Views creates additional field structures for each visible row in the region. It does not create field structures for each data row; instead, it associates the data pointers, starting with data row 0, to the visible fields. As the user scrolls through the scrollable region, Vermont Views scrolls the data pointers so that the correct data is displayed in the visible field. The field structures are stationary; they act as placeholders for the data, which scrolls into and out of the fields. (This is why it is difficult to change the attribute of a field in a scrollable region based on the value in the field. As the region scrolls, the field structure retains the new attribute, but the data that should be associated with this attribute scrolls up and down the screen).


Home Contents Previous Next