Prevent User to remove dynamic filters on related fields

Hi ,

I have created the custom filter for relate field using below link:

https://sugarclub.sugarcrm.com/dev-club/b/dev-blog/posts/creating-custom-filters-in-sugar-7

But end user is able to remove the filter which should be.  

I also tried with editable as false but in this case filter is not passed in API request .

Please suggest some way to achieve this.

Thanks 

  • Is this for a listview filter or for something else?

    High level there would be a number of changes required on the UI/UX part of the application to make the filter be part of the UI/UX and not editable by the end users. Then it is a good idea to extend the api as well to handle the case when no filter is provided, if the intent is to force a filter or return no results if the filter is not provided.

    In the past we have achieved this for customers by extending the whole listview filtering section with a specific UI/UX, different from the standard product's one.

    --

    Enrico Simonetti

    Sugar veteran (from 2007)

    www.naonis.tech


    Feel free to reach out for consulting regarding:

    • API Integration and Automation Services
    • Sugar Architecture
    • Sugar Performance Optimisation
    • Sugar Consulting, Best Practices and Technical Training
    • AWS and Sugar Technical Help
    • CTO-as-a-service
    • Solutions-as-a-service
    • and more!

    All active SugarCRM certifications

    Actively working remotely with customers based in APAC and in the United States

  • We have done something similar for a specific customer. We extended the filter drawer for the related field the way, whose rendered a specific filter definition, then we hide some specific filter fields the way users were not able to modify/remove those locked ones. Users were able to modify/remove any other filter field, also they were able to add any other as per their needs.

    André Lopes
    Lampada Global
    Skype: andre.lampada