|
Hi Booth, That is great thanks, I have got the program compiled and am using the scroll bar. However a couple of points still need sorting out. You can use SFLLIN and SFLMLTCHC at the same time, then I wondered how to identify the selected fields from the subfile and found the SFLCHCCTL keyword after looking on the net, at the moment it doesn't work, I have tried using *ULR and *ULP but haven't managed to get them working. *ULD only selects the field I did the double click on. It is a work in progress and I have had to shift to a more urgent job at the moment so I will get back to it later and see if I can get the thing working properly. As to the scroll bar I do find that it is a little quirky, and not that good. It is slow and sometimes doesn't move the subfile at all until I drag it to the top or bottom and then of course I have to use the page up/down keys. So unless I am doing something totally wrong I shall probably take it out. Thanks again for your help Booth, yet again you save the day, which of the Thunderbirds do you pilot? :-) Steve -----Oorspronkelijk bericht----- Van: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]Namens Booth Martin Verzonden: vrijdag 1 december 2006 17:36 Aan: RPG programming on the AS400 / iSeries Onderwerp: Re: Mouse selection on a subfile. Here is an example of what you want. http://www.martinvt.com/Code_Samples/2_subfiles/2_subfiles.html or http://tinyurl.com/8v4q8 The keywords that interest you are SFLSNGCHC and SFLMLTCHC and MOUBTN(*ULD ENTER). It is in my memory that you can not use SFLLIN and SFLMLTCHC at the same time, but my memory is notoriously unreliable so you may want to review the manual. The user can use the mouse click or the space bar to toggle selections. By the way, note that this example uses the scroll bar. The scroll bar works just like the scroll bar anywhere else. It is not crippled or lacking features. It seems ideal for your application. Be sure to use a load-all subfile and pass the subfile size as an accurate number to get the fullest benefit if you do decide to add a scrollbar Raby, Steve wrote:
Hi Chaps and chapesses, I have a subfile where the user can select one or more records. Basically it is just a code for air waybills (xxx xxxx xxxx) so the subfile is displayed in four columns with a select field in front of each code. Now I thought it would make the users life easier if he/she could select the records by mouse. So the scenario is that the user clicks on as many records per screen as they want and then press enter to process them. This process is to replace the current one where the user has to go thru 3 screens per AWB with mucho repeatative keying of data. So am I being too ambitious? I have tried using MOUBTN and PSHBTNFLD today (for the first time) going thru the examples and documents I can find on the net and in here, and they work fine, but they are for a single event, ie Enter, Exit etc. what I want to do is flag all the records they want and then process them en masse. I have tried various things but none even compile. Can it be done? Steve
As an Amazon Associate we earn from qualifying purchases.
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.