Processing to run against each highlighted line of a browse lookup
Richard Kreiss
rkreiss at gccconsulting.net
Thu Apr 30 11:22:10 PDT 2020
I thought his original post wanted an option to be run without user input.
If course he could always use an output process which selects just the records need to be processed. This avoids a lot of programming issues.
Of course using an array top hold the record information is most likely the simplest solution. If a user needs to start the operation then the browse exit keys could start the process.
The user could select the records to be processed by loading them into an array and then starting the posting process or whatever is to be done to those records. Or all of the records could be loaded into an array by doing this with the drop option sub-routine.
Richard Kreiss
GCC Consulting
> -----Original Message-----
> From: Filepro-list <filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com>
> On Behalf Of Bruce Easton via Filepro-list
> Sent: Thursday, April 30, 2020 1:43 PM
> To: filepro-list at lists.celestial.com
> Subject: Re: Processing to run against each highlighted line of a browse lookup
>
> On 4/30/20 12:40 PM, Jose Lerebours via Filepro-list wrote:
> > On 4/30/20 12:27 PM, James Flanagan via Filepro-list wrote:
> >> Freebsd 10.3
> >> Filepro 5.7.00.09D4
> >>
> >> I am looking for solution where I can get some processing to run for
> >> each highlighted line of a browse lookup, ideally without hitting
> >> another keystroke.
> >>
> >> Of course, using @SK eq “ENTR”, I can accomplish what I want to do,
> >> BUT that requires me to use the arrow key up or down, and then hit
> >> enter for each record to run processing on.
> >>
> >> What I would like is if the browse lookup would recognize the @SK’s
> >> CRUP and CDWN keys (it appears that it does not do so despite not
> >> giving any syntax error), and then run processing on the highlighted
> >> record for each highlighted bar movement.
> >>
> >> Is there a method for moving the highlight in a browse lookup AND
> >> running some processing in a single keystroke? Thank you very much,
> >> in advance...
> >>
> > some 20+ years ago I ran into the same issue and my solution was to
> > write the code where:
> >
> > 1. Load records onto array(s)
> > 2. Use show command in loop processing to display rows 3. Use waitkey
> > to capture key stroke
> >
> > @sk will hold the value and by using this method, I was able to create
> > custom browse processes where, at times, one row include the
> > equivalent of 3 rows worth of data.
> >
> > Additionally, I was able to give user options to move right/left,
> > up/down, top/bottom and gave me countless options to control data
> > content and flow.
> >
> > To do this, you will need a good understanding of use of arrays ...
> > and once you write the code, you may never use standard browse
> > processing.
>
> I used a technique similar to what Jose has described (also years ago).
>
> I also have made use of a standard browse lookup with its "Exit Keys"
> being either 8/6/2/4 for use on a number pad or some other combination of
> keys that would allow the operator to simulate the use of the
> up/down/left/right "arrow" keys. For this latter technique, I included a visual
> representation of the pseudo-arrow key usage at the bottom of the screen -
> usually overriding lines 22-24.
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 13735 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200430/0aba95a3/attachment.bin>
More information about the Filepro-list
mailing list