0 pts.
 Cursor Progression on protected fields
I want to use FLDCSRPRG to control the cursor movement on fields I have protected. The fields are protected because I need the user to prompt a lookup window and enter only correct selections from a specific table in these filds. However, If I protect the field with DSPATR(PR), the FLDCSRPRG does not work, the fields are skiped with tab or field exit. Any help would be greatly appreciated.

Software/Hardware used:
ASKED: March 22, 2006  11:48 AM
UPDATED: March 22, 2006  12:42 PM

Answer Wiki:
DSPATR(PR) has been around since Day-1...its purpose is to prevent the user from changing the data in the field...and since the user can't change the field, the cursor doesn't stop there. You have a couple of options: 1) Don't protect the field, but edit what the user enters to only allow values from the prompt list. 2) Put a 1-character unprotected field in front of the protected field so the cursor has a place to land. When the user presses the prompt function key, update the protected field with the selected value. Hope this helps.
Last Wiki Answer Submitted:  March 22, 2006  12:08 pm  by  ChuckM   0 pts.
All Answer Wiki Contributors:  ChuckM   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

The second option as described by ChuckM is pretty good. But, you will also want to set the display attribute to ND Non Display. This makes the screen look cleaner to the user. If the user accidentially enters something into the field, you can easily igore it. At least the user will think he or she is moving to the right field.

 0 pts.

 

The second option as described by ChuckM is pretty good. But, you will also want to set the display attribute to ND Non Display. This makes the screen look cleaner to the user. If the user accidentially enters something into the field, you can easily igore it. At least the user will think he or she is moving to the right field.

 0 pts.

 

Thanks much for the suggestions! It worked!

 0 pts.