Hide/show on Form

 8 Replies
 3 Subscribed to this topic
 15 Subscribed to this forum
Sort:
Author
Messages
PV Rajan
Basic Member
Posts: 12
Basic Member
    Hi:
    Is it possible to show/hide a field on Lawson Portal based on the RD30 Record ? . E.g I want to hide the field 'Process Level' on AP20 form to some ids while it shall be displayed for others. If yes, how to do this?. Thanks in advance!

    John Henley
    Posts: 3353
      You can hide it via Design Studio, using Javascript to access the username and hide/show the field.
      Thanks for using the LawsonGuru.com forums!
      John
      Mark F. Hardy
      Veteran Member
      Posts: 44
      Veteran Member
        This was from a post 8 years ago.
        Has this changed? Are there any other ways to do this in 2014?
        We have Lawson Security 9; can this be done with LSA somehow?
        JimY
        Veteran Member
        Posts: 510
        Veteran Member
          LSA is just used for security. I believe it is still the same. You would have to use Design Studio.
          Mark F. Hardy
          Veteran Member
          Posts: 44
          Veteran Member
            Thanks for the quick reply, JimY.
            Kwane McNeal
            Veteran Member
            Posts: 479
            Veteran Member
              Mark,
              JimY's answer isn't the complete picture.

              So ultimately it depends on exactly what you're trying to remove, and from what...

              If the form is a DS mod AND the element you need to remove is being manipulated with DS, then most likely it's going to require DS. (there are cases LS can work)
              If the form is a DS mod AND the element is part of the base form (not being manipulated with DS), then it may be possible to remove with LS depending on the type of element
              ...and, of course, if the from is pure COBOL/4GL, then removing fields and tabs can be done with either DS or LS

              In the example posited in this post originally (Removing ProcLevel from AP20), it is possible to do just that with LS, with a caveat...
              Since ProcLevel is usually a key field, it isn't allowed to be blank (SPACES or null). In that case, what LS can NOT do is default the field to a certain value.
              You'd need DS for that, AND there may be challenges with it.

              Now, if you're wanting to GLOBALLY remove a label, then that would be far simpler using DS.

              Kwane

              Mark F. Hardy
              Veteran Member
              Posts: 44
              Veteran Member
                Thanks, Kwane.

                We want to suppress TAXID on AP10 so some users cannot view the number.
                It is an alpha field. But it looks like the only options LSA allows is GRANT ALL, or DENY ALL.
                There doesn't seem to be a conditional option whereby we could deny only certain security classes.

                We are on an Iseries and the code seems to be RPG.
                Al
                Basic Member
                Posts: 17
                Basic Member
                  Seems you'd want to create separate security classes for those who should see it and those who should not.
                  I've done this on AP10 and related file APVENMAST,TAX-ID.

                  Grant access on the security class for users who should see it and deny access on the security class for those who should not see it.
                  Works perfectly for me. I've done this banking information fields as well.

                  Al
                  Mark F. Hardy
                  Veteran Member
                  Posts: 44
                  Veteran Member
                    Thanks, Al.