Link to home
Start Free TrialLog in
Avatar of Theo Kouwenhoven
Theo KouwenhovenFlag for Netherlands

asked on

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?
Avatar of Gary Patterson, CISSP
Gary Patterson, CISSP
Flag of United States of America image

Hi Theo,  Try specifying:  *AUTOSLT *NOSLTIND
Avatar of Theo Kouwenhoven

ASKER

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
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 :-(
Sounds like that's the best solution available.  Yes - zero index is not allowed - that return means "no selection".
Gary,

That means, "no selection" is not allowed?
strange that I can make the no selection with the spacebar......
ASKER CERTIFIED SOLUTION
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial