DDS SNGCHCFLD feature

Theo Kouwenhoven
Theo Kouwenhoven used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Gary PattersonVP Technology / Senior Consultant

Commented:
Hi Theo,  Try specifying:  *AUTOSLT *NOSLTIND
Theo KouwenhovenApplication Consultant

Author

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 Consultant

Author

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 :-(
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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 Consultant

Author

Commented:
Gary,

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial