Roles not working for itemLists

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark
    Senior Member
    • Dec 2019
    • 143

    Roles not working for itemLists

    Hi,
    I want to limit access for users, so they would not be able to edit quoteItems after they are created, however it is not working for the "List (Item)" view https://gyazo.com/f3896e9cf668e2e9995468d94ab65689. Basically, you are not able to edit fields from all of the views except the "List (Item)" view, which is in the quote. And the conditionals for fields are also not working for the fields that are displayed in the itemList (however, it works if the field is read-only by default, but then you cant enter anything in it so that doesnt work in this situation). https://gyazo.com/7e77fa6f0e3c901c74c255722a65a3c3, I tried to make it so the fields would be editable only if a certain field is checked, which it is by default. And after creation of a record a workflow unchecks that field, making the fields read only https://gyazo.com/45c992f9531b28583a278c92f6668368 , but as I said before it works for all of the views except the "List (Item)", which is pretty much the only one I need. And I also need to give access to a couple of quote fields, so I cant make the whole quote read only as well
    Last edited by Mark; 06-29-2020, 12:03 PM.
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi Mark,
    As far as I know, there is no such an ability to set Role for the Item List.

    Comment

    • Mark
      Senior Member
      • Dec 2019
      • 143

      #3
      Is there any other ways to limit the access to the fields. I mean the way that I described above "after creation of a record a workflow unchecks that field, making the fields read only https://gyazo.com/45c992f9531b28583a278c92f6668368" would be fine if it worked properly. Do you maybe know any possible solutions to this problem?

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        I believe you have to write a custom dynamic handler https://docs.espocrm.com/development/dynamic-handler/. Perhaps telecastg may help you to solve this.

        Comment

        • telecastg
          Active Community Member
          • Jun 2018
          • 907

          #5
          Thanks for the vote of confidence Maximus

          I am not familiar with the sales pack Mark so I can't give you an example for the quote entity but perhaps you can adapt this tutorial to your situation. https://forum.espocrm.com/forum/deve...gic-conditions

          If you manage to do it, please return the favor by posting the solution in this forum so other users can benefit too.

          Best wishes

          Comment

          Working...