Help, lock controls with scripting

Users
Edgar
2011-05-06
2013-05-01
  • Edgar
    Edgar
    2011-05-06

    Hi everybody!!

    I hope somebody can help me with this issue

    In the requirements of my product, I have the follow values for STATUS field:

    To be Defined (default value)
    Defined
    Approved
    Implemented
    Tested
    Completed

    When a new requirement is created, it takes the default value.

    I would like for example, that:

          User_1 only can change the value 'To be defined' to 'Defined', and after that, the control will be locked
          User_2 only can change the value, if the Status field has the value of 'Defined'. And only can change it to 'Approved', and after that, the control will be locked
          User_3 only can change the value, if the Status field has the value of 'Approved'. And only can change it to 'Implemented', and after that, the control will be locked

    … and so on

    I'm using different view forms with a Script Initialization for each user. But in the examples of the maintenance manual only tell us how to disable all controls

    Does anyone know how to do this?

    Any help will be greatly appreciated. Thanks