× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Tue, 2003-07-15 at 10:22, Chandra Sekhar Rath wrote:
>      Hi Booth,
>      
>      The existing one indeed is an expanding subfile which i wanted to
> convert to a Single Page One.

Hi Chandra

One option for processing subfile requests for a page no longer shown is
to store them in a keyed data queue. Put the relative record number of
the record (database file RRN, not the SFLRRN) in a hidden field on the
subfile. When you process the screen (page up/down F-key, Enter etc),
read the subfile first and add a data queue entry with the record RRN as
key and the subfile option as data value. When you build the subfile for
a page up/down, check if there are any matching entries in the data
queue, and pre-load the subfile option field with the value from the
data queue. When the time comes to process subfile options (eg. Enter
pressed), then you process entries in the data queue instead (as it
holds all selected subfile record options) and retrieve the identified
record for processing. 

Kevin Vandever wrote a good article on this technique over at
MidrangeServer -
http://www.midrangeserver.com/mpo/mpo052302-story05.html which includes
example code. I modified one of my utilities, WRKUSROUTQ,
http://www.dbg400.net/usroutq.html - to use the technique on a single
page/page by page subfile and it made a big difference to the usability
of the program. You can find my take on the code required in the search
add-on zip file - 
http://www.dbg400.net/download/extras/wrkusroutq/wuo_search.zip - look
at the DBG186R4 RPGLE member.

Regards, Martin
-- 
martin@xxxxxxxxxx  AIM/Gaim: DBG400dotNet  http://www.dbg400.net       /"\
DBG/400 - DataBase Generation utilities - AS/400 / iSeries Open        \ /
Source free test environment tools and others (file/spool/misc)         X 
[this space for hire]  ASCII Ribbon Campaign against HTML mail & news  / \


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.