Consultor Eletrônico



Kbase P20082: How to control the number of visible rows in the viewport of the browse.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/23/2010
Status: Verified

GOAL:

4GL/ABL: How to determine the number of visible rows in a BROWSE widget viewport?

GOAL:

How to use the BROWSE widget NUM-ITERATIONS attribute to get the number of its currently visible rows?

GOAL:

How to use the BROWSE widget DOWN attribute to access the number of rows that appear in its viewport?

GOAL:

How does the BROWSE widget NUM-ITERATIONS attribute differ from its DOWN attribute?

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

FIX:

The number of visible rows in a BROWSE widget viewport is obtained using its NUM-ITERATIONS attribute or its DOWN attribute.
The following statement demonstrates the syntax of using the BROWSE widget NUM-ITERATIONS attribute to get the number of its currently visible rows:
MESSAGE BROWSE-1:NUM-ITERATIONS
VIEW-AS ALERT-BOX INFO BUTTONS OK.
The following statement demonstrates the use of the BROWSE widget DOWN attribute to access the number of rows that appear in its viewport:
MESSAGE BROWSE-1:DOWN
VIEW-AS ALERT-BOX INFO BUTTONS OK.
Although both the BROWSE widget DOWN and NUM-ITERATIONS attributes return the number of rows displayed in its viewport, the NUM-ITERATIONS attribute is a READ ONLY attribute while the DOWN attribute is a READ/WRITE attribute.