Cursor Progression on protected fields

0 pts.
Tags:
AS/400
RPG
RPGLE
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.
ASKED: March 22, 2006  11:48 AM
UPDATED: March 22, 2006  12:42 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • DaddyCOZ
    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 pointsBadges:
    report
  • DaddyCOZ
    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 pointsBadges:
    report
  • Tommie
    Thanks much for the suggestions! It worked!
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following