O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a Subfile to Display List API Entries

You will probably have some applications that involve loading the results of a list-type API into a subfile for display to the end user. This can be straightforward enough in many cases, but can be a problem in others. The problem has to do with the fact that subfiles can only hold up to 9,999 records, while list APIs can return anywhere from tens to hundreds of thousands of list entries. Simply loading the list entries into the subfile won’t allow the user to see past the first 9,999 entries.

In this section, we do not introduce any new APIs. Rather, we show you how to use a SFLSIZ = SFLPAG subfile so that your application doesn’t care if there are two or 200,000 entries in a generated list. The application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required