Skip to main content
Question

Show many records without paged-grid

  • April 13, 2026
  • 3 replies
  • 45 views

Andreas Weinand
Forum|alt.badge.img+2

To show records of a vision file we use paged-grids and the majority of our users are fine with that.

There is one customer (and unfortunately our most important one) who wants a “standard scrollbar”.
The answer that this is only doable when we know how many records are 100% does not convince him and he does not let it go.

So we thought of a lazy-loading scenario.
We load and show the first 100 records and when he drags the grid thumb all the way down to the end of the grid we try to load more records.
The problem is that the grid does not give an event when reaching the last record.

Does anyone have an idea how to solve this ?
Or do you have a totally different approach ?

3 replies

Claudio Contardi
Forum|alt.badge.img+2

Can your grid work as web sites do?

Once you’ve scrolled the 100 rows to the bottom, you could then add a few push buttons to “Load the next 100”, or “go back to the previous 100”. 


Andreas Weinand
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • April 13, 2026

We use ACUCOBOL-GT grids … does this answer your question ?

Do you have a sample how this could look and feel ?


James Whalen
  • New Participant
  • April 21, 2026

If you need the number of records in the file, use the I$IO INFO-FUNCTION on your file. This returns a bunch of information on your index file, including the number of records. Then you can build your Grid with the scroll bars.

You can check out the filesys.def COPY file, it contains the layouts for each kind of information. This is op-code 4.

Of course the AcuCobol documentation is horrible on this and many other topics.

I think another one of our programmers used that. I will have to dig around to see if I can find a sample. Otherwise you may check out the sample programs, they might have a sample as well.