|
On Wed, 2005-06-22 at 19:15, Wilt, Charles wrote: > All, > > I like the theory behind RPGbeans, just downloaded it to check it out. > Wanted to try them out on a new project. But how to best handle subfile > requirements? > > The application I'm working on will be a "Work With" subfile application and > include the ability to subset and/or position to. > > How are you bean guru's handling this type of application requirements? Hey Charles, There are a couple options for subfiles that come to mind. You can add the ability to handle RecordSets as outlined in the second Encapsulation article: http://www.itjungle.com/fhg/fhg011205-story01.html You could either recreate the recordset based on each new subset/position to, or you could have the Bean return an Array of records and then use something like Bob Cozzi's Array sorting (sorry, don't have a link) to provide the navigation. In either case, separate the subfile operations from the maintenance operations. Capture the appropriate key from the selected subfile record and send use it to create the current Bean. Then in your maintenance screen, you can issue the gets and sets and use the Update/Insert/Delete functions. Joel Cochran http://www.rpgnext.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.