|
Tim Kredlo wrote:
The DSPATR(PC) keyword, which can be conditioned by an indicator, would position the cursor to a field. If there are multiple such attributes on a panel which can be satisfied, then the first one is used.I have single choice field on a 5250 data entry screen. I change the initial select value programmatically prior to presenting the screen, and the radio button correctly shows the selection. However, whenever the field 'gets focus', the cursor moves to the first selection and changes its text to reverse image. This incorrectly indicates to the user that the first item is being selected, even though a different radio button shows the correctselection.Question #1: Is there a way to position the cursor at the pre-selected choice? If so, how?
The FLDSCRPRG(panel field name) can be used to to control cursor movement. Typically I use this when I want the tab key to move the cursor down a column, rather than across to the next column. It may be conditioned by an indicator. I used it once to drive a user bananas; everyone else's cursor moved logically from field to field, but his jumped all over the screen.Question #2: Is it possible to have the tab key move the cursor to the next 'choice' selection? If so, how?
I know I can do this without using a 'SngChcFld', but I am hoping I am just missing some attribute or keyword. TIA Tim Kredlo* Jerry C. Adams *iSeries Programmer/Analyst B&W Wholesale Distributors, Inc.* * voice 615.893.8633x152 fax 615.995.1201 email jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>
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.