DDS SNGCHCFLD feature

Hi Experts,

In a DDS screen definition, someone used radio buttons (SNGCHCFLD). Cool, never used that :-)
This selection field is sometimes generating an error in the underlying background program, took me some time to find out why, the follow is happening:
In DDS I see:
CHOICE(1 'Day')
CHOICE(2 'Week')
CHOICE(3 'Month')
In the program the field SELDWM defined on the SNGCHCFLD is set to 1 (Day is default)
By clicking the mouse it is only possible to select one of the options, so field SELDWM is always 1,2 or 3.
but if the user select with cursor-keys and space-bar, he/she can also switch-off all choice fields and set the field on 0.

I can set the field to 1 if it is 0, but I prefer to make it impossible to deselect a choice with the space-bar,
or define a default in DDS, so that deselect is automatic default button on (visible).

Is there an option?
LVL 17
Theo KouwenhovenApplication ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gary PattersonVP Technology / Senior Consultant Commented:
Hi Theo,  Try specifying:  *AUTOSLT *NOSLTIND
Theo KouwenhovenApplication ConsultantAuthor Commented:
Hi Gary,

In that case I don't see the radio-buttons (text only) but the user is still able to make an 0 selection instead of 1,2,3
Now I set the field to 1, so the issue is solved, but setting a value to zero (that is not in the list) is an unwanted situation I think
Theo KouwenhovenApplication ConsultantAuthor Commented:
I thought I had a bright moment,
and try to change the choises from 1,2,3 to 0,1,2 (with the idea not 1 and not 2 is 0)
but the value 0 is not allowed for a choice field :-(
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Gary PattersonVP Technology / Senior Consultant Commented:
Sounds like that's the best solution available.  Yes - zero index is not allowed - that return means "no selection".
Theo KouwenhovenApplication ConsultantAuthor Commented:
Gary,

That means, "no selection" is not allowed?
strange that I can make the no selection with the spacebar......
Theo KouwenhovenApplication ConsultantAuthor Commented:
set the field to 1 if it is 0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
RPGLE

From novice to tech pro — start learning today.