OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Datagrid inline edit

This topic contains 1 reply, has 2 voices, and was last updated by  Yurii Muratov 6 years, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34446

    zhex900
    Participant

    Hi,
    Question 1.
    I have the following Owner inline edit for a contact datagrid. It works fine. However the existing owner/user is displayed twice in the auto complete. How do I remove the repeated user?

    Question 2.
    Is it possible for customised drop down select in the inline edit? For example, I want to show users with Sales Role.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #34447

    Yurii Muratov
    Participant

    Hi, @zhex900

    Question 1.

    You selected wrong autocompleter for the owner field. The users autocomplete will search users by VIEW permission to User entity.

    In case of owner field you should use another autocomplete that will take an ASSIGN permission for your entity (in your case – Contact) and then limit users for this permission. An example of such inline edit configuration you can find here: https://github.com/oroinc/crm/blob/master/src/Oro/Bundle/AccountBundle/Resources/config/oro/datagrids.yml#L117-L123

    So, in your case, the config will be like:

    Question 2.

    The easiest way to do this is to set Assign permission for all roles except Sales role to null.

    More info about differences between permissions you can find in documentation https://github.com/oroinc/platform/tree/master/src/Oro/Bundle/SecurityBundle#acl

Viewing 1 replies (of 1 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top