ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Position to a protected field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Position to a protected field

    Hi to all,
    In display file i am facing a problem. I have to position to a protected field which is having a prompt on it. That field has to be protected from entry but has to populated from prompt.

    When tab is pressed on the FLD1 it has to position to FLD2 instead of FLD3.

    FLD1 : BBBBBBBBB
    FLD2 : BBBBBBBBB + (Protected Field)
    FLD3 : BBBBBBBBB


    Thanks in advance...

  • #2
    Re: Position to a protected field

    untried but....maybe you can use the position cursor attribute on the display file. use the same indicator you use for protecting the field on the PC attribute specifying position cursor when NOT on.

    psuedo-code:
    protect when *in50 = *On;
    position cursor when Not *in50
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: Position to a protected field

      Just as a caveat, you won't be able to use CSRINPONLY if you want to put the cursor on that field to prompt.
      http://www.linkedin.com/in/chippermiller

      Comment


      • #4
        Re: Position to a protected field

        For the FLD2, make the following change in your display file

        Keyboard shift attribute . . . . . . . I

        --------------------------------------------------------------------



        Select Keying Options

        Field . . . . . : ACCGR0 Usage . . : B
        Length . . . . : 10,0 Row . . . : 9 Column . . . : 30

        Type choices, press Enter.

        Keyword Y=Yes Indicators/+
        Keying options: CHECK
        Mandatory entry . . . . . . . . . . . ME
        Automatic record advance . . . . . . ER
        Mandatory fill . . . . . . . . . . . MF
        Field exit key required . . . . . . . FE
        Right adjust blank fill . . . . . . . RB
        Right adjust zero fill . . . . . . . RZ



        Keyboard shift attribute . . . . . . . I S N Y I D
        I got blocked cause I dont know proper
        forum manners!!!!!!!!!!!

        Comment

        Working...
        X