2025-11-15 12:58:14 -05:00
..
2025-11-15 12:58:14 -05:00
2025-03-29 12:48:28 -04:00
2025-03-29 12:48:28 -04:00
2025-03-29 12:53:30 -04:00
2025-03-29 12:48:28 -04:00
2025-03-29 12:48:28 -04:00
2025-03-29 12:48:28 -04:00
2025-03-29 12:53:30 -04:00

Experimental Stuff

This is code that may come and go. It is usually minimal and may not reflect my usual standards and approach.

Protection of SNGCHCFLD & MLTCHCFLD Display File keywords

A user asked how to protect SNGCHCFLD and/or MLTCHCFLD fields on a display. As far as I can tell, he wanted to protect the fields on a confirmation screen, before accepting changes.

It seems there is no way to do that, because you cannot use an indicator on these fields.

This is a work around where the the choices are redisplayed as normal fields in place of the SNGCHCFLD & MLTCHCFLD fields.

B2.DSPF

This is the display file. It is as minimal as possible to demonstrate the process and was cribbed initially for the original questioner's DDS.

The initial display looks like this:

Initial

Make entries and choices, perhaps like this:

Make entries

Press enter and see this confirmation screen:

Confirmation

Press F12 and you are back to the original entry.

Redisplayed

Enter exits the program.

B2.RPGLE

The driving RPGLE. There are comments in the code. The choice fields are in an array and can easily be changed with minimal effort.