(RPG) Auto progress to next field

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
DavidS
Posts: 15
Joined: Wed Jan 22, 2014 7:41 pm

(RPG) Auto progress to next field

Post by DavidS »

On normal iSeries screens its possible to have fields set so that once the user has entered the last possible character in a field it automatically moves to the next one (example 7 digit customer code will move on after the 7th digit is entered.)
I've looked through the documentation and can't find the correct way to duplicate this behaviour, I was wondering if someone could point me in the right direction please?
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG) Auto progress to next field

Post by MarkDuignan »

When the keyboard is displayed on an entry field the user should be able to type the number and then press the 'Next' button to advance to the next field.
The form view displayed behind the keyboard should scroll up to show them what they are now entering.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG) Auto progress to next field

Post by MarkDuignan »

If you run the latest RPG shipped demo -> Human Resources -> Employees.
Touch and employee to see their details.
Touch the 'First Name' field and the keyboard will appear.
Use the Next button to advance to the next field.
Note that when 'Sex" drop down appears the Next and Done buttons are at the bottom.
DavidS
Posts: 15
Joined: Wed Jan 22, 2014 7:41 pm

Re: (RPG) Auto progress to next field

Post by DavidS »

Thanks for the reply Mark,
The behaviour my customer has asked for is that rather than having to press "next" on the keyboard, the program automatically moves itself to the next input field (so to use the Employees example, if I hit the end of the first name field the cursor would automatically move to the surname field.)

I think on standard DDS the keyword is CHECK(ER), I've tried setting it on two short numeric fields but it doesn't appear to work which is why I was wondering if there's a longrange property that I can assign that would enable the same behaviour.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG) Auto progress to next field

Post by MarkDuignan »

There is currently no feature like that.
5250 DDS are a completely optional and very basic input/output and form layout mechanism for LongRange.
Very few DDS keywords are supported.
Post Reply